more hub world tweaking

This commit is contained in:
Derek
2025-02-23 16:11:53 -06:00
parent fd2a32dde9
commit a303eb6430
18 changed files with 557 additions and 143 deletions

View File

@@ -7,7 +7,6 @@ class_name map
@export var MAX_PARTICLES = 100
@export_group("Drops")
@export var drop_chance_minimum = .1
@export var ammo_drop_enabled = true
@export var expected_ammo = {"light" : 200, "medium" : 50, "heavy" : 25,"shotgun" : 20, "rocket" : 3} #light, medium,heavy,shotgun,rocket
@export var stamina_drop_enabled = true
@export var money_drop_enabled = true
@@ -198,13 +197,13 @@ func pickup_spawn(randomized):
else:
money_weight = 0
var ammo_weight
if ammo_drop_enabled:
if gamemode.ammo_drop_enabled:
ammo_weight = drop_chance_minimum
else: ammo_weight = 0
var ammo_type_weight = {}
# weight ammo player owns against expected ammo values
if ammo_drop_enabled:
if gamemode.ammo_drop_enabled:
for i in GameGlobals.ammo_reserve.keys():
var i_weight
match int(i):