added weighted random item drops based on player needs

This commit is contained in:
derek
2025-01-17 14:43:51 -06:00
parent cafcf57ef1
commit 5eb065830a
9 changed files with 83 additions and 31 deletions

View File

@@ -651,7 +651,7 @@ func pickup_apply(type,ammo_type,value):
1: #STAMINA
remaining_stamina = clamp(remaining_stamina + value,0,100)
2: #HEALTH
level_control.health += value
level_control.health = clamp(level_control.health + value,0,level_control.start_health)
3: #MONEY
level_control.money += value