Skip to content

Commit

Permalink
fix divide by chains having messed up rng
Browse files Browse the repository at this point in the history
  • Loading branch information
bgkillas committed Dec 5, 2024
1 parent 710d82d commit a7cefed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions quant.ew/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ function OnProjectileFired(shooter_id, projectile_id, initial_rng, position_x, p
rng = (shooter_player_data.projectile_seed_chain[entity_that_shot] or 0) + 25
end
end
shooter_player_data.projectile_seed_chain[entity_that_shot] = rng
shooter_player_data.projectile_seed_chain[projectile_id] = rng
for _, lua in ipairs(EntityGetComponent(projectile_id, "LuaComponent") or {}) do
if ComponentGetValue2(lua, "script_source_file") == "data/scripts/projectiles/transmutation.lua" then
Expand Down

0 comments on commit a7cefed

Please sign in to comment.