1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-01-01 08:37:42 +00:00

Fix Sisters and Undead Core bugs

This commit is contained in:
dawnDus 2022-03-05 13:01:08 -05:00
parent 4b5d70ea3f
commit 657be6159e
No known key found for this signature in database
GPG key ID: 972AABDE81848F21
2 changed files with 5 additions and 5 deletions

View file

@ -106,16 +106,16 @@ impl BossNPC {
*actr2 -= 1;
} else if self.parts[0].action_counter < 60 {
*actr2 -= 2;
} else if self.parts[0].action_counter < self.parts[0].action_counter2 {
} else if self.parts[0].action_counter < self.parts[0].action_counter3 {
*actr2 -= 4;
} else if self.parts[0].action_counter < self.parts[0].action_counter2 + 40 {
} else if self.parts[0].action_counter < self.parts[0].action_counter3 + 40 {
*actr2 -= 2;
} else if self.parts[0].action_counter < self.parts[0].action_counter2 + 60 {
} else if self.parts[0].action_counter < self.parts[0].action_counter3 + 60 {
*actr2 -= 1;
} else if self.parts[0].life >= 300 {
self.parts[0].action_counter = 0;
self.parts[0].action_num = 100;
*actr2 = self.parts[0].rng.range(400..700) as i16;
self.parts[0].action_counter3 = self.parts[0].rng.range(400..700) as u16;
} else {
self.parts[0].action_counter = 0;
self.parts[0].action_num = 400;

View file

@ -395,7 +395,7 @@ impl BossNPC {
self.parts[2].action_counter3 = 128;
self.parts[6] = self.parts[1].clone();
self.parts[6].action_counter3 = 1;
self.parts[6].action_counter2 = 1;
self.parts[7] = self.parts[1].clone();
self.parts[7].action_counter2 = 1;