mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-12-01 00:29:58 +00:00
fix snack block offset
This commit is contained in:
parent
bafad44868
commit
4d1e23a032
|
|
@ -605,8 +605,8 @@ impl PhysicalEntity for Bullet {
|
||||||
let mut npc = NPCMap::create_npc(4, &state.npc_table);
|
let mut npc = NPCMap::create_npc(4, &state.npc_table);
|
||||||
npc.cond.set_alive(true);
|
npc.cond.set_alive(true);
|
||||||
npc.direction = Direction::Left;
|
npc.direction = Direction::Left;
|
||||||
npc.x = x * 16 * 0x200;
|
npc.x = (x * 16 + 8) * 0x200;sta
|
||||||
npc.y = y * 16 * 0x200;
|
npc.y = (y * 16 + 8) * 0x200;
|
||||||
|
|
||||||
for _ in 0..4 {
|
for _ in 0..4 {
|
||||||
npc.vel_x = state.game_rng.range(-0x200..0x200) as isize;
|
npc.vel_x = state.game_rng.range(-0x200..0x200) as isize;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue