5 # flags and variables here
9 # enums are prioritized by order of list
10 static var moves_priority: Dictionary = {
18 static func moves_priority_sort(a: String, b: String):
19 return moves_priority[a] > moves_priority[b]
23 func should_enter(input: InputPacket) -> String:
24 if not player.is_on_floor():
25 input.actions.append("fall")
26 input.actions.sort_custom(moves_priority_sort)
27 return input.actions[0]
30 func update(_input: InputPacket, _delta: float):
34 func on_enter_state():