Some fixes

This commit is contained in:
Rendo 2025-11-26 16:37:03 +05:00
commit 97d6a783aa
8 changed files with 22 additions and 8 deletions

View file

@ -23,4 +23,4 @@ func init_reload():
transition.emit("Reload")
func with_morphems(animation):
return machine.animation_prefix + (animation+"_empty") if emptyable and machine.ammo == 0 else animation
return machine.animation_prefix + ((animation+"_empty") if emptyable and machine.ammo == 0 else animation)

View file

@ -14,4 +14,4 @@ func on_animation_finished(animation):
transition.emit("Idle")
func with_morphems(animation):
return machine.animation_prefix + (animation+"_empty") if emptyable and machine.ammo == 0 else animation
return machine.animation_prefix + ((animation+"_empty") if emptyable and machine.ammo == 0 else animation)

View file

@ -15,4 +15,4 @@ func on_animation_finished(animation):
transition.emit("Idle")
func with_morphems(animation):
return machine.animation_prefix + (animation+"_empty") if emptyable and machine.ammo == 0 else animation
return machine.animation_prefix + ((animation+"_empty") if emptyable and machine.ammo == 0 else animation)

View file

@ -36,4 +36,4 @@ func fire() -> void:
fire_timer.start()
func with_morphems(animation):
return machine.animation_prefix + (animation+"_empty") if emptyable and machine.ammo == 0 else animation
return machine.animation_prefix + ((animation+"_empty") if emptyable and machine.ammo == 0 else animation)

View file

@ -34,7 +34,6 @@ func _ready() -> void:
slots["knife"] = default_knife
slots["secondary"] = default_pistol
current_state.enter()
current_state.in_use = true
func can_add(slot: StringName) -> bool:
return slots.has(slot)