Add Population Bomb animation (#5194)

* Population Bomb animation

* Update battle_anim_new.c

* Update battle_anim_new.c
This commit is contained in:
kittenchilly 2024-08-25 16:39:25 -05:00 committed by GitHub
parent abf60e9c64
commit 8d47db6160
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 32 additions and 1 deletions

View file

@ -17630,9 +17630,30 @@ Move_MALIGNANT_CHAIN::
waitforvisualfinish
end
Move_POPULATION_BOMB::
loadspritegfx ANIM_TAG_CUT
monbg ANIM_TARGET
setalpha 12, 8
playsewithpan SE_M_CUT, SOUND_PAN_TARGET
createvisualtask AnimTask_RandomBool, 2
jumpretfalse PopulationBombSliceRight
jumprettrue PopulationBombSliceLeft
PopulationBombSliceRight:
createsprite gCuttingSliceSpriteTemplate, ANIM_ATTACKER, 2, 40, -32, 0
goto PopulationBombContinue
PopulationBombSliceLeft:
createsprite gCuttingSliceSpriteTemplate, ANIM_ATTACKER, 2, 40, -32, 1
PopulationBombContinue:
delay 5
createvisualtask AnimTask_ShakeMon, 2, ANIM_TARGET, 0, 3, 10, 1
waitforvisualfinish
clearmonbg ANIM_TARGET
blendoff
waitforvisualfinish
end
Move_TERA_BLAST::
Move_ORDER_UP::
Move_POPULATION_BOMB::
Move_GLAIVE_RUSH::
Move_REVIVAL_BLESSING::
Move_SALT_CURE::

View file

@ -9285,3 +9285,13 @@ static void AnimMakingItRain(struct Sprite *sprite)
sprite->callback = TranslateSpriteInEllipse;
sprite->callback(sprite);
}
void AnimTask_RandomBool(u8 taskId)
{
if (RandomPercentage(RNG_NONE, 50))
gBattleAnimArgs[ARG_RET_ID] = TRUE;
else
gBattleAnimArgs[ARG_RET_ID] = FALSE;
DestroyAnimVisualTask(taskId);
}