diff options
Diffstat (limited to 'Physical-Special-split.md')
-rw-r--r-- | Physical-Special-split.md | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/Physical-Special-split.md b/Physical-Special-split.md index 7f51ffd..1bc5005 100644 --- a/Physical-Special-split.md +++ b/Physical-Special-split.md @@ -88,7 +88,7 @@ move: MACRO + db \8 percent ; effect chance ENDM -Moves: ; 41afb +Moves: ; entries correspond to constants/move_constants.asm - move POUND, EFFECT_NORMAL_HIT, 40, NORMAL, 100, 35, 0 - ... @@ -106,7 +106,7 @@ You'll have to assign the right category—`PHYSICAL`, `SPECIAL`, or `STATUS`— Edit [engine/pokemon/types.asm](../blob/master/engine/pokemon/types.asm): ```diff - PrintMoveType: ; 5093a + PrintMoveType: ; Print the type of move b at hl. push hl @@ -197,7 +197,7 @@ At this point the Physical/Special split *works*, technically, but for two thing Edit [engine/battle/ai/scoring.asm](../blob/master/engine/battle/ai/scoring.asm). There are a few unrelated changes to make here, so let's go over them one at a time. ```diff - AI_Types: ; 38635 + AI_Types: ... ; Discourage this move if there are any moves ; that do damage of a different type. @@ -217,7 +217,7 @@ Edit [engine/battle/ai/scoring.asm](../blob/master/engine/battle/ai/scoring.asm) Here we're just masking out categories again. ```diff - AI_Smart_SpDefenseUp2: ; 38aed + AI_Smart_SpDefenseUp2: ... @@ -267,7 +267,7 @@ Here we're just masking out categories again. This routine used to encourage the AI to use moves that raise its Special Defense if the player's Pokémon was of a Special type. Since physical/special categories are now independent of types, we've changed it to check whether the player's base Special Attack is at least as high as its base Attack. ```diff - AI_Smart_Encore: ; 38c3b + AI_Smart_Encore: ... push hl @@ -280,7 +280,7 @@ This routine used to encourage the AI to use moves that raise its Special Defens Just masking out the category again. ```diff - AI_Smart_Curse: ; 38e5c + AI_Smart_Curse: ... ld a, [wBattleMonType1] @@ -390,13 +390,11 @@ Edit [engine/battle/core.asm](../blob/master/engine/battle/core.asm): .done ret - ; 3e74f .Disabled: db "Disabled!@" -.Type: - db "TYPE/@" - ; 3e75f ``` Instead of printing "TYPE/" in the move property box, we print the move's category. @@ -407,7 +405,7 @@ Instead of printing "TYPE/" in the move property box, we print the move's catego Edit [engine/menus/start_menu.asm](../blob/master/engine/menus/start_menu.asm): ```diff - PlaceMoveData: ; 13256 + PlaceMoveData: xor a ld [hBGMapMode], a hlcoord 0, 10 @@ -434,14 +432,12 @@ Edit [engine/menus/start_menu.asm](../blob/master/engine/menus/start_menu.asm): predef PrintMoveType ... - String_MoveType_Top: ; 132ba + String_MoveType_Top: - db "┌─────┐@ + db "┌────────┐@" - ; 132c2 - String_MoveType_Bottom: ; 132c2 + String_MoveType_Bottom: - db "│TYPE/└@" + db "│ └@" - ; 132ca ``` Again, instead of printing "TYPE/" in the move property box, we print the move's category. There's no room for the "/" after the category, so here it goes before the type. |