mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-22 13:42:47 +00:00
make curly's weapon respect light cone setting (fixes #109)
This commit is contained in:
parent
b29c375a7a
commit
f1542246c6
|
@ -982,6 +982,7 @@ impl GameScene {
|
|||
)
|
||||
}
|
||||
180 => {
|
||||
if state.settings.light_cone {
|
||||
// Curly's looking upward frames
|
||||
let range = if [5, 6, 7, 8, 9].contains(&(npc.anim_num % 11)) {
|
||||
60..120
|
||||
|
@ -1005,7 +1006,9 @@ impl GameScene {
|
|||
batch,
|
||||
);
|
||||
}
|
||||
}
|
||||
320 => {
|
||||
if state.settings.light_cone {
|
||||
let range = match npc.direction() {
|
||||
Direction::Up => 60..120,
|
||||
Direction::Bottom => 240..300,
|
||||
|
@ -1024,6 +1027,7 @@ impl GameScene {
|
|||
batch,
|
||||
);
|
||||
}
|
||||
}
|
||||
322 => {
|
||||
let scale = 0.004 * (npc.action_counter as f32);
|
||||
|
||||
|
|
Loading…
Reference in a new issue