cut/rock smash animations + sprite resize in summary

This commit is contained in:
infinitefusion
2021-10-11 14:54:08 -04:00
parent cd2e3cd04c
commit ce8ce1f934
40 changed files with 16 additions and 2 deletions

View File

@@ -230,8 +230,10 @@ def pbSmashEvent(event)
return if !event
if event.name[/cuttree/i]
pbSEPlay("Cut", 80)
$scene.spriteset.addUserAnimation(Settings::CUT_TREE_ANIMATION_ID,event.x,event.y,false,1)
elsif event.name[/smashrock/i]
pbSEPlay("Rock Smash", 80)
$scene.spriteset.addUserAnimation(Settings::ROCK_SMASH_ANIMATION_ID,event.x,event.y,false,1)
end
pbMoveRoute(event, [
PBMoveRoute::Wait, 2,
@@ -620,6 +622,8 @@ def pbRockSmash
speciesname = (movefinder) ? movefinder.name : $Trainer.name
pbMessage(_INTL("{1} used {2}!", speciesname, GameData::Move.get(move).name))
pbHiddenMoveAnimation(movefinder)
facingEvent = $game_player.pbFacingEvent(true)
$scene.spriteset.addUserAnimation(Settings::ROCK_SMASH_ANIMATION_ID,facingEvent.x,facingEvent.y,false)
return true
end
return false