make curly's weapon respect light cone setting (fixes #109)

This commit is contained in:
Sallai József 2022-08-06 17:06:17 +03:00
parent b29c375a7a
commit f1542246c6
1 changed files with 41 additions and 37 deletions

View File

@ -982,6 +982,7 @@ impl GameScene {
) )
} }
180 => { 180 => {
if state.settings.light_cone {
// Curly's looking upward frames // Curly's looking upward frames
let range = if [5, 6, 7, 8, 9].contains(&(npc.anim_num % 11)) { let range = if [5, 6, 7, 8, 9].contains(&(npc.anim_num % 11)) {
60..120 60..120
@ -1005,7 +1006,9 @@ impl GameScene {
batch, batch,
); );
} }
}
320 => { 320 => {
if state.settings.light_cone {
let range = match npc.direction() { let range = match npc.direction() {
Direction::Up => 60..120, Direction::Up => 60..120,
Direction::Bottom => 240..300, Direction::Bottom => 240..300,
@ -1024,6 +1027,7 @@ impl GameScene {
batch, batch,
); );
} }
}
322 => { 322 => {
let scale = 0.004 * (npc.action_counter as f32); let scale = 0.004 * (npc.action_counter as f32);