weapon speed modifiers
This commit is contained in:
parent
ac8ea51d9c
commit
7c7f68b6f5
8 changed files with 37 additions and 21 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue