more fixes to machete but not working yet

This commit is contained in:
Derek
2025-01-27 19:52:52 -06:00
parent 61dad77f04
commit f49e17a908
7 changed files with 198 additions and 70 deletions

View File

@@ -209,6 +209,8 @@ func pickup_spawn(randomized):
i_weight = 1.0 - clamp(float(player.ammo_reserve[str(i)]) / float(expected_ammo["shotgun"]),0,1)
4:
i_weight = 1.0 - clamp(float(player.ammo_reserve[str(i)]) / float(expected_ammo["rocket"]),0,1)
5:
i_weight = 0
if i_weight > ammo_weight:
ammo_weight = i_weight
ammo_type_weight[i] = i_weight + drop_chance_minimum