better negative totem boost system, totems occur before switch in abilities

This commit is contained in:
Evan committed 2020-12-05 21:00:51 -07:00
commit 21cab1b7a7
14 files changed
+92 -27

No files matched your search

+4
View File
@@ -1785,6 +1785,10 @@
dofieldeffect FLDEFF_SPARKLE
.endm
@ Set up a totem boost for the next battle.
@ 'battler' is the position of the mon you want to gain a boost. see B_POSITION_xx in include/constants/battle.h.
@ The rest of the arguments are the stat change values to each stat.
@ For example, giving the first opponent +1 to atk and -2 to speed would be: settotemboost B_POSITION_OPPONENT_LEFT, 1, 0, -2
.macro settotemboost battler:req, atk=0,def=0,speed=0,spatk=0,spdef=0,acc=0,evas=0
setvar VAR_0x8000, \battler
setvar VAR_0x8001, \atk