This commit is contained in:
2025-01-31 15:09:31 +08:00
parent 6272cd86e8
commit 552d32ff70
4 changed files with 34 additions and 42 deletions
+6 -6
View File
@@ -114,16 +114,16 @@ func set_action_state(new_state):
return
current_action_state = new_state
if not local_player_character.is_bot:
if local_player_character.is_bot == false:
local_player_character.clear_highlights()
local_player_character.clear_playerboard_highlights()
match new_state:
ActionState.MOVING:
if not local_player_character.is_bot:
if local_player_character.is_bot == false:
local_player_character.highlight_movement_range()
ActionState.GRABBING:
if not local_player_character.is_bot:
if local_player_character.is_bot == false:
local_player_character.highlight_adjacent_cells()
if local_player_character.has_item_at_current_position():
local_player_character.highlighted_cells.append(local_player_character.current_position)
@@ -132,14 +132,14 @@ func set_action_state(new_state):
local_player_character.enhanced_gridmap.hover_item
)
ActionState.PUTTING:
if not local_player_character.is_bot:
if local_player_character.is_bot == false:
local_player_character.highlight_occupied_playerboard_slots()
ActionState.RANDOMIZING:
if not local_player_character.is_bot:
if local_player_character.is_bot == false:
local_player_character.highlight_random_valid_cells()
ActionState.ARRANGING:
show_arrangement_ui()
if not local_player_character.is_bot:
if local_player_character.is_bot == false:
local_player_character.highlight_occupied_playerboard_slots()
func update_button_states():