Skip to content

Commit a7cefed

Browse files
committed
fix divide by chains having messed up rng
1 parent 710d82d commit a7cefed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

quant.ew/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ function OnProjectileFired(shooter_id, projectile_id, initial_rng, position_x, p
199199
rng = (shooter_player_data.projectile_seed_chain[entity_that_shot] or 0) + 25
200200
end
201201
end
202+
shooter_player_data.projectile_seed_chain[entity_that_shot] = rng
202203
shooter_player_data.projectile_seed_chain[projectile_id] = rng
203204
for _, lua in ipairs(EntityGetComponent(projectile_id, "LuaComponent") or {}) do
204205
if ComponentGetValue2(lua, "script_source_file") == "data/scripts/projectiles/transmutation.lua" then

0 commit comments

Comments
 (0)