# HG changeset patch # User Emmanuel Gil Peyrot # Date 1566520827 -7200 # Node ID 2a60f12bd5bd02d85b26177b41b5cd9478d6b3db # Parent 05e0425a8bc558bfef8e2287d0a6149af1882bce ecl_vm: stub SetBossMode. 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 @@ -827,7 +827,6 @@ impl EclRunner { enemy.death_anim = index; } // 101 - /* SubInstruction::SetBossMode(value) => { let mut enemy = self.enemy.borrow_mut(); if value < 0 { @@ -839,7 +838,6 @@ impl EclRunner { enemy.set_boss(true); } } - */ // 102 // TODO: title says it all diff --git a/src/th06/enemy.rs b/src/th06/enemy.rs --- a/src/th06/enemy.rs +++ b/src/th06/enemy.rs @@ -384,6 +384,14 @@ impl Enemy { println!("Playing sound {}!", sound_index); } + /// Stubbed for now. + pub(crate) fn set_boss(&self, enable: bool) { + match enable { + true => println!("Enemy is now boss!"), + false => println!("Enemy is not boss anymore."), + } + } + /// Run all interpolators and such, and update internal variables once per /// frame. pub fn update(&mut self) {