31 lines
628 B
GDScript
31 lines
628 B
GDScript
extends Reference
|
|
|
|
const NAME = "broken"
|
|
|
|
var ctx = null
|
|
|
|
func _init():
|
|
pass
|
|
|
|
func enter_from(state):
|
|
ctx.coin_machine.enabled = false
|
|
ctx.item_dump.enabled = true
|
|
ctx.item_dump.reset()
|
|
ctx.status_text.text = "Offline. Needs Repair"
|
|
ctx.status_light.fail()
|
|
|
|
func exit_to(state):
|
|
pass
|
|
|
|
func on_coin_machine_coin_requirement_met(player):
|
|
assert(false, "coin machine should be disabled in blocked state")
|
|
|
|
func on_item_dump_item_dump_completed():
|
|
ctx.change_state(ctx.StateIdle.new())
|
|
|
|
func on_item_dump_item_dumped():
|
|
print("item dumped")
|
|
|
|
func on_damage_taken():
|
|
assert(false, "should be impossible in blocked state")
|