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

@@ -208,7 +208,7 @@ func drop_loot(number_of_drops):
while number_of_drops > 0:
var pickup_spawn = level_control.item_pickup.instantiate()
var item_stats = level_control.pickup_spawn()
var item_stats = level_control.pickup_spawn(false)
##SET VARIABLES
pickup_spawn.pickup_type = item_stats["pickup_type"]