Merge branch 'upcoming' of https://github.com/rh-hideout/pokeemerald-expansion into be/aiflag
@ -2610,8 +2610,7 @@ BattleScript_EffectPsychicTerrain:
|
||||
printfromtable gTerrainStringIds
|
||||
waitmessage B_WAIT_TIME_LONG
|
||||
playanimation BS_ATTACKER, B_ANIM_RESTORE_BG
|
||||
call BattleScript_ActivateTerrainAbilities
|
||||
call BattleScript_TerrainSeedLoop
|
||||
call BattleScript_ActivateTerrainEffects
|
||||
goto BattleScript_MoveEnd
|
||||
|
||||
BattleScript_EffectTopsyTurvy:
|
||||
@ -6867,7 +6866,7 @@ BattleScript_OverworldTerrain::
|
||||
printfromtable gTerrainStringIds
|
||||
waitmessage B_WAIT_TIME_LONG
|
||||
playanimation BS_SCRIPTING, B_ANIM_RESTORE_BG
|
||||
call BattleScript_TerrainSeedLoop
|
||||
call BattleScript_ActivateTerrainEffects
|
||||
end3
|
||||
|
||||
BattleScript_SideStatusWoreOff::
|
||||
@ -7346,8 +7345,7 @@ BattleScript_SeedSowerActivates::
|
||||
printstring STRINGID_TERRAINBECOMESGRASSY
|
||||
waitmessage B_WAIT_TIME_LONG
|
||||
playanimation BS_SCRIPTING, B_ANIM_RESTORE_BG
|
||||
call BattleScript_ActivateTerrainAbilities
|
||||
call BattleScript_TerrainSeedLoop
|
||||
call BattleScript_ActivateTerrainEffects
|
||||
return
|
||||
|
||||
BattleScript_AngerShellActivates::
|
||||
@ -8828,18 +8826,19 @@ BattleScript_SnowWarningActivates::
|
||||
call BattleScript_WeatherFormChanges
|
||||
end3
|
||||
|
||||
BattleScript_TerrainSeedLoop:
|
||||
BattleScript_ActivateTerrainEffects:
|
||||
savetarget
|
||||
setbyte gBattlerTarget, 0
|
||||
BattleScript_TerrainSeedLoopIter:
|
||||
BattleScript_ActivateTerrainSeed:
|
||||
copybyte sBATTLER, gBattlerTarget
|
||||
doterrainseed BS_TARGET, BattleScript_TerrainSeedLoop_NextBattler
|
||||
doterrainseed BS_TARGET, BattleScript_ActivateTerrainAbility
|
||||
removeitem BS_TARGET
|
||||
BattleScript_TerrainSeedLoop_NextBattler:
|
||||
BattleScript_ActivateTerrainAbility:
|
||||
activateterrainchangeabilities BS_TARGET
|
||||
BattleScript_ActivateTerrainEffects_Increment:
|
||||
addbyte gBattlerTarget, 0x1
|
||||
jumpifbytenotequal gBattlerTarget, gBattlersCount, BattleScript_TerrainSeedLoopIter
|
||||
jumpifbytenotequal gBattlerTarget, gBattlersCount, BattleScript_ActivateTerrainSeed
|
||||
restoretarget
|
||||
call BattleScript_ActivateSwitchInAbilities
|
||||
return
|
||||
|
||||
BattleScript_ActivateSwitchInAbilities:
|
||||
@ -8853,25 +8852,13 @@ BattleScript_ActivateSwitchInAbilities_Increment:
|
||||
copybyte gBattlerAttacker, sBATTLER
|
||||
return
|
||||
|
||||
BattleScript_ActivateTerrainAbilities:
|
||||
copybyte sBATTLER, gBattlerAttacker
|
||||
setbyte gBattlerAttacker, 0
|
||||
BattleScript_ActivateTerrainAbilities_Loop:
|
||||
activateterrainchangeabilities BS_ATTACKER
|
||||
BattleScript_ActivateTerrainAbilities_Increment:
|
||||
addbyte gBattlerAttacker, 1
|
||||
jumpifbytenotequal gBattlerAttacker, gBattlersCount, BattleScript_ActivateTerrainAbilities_Loop
|
||||
copybyte gBattlerAttacker, sBATTLER
|
||||
return
|
||||
|
||||
BattleScript_ElectricSurgeActivates::
|
||||
pause B_WAIT_TIME_SHORT
|
||||
call BattleScript_AbilityPopUp
|
||||
printstring STRINGID_TERRAINBECOMESELECTRIC
|
||||
waitmessage B_WAIT_TIME_LONG
|
||||
playanimation BS_SCRIPTING, B_ANIM_RESTORE_BG
|
||||
call BattleScript_ActivateTerrainAbilities
|
||||
call BattleScript_TerrainSeedLoop
|
||||
call BattleScript_ActivateTerrainEffects
|
||||
end3
|
||||
|
||||
BattleScript_MistySurgeActivates::
|
||||
@ -8880,8 +8867,7 @@ BattleScript_MistySurgeActivates::
|
||||
printstring STRINGID_TERRAINBECOMESMISTY
|
||||
waitmessage B_WAIT_TIME_LONG
|
||||
playanimation BS_SCRIPTING, B_ANIM_RESTORE_BG
|
||||
call BattleScript_ActivateTerrainAbilities
|
||||
call BattleScript_TerrainSeedLoop
|
||||
call BattleScript_ActivateTerrainEffects
|
||||
end3
|
||||
|
||||
BattleScript_GrassySurgeActivates::
|
||||
@ -8890,8 +8876,7 @@ BattleScript_GrassySurgeActivates::
|
||||
printstring STRINGID_TERRAINBECOMESGRASSY
|
||||
waitmessage B_WAIT_TIME_LONG
|
||||
playanimation BS_SCRIPTING, B_ANIM_RESTORE_BG
|
||||
call BattleScript_ActivateTerrainAbilities
|
||||
call BattleScript_TerrainSeedLoop
|
||||
call BattleScript_ActivateTerrainEffects
|
||||
end3
|
||||
|
||||
BattleScript_PsychicSurgeActivates::
|
||||
@ -8900,8 +8885,7 @@ BattleScript_PsychicSurgeActivates::
|
||||
printstring STRINGID_TERRAINBECOMESPSYCHIC
|
||||
waitmessage B_WAIT_TIME_LONG
|
||||
playanimation BS_SCRIPTING, B_ANIM_RESTORE_BG
|
||||
call BattleScript_ActivateTerrainAbilities
|
||||
call BattleScript_TerrainSeedLoop
|
||||
call BattleScript_ActivateTerrainEffects
|
||||
end3
|
||||
|
||||
BattleScript_HurtTarget_NoString:
|
||||
@ -10184,7 +10168,6 @@ BattleScript_EffectHitSetRemoveTerrain:
|
||||
setterrain BattleScript_TryFaint
|
||||
playanimation BS_ATTACKER, B_ANIM_RESTORE_BG
|
||||
printfromtable gTerrainStringIds
|
||||
call BattleScript_ActivateTerrainAbilities
|
||||
BattleScript_TryFaint:
|
||||
tryfaintmon BS_TARGET
|
||||
goto BattleScript_MoveEnd
|
||||
|
19
graphics/items/icon_palettes/black_augurite.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
120 192 168
|
||||
0 0 0
|
||||
111 108 124
|
||||
58 48 49
|
||||
206 206 214
|
||||
151 149 160
|
||||
142 93 117
|
||||
89 62 76
|
||||
255 255 255
|
||||
111 109 124
|
||||
194 192 202
|
||||
88 62 76
|
||||
80 74 88
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
19
graphics/items/icon_palettes/linking_cord.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
128 192 168
|
||||
87 87 88
|
||||
155 158 156
|
||||
117 114 116
|
||||
0 0 0
|
||||
36 37 42
|
||||
62 66 68
|
||||
56 57 61
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
19
graphics/items/icon_palettes/peat_block.pal
Normal file
@ -0,0 +1,19 @@
|
||||
JASC-PAL
|
||||
0100
|
||||
16
|
||||
128 198 168
|
||||
32 32 32
|
||||
230 217 213
|
||||
199 189 184
|
||||
156 135 143
|
||||
102 83 83
|
||||
143 118 130
|
||||
65 56 56
|
||||
179 162 151
|
||||
117 100 100
|
||||
210 183 192
|
||||
180 158 167
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
||||
0 0 0
|
BIN
graphics/items/icons/black_augurite.png
Normal file
After Width: | Height: | Size: 385 B |
BIN
graphics/items/icons/linking_cord.png
Normal file
After Width: | Height: | Size: 380 B |
BIN
graphics/items/icons/peat_block.png
Normal file
After Width: | Height: | Size: 403 B |
Before Width: | Height: | Size: 359 B After Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 387 B After Width: | Height: | Size: 400 B |
Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 431 B |
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 489 B |
Before Width: | Height: | Size: 380 B After Width: | Height: | Size: 407 B |
Before Width: | Height: | Size: 492 B After Width: | Height: | Size: 512 B |
Before Width: | Height: | Size: 432 B After Width: | Height: | Size: 417 B |
Before Width: | Height: | Size: 352 B After Width: | Height: | Size: 349 B |
Before Width: | Height: | Size: 397 B After Width: | Height: | Size: 423 B |
Before Width: | Height: | Size: 389 B After Width: | Height: | Size: 421 B |
Before Width: | Height: | Size: 398 B After Width: | Height: | Size: 424 B |
Before Width: | Height: | Size: 386 B After Width: | Height: | Size: 406 B |
Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 425 B |
Before Width: | Height: | Size: 417 B After Width: | Height: | Size: 419 B |
Before Width: | Height: | Size: 370 B After Width: | Height: | Size: 386 B |
Before Width: | Height: | Size: 256 B After Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 311 B After Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 413 B After Width: | Height: | Size: 430 B |
Before Width: | Height: | Size: 307 B After Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 242 B After Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 384 B After Width: | Height: | Size: 337 B |
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 314 B After Width: | Height: | Size: 326 B |
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 271 B |
Before Width: | Height: | Size: 454 B After Width: | Height: | Size: 418 B |
Before Width: | Height: | Size: 367 B After Width: | Height: | Size: 366 B |
Before Width: | Height: | Size: 535 B After Width: | Height: | Size: 553 B |
Before Width: | Height: | Size: 367 B After Width: | Height: | Size: 371 B |
Before Width: | Height: | Size: 315 B After Width: | Height: | Size: 346 B |
Before Width: | Height: | Size: 474 B After Width: | Height: | Size: 482 B |
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 404 B |
Before Width: | Height: | Size: 505 B After Width: | Height: | Size: 447 B |
Before Width: | Height: | Size: 474 B After Width: | Height: | Size: 481 B |
Before Width: | Height: | Size: 261 B After Width: | Height: | Size: 291 B |
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 480 B |
Before Width: | Height: | Size: 492 B After Width: | Height: | Size: 452 B |
Before Width: | Height: | Size: 479 B After Width: | Height: | Size: 401 B |
Before Width: | Height: | Size: 407 B After Width: | Height: | Size: 412 B |
Before Width: | Height: | Size: 389 B After Width: | Height: | Size: 381 B |
Before Width: | Height: | Size: 310 B After Width: | Height: | Size: 324 B |
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 333 B |
Before Width: | Height: | Size: 514 B After Width: | Height: | Size: 516 B |
Before Width: | Height: | Size: 368 B After Width: | Height: | Size: 384 B |
Before Width: | Height: | Size: 488 B After Width: | Height: | Size: 461 B |
Before Width: | Height: | Size: 401 B After Width: | Height: | Size: 416 B |
Before Width: | Height: | Size: 348 B After Width: | Height: | Size: 382 B |
Before Width: | Height: | Size: 376 B After Width: | Height: | Size: 385 B |
Before Width: | Height: | Size: 411 B After Width: | Height: | Size: 421 B |
Before Width: | Height: | Size: 469 B After Width: | Height: | Size: 492 B |
Before Width: | Height: | Size: 432 B After Width: | Height: | Size: 451 B |
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 280 B |
Before Width: | Height: | Size: 366 B After Width: | Height: | Size: 376 B |
Before Width: | Height: | Size: 360 B After Width: | Height: | Size: 378 B |
Before Width: | Height: | Size: 400 B After Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 421 B After Width: | Height: | Size: 395 B |
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 465 B |
Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 492 B |
Before Width: | Height: | Size: 332 B After Width: | Height: | Size: 348 B |
Before Width: | Height: | Size: 333 B After Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 388 B After Width: | Height: | Size: 318 B |
Before Width: | Height: | Size: 414 B After Width: | Height: | Size: 437 B |
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 388 B |
Before Width: | Height: | Size: 608 B After Width: | Height: | Size: 563 B |
Before Width: | Height: | Size: 482 B After Width: | Height: | Size: 405 B |
Before Width: | Height: | Size: 473 B After Width: | Height: | Size: 463 B |
Before Width: | Height: | Size: 558 B After Width: | Height: | Size: 539 B |
Before Width: | Height: | Size: 342 B After Width: | Height: | Size: 366 B |
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 391 B |
Before Width: | Height: | Size: 506 B After Width: | Height: | Size: 532 B |
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 443 B |
Before Width: | Height: | Size: 510 B After Width: | Height: | Size: 518 B |
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 273 B |
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 407 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 349 B |
Before Width: | Height: | Size: 496 B After Width: | Height: | Size: 461 B |
Before Width: | Height: | Size: 463 B After Width: | Height: | Size: 476 B |
Before Width: | Height: | Size: 468 B After Width: | Height: | Size: 407 B |
Before Width: | Height: | Size: 595 B After Width: | Height: | Size: 573 B |
Before Width: | Height: | Size: 377 B After Width: | Height: | Size: 392 B |
Before Width: | Height: | Size: 554 B After Width: | Height: | Size: 533 B |
Before Width: | Height: | Size: 408 B After Width: | Height: | Size: 367 B |
Before Width: | Height: | Size: 360 B After Width: | Height: | Size: 368 B |
Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 379 B |
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 408 B |
Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 371 B |
Before Width: | Height: | Size: 517 B After Width: | Height: | Size: 523 B |
Before Width: | Height: | Size: 449 B After Width: | Height: | Size: 462 B |
Before Width: | Height: | Size: 313 B After Width: | Height: | Size: 319 B |
Before Width: | Height: | Size: 360 B After Width: | Height: | Size: 387 B |
Before Width: | Height: | Size: 351 B After Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 309 B After Width: | Height: | Size: 339 B |
Before Width: | Height: | Size: 330 B After Width: | Height: | Size: 351 B |
Before Width: | Height: | Size: 424 B After Width: | Height: | Size: 410 B |