mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-12-01 00:29:58 +00:00
fixed core ball direciton and shock state
This commit is contained in:
parent
4c20234d5e
commit
bb07919505
|
|
@ -276,7 +276,8 @@ impl BossNPC {
|
||||||
self.parts[0].action_counter = 0;
|
self.parts[0].action_counter = 0;
|
||||||
self.parts[11].npc_flags.set_shootable(true);
|
self.parts[11].npc_flags.set_shootable(true);
|
||||||
|
|
||||||
// todo <SSS1000 equivalent!!!!
|
state.sound_manager.loop_sfx_freq(40, 1000.0 / 2205.0);
|
||||||
|
state.sound_manager.loop_sfx_freq(41, 1100.0 / 2205.0);
|
||||||
state.quake_counter = 100;
|
state.quake_counter = 100;
|
||||||
state.npc_super_pos.1 = 1;
|
state.npc_super_pos.1 = 1;
|
||||||
}
|
}
|
||||||
|
|
@ -312,7 +313,10 @@ impl BossNPC {
|
||||||
if [300, 350, 400].contains(&self.parts[0].action_counter) {
|
if [300, 350, 400].contains(&self.parts[0].action_counter) {
|
||||||
state.sound_manager.play_sfx(101);
|
state.sound_manager.play_sfx(101);
|
||||||
let mut npc = NPC::create(218, &state.npc_table);
|
let mut npc = NPC::create(218, &state.npc_table);
|
||||||
let angle = 0.0f64;
|
let angle = f64::atan2(
|
||||||
|
(self.parts[0].y - players[idx].y) as f64,
|
||||||
|
(self.parts[0].x - players[idx].x) as f64,
|
||||||
|
);
|
||||||
npc.cond.set_alive(true);
|
npc.cond.set_alive(true);
|
||||||
npc.x = self.parts[0].x - 0x5000;
|
npc.x = self.parts[0].x - 0x5000;
|
||||||
npc.y = self.parts[0].y;
|
npc.y = self.parts[0].y;
|
||||||
|
|
@ -344,6 +348,10 @@ impl BossNPC {
|
||||||
|
|
||||||
state.quake_counter = 20;
|
state.quake_counter = 20;
|
||||||
|
|
||||||
|
state.sound_manager.stop_sfx(40);
|
||||||
|
state.sound_manager.stop_sfx(41);
|
||||||
|
state.sound_manager.stop_sfx(58);
|
||||||
|
|
||||||
let mut npc = NPC::create(4, &state.npc_table);
|
let mut npc = NPC::create(4, &state.npc_table);
|
||||||
npc.cond.set_alive(true);
|
npc.cond.set_alive(true);
|
||||||
for _ in 0..32 {
|
for _ in 0..32 {
|
||||||
|
|
|
||||||
|
|
@ -1200,9 +1200,6 @@ impl GameScene {
|
||||||
}
|
}
|
||||||
|
|
||||||
npc.shock = 8;
|
npc.shock = 8;
|
||||||
|
|
||||||
npc = unsafe { self.boss.parts.get_unchecked_mut(0) };
|
|
||||||
npc.shock = 8;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bullet.life = bullet.life.saturating_sub(1);
|
bullet.life = bullet.life.saturating_sub(1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue