mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Fallback in case seed chain is empty
This commit is contained in:
parent
f0c9212db1
commit
c05c274589
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ function OnProjectileFired(shooter_id, projectile_id, initial_rng, position_x, p
|
|||
rng = 0
|
||||
end
|
||||
else
|
||||
rng = shooter_player_data.projectile_seed_chain[entity_that_shot] + 25
|
||||
rng = (shooter_player_data.projectile_seed_chain[entity_that_shot] or 0) + 25
|
||||
end
|
||||
end
|
||||
shooter_player_data.projectile_seed_chain[projectile_id] = rng
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue