# HG changeset patch # User Emmanuel Gil Peyrot # Date 1566043677 -7200 # Node ID f5d85a6469753c2e6db4a173ac296572fff3d5af # Parent eecb8626f472e859fc48477e3f8b18ddf212cbbc ecl_vm: implement SetExtendedBulletAttributes. diff --git a/src/th06/ecl_vm.rs b/src/th06/ecl_vm.rs --- a/src/th06/ecl_vm.rs +++ b/src/th06/ecl_vm.rs @@ -654,14 +654,13 @@ impl EclRunner { } // 82 - // TODO: correct but how to implement that in a rusty way? - /* - SubInstruction::SetExtendedBulletAttributes(x, y, z) => { + SubInstruction::SetExtendedBulletAttributes(a, b, c, d, e, f, g, h) => { + let (a, b, c, d) = (self.get_i32(a), self.get_i32(b), self.get_i32(c), self.get_i32(d)); + let (e, f, g, h) = (self.get_f32(e), self.get_f32(f), self.get_f32(g), self.get_f32(h)); let mut enemy = self.enemy.borrow_mut(); + enemy.bullet_attributes.extended_attributes = (a, b, c, d, e, f, g, h); + } - // self._enemy.extended_bullet_attributes = tuple(self._getval(attr) for attr in attributes) - } - */ // 83 /* SubInstruction::ChangeBulletsIntoStarBonus() => {