Comment out unused plan A for inventory
This commit is contained in:
parent
2e30a20389
commit
dced928e16
|
|
@ -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)
|
push_warning(get_parent().name + ": Attempt to switch state to unknown: " + new_state_name)
|
||||||
change_state(states_index["default"])
|
change_state(states_index["default"])
|
||||||
|
|
||||||
func check_parent_before_state_change(new_state_name: String) -> bool:
|
#func check_parent_before_state_change(new_state_name: String) -> bool:
|
||||||
##TODO: Make this a verifiable funcref or something
|
# ##TODO: Make this a verifiable funcref or something
|
||||||
if get_parent().has_method("check_state_change"):
|
# if get_parent().has_method("check_state_change"):
|
||||||
var _check_result = get_parent().check_state_change(new_state_name)
|
# var _check_result = get_parent().check_state_change(new_state_name)
|
||||||
if _check_result:
|
# if _check_result:
|
||||||
change_to_known_state(new_state_name)
|
# change_to_known_state(new_state_name)
|
||||||
return true
|
# return true
|
||||||
return false
|
# return false
|
||||||
|
|
||||||
func get_state_reference(state_name: String) -> State:
|
func get_state_reference(state_name: String) -> State:
|
||||||
print ("what you want? ", state_name)
|
print ("what you want? ", state_name)
|
||||||
|
|
|
||||||
|
|
@ -84,13 +84,13 @@ func secondary_item() -> String:
|
||||||
|
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
func check_state_change(_new_state_name: String) -> bool:
|
#func check_state_change(_new_state_name: String) -> bool:
|
||||||
match _new_state_name:
|
# match _new_state_name:
|
||||||
"attack_sword":
|
# "attack_sword":
|
||||||
print("nope.")
|
# print("nope.")
|
||||||
return false
|
# return false
|
||||||
"attack_shoot":
|
# "attack_shoot":
|
||||||
return true
|
# return true
|
||||||
_: # None
|
# _: # None
|
||||||
return true
|
# return true
|
||||||
return true
|
# return true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user