fixes extra typos and lost references

This commit is contained in:
2026-02-21 05:11:09 +11:00
parent 5a4ad8633a
commit c838fd2a33
95 changed files with 277 additions and 268 deletions

View File

@@ -7,7 +7,7 @@ extends HeroState
func enter_state() -> void:
if hero.game_manager:
hero.game_manager.level.enable_non_path_tower_frames()
hero.edit_tool.enabled = true
hero.path_tool.enabled = true
hero.left_hand_model.visible = true
hero.gauntlet_model.visible = true
hero.cassette.visible = false
@@ -28,8 +28,8 @@ func anim2(x: float) -> void:
func exit_state() -> void:
hero.edit_tool.interact_key_held = false
hero.edit_tool.enabled = false
hero.path_tool.interact_key_held = false
hero.path_tool.enabled = false
hero.cassette.visible = true
if hero.game_manager:
hero.game_manager.level.disable_all_tower_frames()
@@ -38,9 +38,9 @@ func exit_state() -> void:
func process_state(_delta: float) -> void:
hero.check_world_button()
if Input.is_action_just_pressed("Primary Fire"):
hero.edit_tool.interact_key_held = true
hero.path_tool.interact_key_held = true
if Input.is_action_just_released("Primary Fire"):
hero.edit_tool.interact_key_held = false
hero.path_tool.interact_key_held = false
if Input.is_action_just_pressed("Swap Weapons"):
state_changed.emit(swap_state)
if Input.is_action_just_pressed("Ready"):

View File

@@ -10,7 +10,7 @@ func enter_state() -> void:
hero.left_hand_model.visible = true
hero.gauntlet_model.visible = true
hero.set_cassette_elements_visibility(true)
hero.cassetteing_tool.enabled = true
hero.cassette_tool.enabled = true
var tween: Tween = create_tween()
tween.set_ease(Tween.EASE_OUT)
tween.set_trans(Tween.TRANS_CUBIC)
@@ -30,23 +30,21 @@ func anim2(x: float) -> void:
func exit_state() -> void:
hero.set_cassette_elements_visibility(false)
hero.left_hand.visible = false
hero.cassetteing_tool.enabled = false
hero.cassette_tool.enabled = false
func process_state(_delta: float) -> void:
hero.check_world_button()
if Input.is_action_just_pressed("Interact"):
hero.cassetteing_tool.interact()
hero.cassette_tool.interact()
if Input.is_action_just_pressed("Primary Fire"):
hero.equip_weapon(0)
if Input.is_action_just_pressed("Secondary Fire"):
hero.equip_weapon(1)
if Input.is_action_just_pressed("Select Next Cassette") and hero.hand.size > 1:
hero.increment_selected()
hero.swap_cassette_audio.play()
if Input.is_action_just_pressed("Select Previous Cassette") and hero.hand.size > 1:
hero.decrement_selected()
hero.swap_cassette_audio.play()
if Input.is_action_just_pressed("Equip 1"):
swap_to_slot(1)
if Input.is_action_just_pressed("Equip 2"):
@@ -81,5 +79,4 @@ func process_state(_delta: float) -> void:
func swap_to_slot(num: int) -> void:
if hero.hand.size >= num:
hero.hand_selected_index = num - 1
hero.swap_cassette_audio.play()
hero.hud.hot_wheel.update_cassettes(hero.get_wheel_cassettes())