forked from team-sg/hero-mark-2
fast punishment
This commit is contained in:
parent
ae41ff0917
commit
9a08b79c2c
2 changed files with 7 additions and 0 deletions
|
@ -18,6 +18,7 @@ var cfox_mode = false
|
|||
var infinite_arrows = false
|
||||
var prey_slaughtered = false
|
||||
var sus_monster = false
|
||||
var fast_punishment = 0
|
||||
# cheat code entry
|
||||
var entry_index = 0
|
||||
var entry = false
|
||||
|
@ -194,3 +195,7 @@ func _enter_code():
|
|||
var scrump = get_tree().get_nodes_in_group("scrump").pop_back()
|
||||
scrump.sus_monster()
|
||||
sus_monster = true
|
||||
"FASTPUNISHMENT":
|
||||
fast_punishment = 1
|
||||
"FASTERPUNISHMENT":
|
||||
fast_punishment = 2
|
||||
|
|
|
@ -273,6 +273,8 @@ func _on_Climbing_state_exited() -> void:
|
|||
|
||||
# all the stuff that happens when they DIE
|
||||
func _on_Dead_state_entered() -> void:
|
||||
if Debug.fast_punishment > 0:
|
||||
Engine.time_scale += .05 * Debug.fast_punishment
|
||||
# send signals
|
||||
emit_signal("died")
|
||||
state_chart.send_event("died")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue