weapon speed modifiers

This commit is contained in:
Rendo 2025-11-28 22:13:22 +05:00
commit 7c7f68b6f5
8 changed files with 37 additions and 21 deletions

View file

@ -25,6 +25,11 @@ signal switched_to(state: WeaponSubStateMachine)
func _ready() -> void:
$WeaponSpawner.spawn_function = pick_up_weapon
func get_speed_modifier() -> float:
if current_state == null:
return 1
return current_state.speed_modifier
func can_add(slot: StringName) -> bool:
return slots.has(slot) and slots[slot] == null