dev #23
|
|
@ -64,3 +64,10 @@ func set_locked(value : bool) -> void:
|
|||
is_locked = value
|
||||
if indicator: indicator.visible = value
|
||||
locked_changed.emit(value)
|
||||
|
||||
func try_mount(target_pokemon : PokemonData) -> bool:
|
||||
if !MountRegistry.can_mount_on(target_pokemon, MountProfile.Surface.GROUND):
|
||||
return false
|
||||
play_char.current_mount = target_pokemon
|
||||
transitioned.emit(self, "MountedState")
|
||||
return true
|
||||
Loading…
Reference in a new issue