Comment out unused plan A for inventory

This commit is contained in:
Dustin 2025-04-08 18:57:09 -07:00
parent 2e30a20389
commit dced928e16
2 changed files with 18 additions and 18 deletions

View File

@ -97,14 +97,14 @@ func change_to_known_state(new_state_name: String) -> void:
push_warning(get_parent().name + ": Attempt to switch state to unknown: " + new_state_name)
change_state(states_index["default"])
func check_parent_before_state_change(new_state_name: String) -> bool:
##TODO: Make this a verifiable funcref or something
if get_parent().has_method("check_state_change"):
var _check_result = get_parent().check_state_change(new_state_name)
if _check_result:
change_to_known_state(new_state_name)
return true
return false
#func check_parent_before_state_change(new_state_name: String) -> bool:
# ##TODO: Make this a verifiable funcref or something
# if get_parent().has_method("check_state_change"):
# var _check_result = get_parent().check_state_change(new_state_name)
# if _check_result:
# change_to_known_state(new_state_name)
# return true
# return false
func get_state_reference(state_name: String) -> State:
print ("what you want? ", state_name)

View File

@ -84,13 +84,13 @@ func secondary_item() -> String:
return ''
func check_state_change(_new_state_name: String) -> bool:
match _new_state_name:
"attack_sword":
print("nope.")
return false
"attack_shoot":
return true
_: # None
return true
return true
#func check_state_change(_new_state_name: String) -> bool:
# match _new_state_name:
# "attack_sword":
# print("nope.")
# return false
# "attack_shoot":
# return true
# _: # None
# return true
# return true