Update AimTarget.gd
This commit is contained in:
parent
bc57c99331
commit
0933d9b71d
|
|
@ -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