mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
create setword macro
This commit is contained in:
parent
9151a6d094
commit
fe658cc2fd
@ -1230,3 +1230,10 @@
|
|||||||
.macro chosenstatus2animation bank, status
|
.macro chosenstatus2animation bank, status
|
||||||
chosenstatusanimation \bank 0x1 \status
|
chosenstatusanimation \bank 0x1 \status
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
|
.macro setword dst, value
|
||||||
|
setbyte \dst, \value & 0xFF
|
||||||
|
setbyte \dst + 1, (\value >> 8) & 0xFF
|
||||||
|
setbyte \dst + 2, (\value >> 16) & 0xFF
|
||||||
|
setbyte \dst + 3, (\value >> 24) & 0xFF
|
||||||
|
.endm
|
||||||
|
@ -826,10 +826,7 @@ BattleScript_EffectDragonRage::
|
|||||||
ppreduce
|
ppreduce
|
||||||
typecalc
|
typecalc
|
||||||
bicbyte gBattleMoveFlags, MOVESTATUS_SUPEREFFECTIVE | MOVESTATUS_NOTVERYEFFECTIVE
|
bicbyte gBattleMoveFlags, MOVESTATUS_SUPEREFFECTIVE | MOVESTATUS_NOTVERYEFFECTIVE
|
||||||
setbyte gBattleMoveDamage, 0x28
|
setword gBattleMoveDamage, 40
|
||||||
setbyte gBattleMoveDamage + 1, 0x0
|
|
||||||
setbyte gBattleMoveDamage + 2, 0x0
|
|
||||||
setbyte gBattleMoveDamage + 3, 0x0
|
|
||||||
adjustsetdamage
|
adjustsetdamage
|
||||||
goto BattleScript_HitFromAtkAnimation
|
goto BattleScript_HitFromAtkAnimation
|
||||||
|
|
||||||
@ -1740,10 +1737,7 @@ BattleScript_EffectSonicboom::
|
|||||||
ppreduce
|
ppreduce
|
||||||
typecalc
|
typecalc
|
||||||
bicbyte gBattleMoveFlags, MOVESTATUS_SUPEREFFECTIVE | MOVESTATUS_NOTVERYEFFECTIVE
|
bicbyte gBattleMoveFlags, MOVESTATUS_SUPEREFFECTIVE | MOVESTATUS_NOTVERYEFFECTIVE
|
||||||
setbyte gBattleMoveDamage, 0x14
|
setword gBattleMoveDamage, 20
|
||||||
setbyte gBattleMoveDamage + 1, 0x0
|
|
||||||
setbyte gBattleMoveDamage + 2, 0x0
|
|
||||||
setbyte gBattleMoveDamage + 3, 0x0
|
|
||||||
adjustsetdamage
|
adjustsetdamage
|
||||||
goto BattleScript_HitFromAtkAnimation
|
goto BattleScript_HitFromAtkAnimation
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user