summaryrefslogtreecommitdiff
path: root/de/engine/evolve_trade.asm
diff options
context:
space:
mode:
authorIIMarckus <iimarckus@gmail.com>2018-06-02 04:27:31 -0600
committerIIMarckus <iimarckus@gmail.com>2018-06-02 04:27:31 -0600
commit5d2473f767b431910da023a6e37ad3239dcdd575 (patch)
tree6200e65d9bd7e8fa8429c62d3907f21587ab74df /de/engine/evolve_trade.asm
parentf31a2ed69f7368d88a0a1aed5c35aa8cb34af6b3 (diff)
Start of German translation. Needs work.multilang
Diffstat (limited to 'de/engine/evolve_trade.asm')
-rwxr-xr-xde/engine/evolve_trade.asm45
1 files changed, 45 insertions, 0 deletions
diff --git a/de/engine/evolve_trade.asm b/de/engine/evolve_trade.asm
new file mode 100755
index 00000000..d3a0ee63
--- /dev/null
+++ b/de/engine/evolve_trade.asm
@@ -0,0 +1,45 @@
+EvolveTradeMon:
+; Verify the TradeMon's species name before
+; attempting to initiate a trade evolution.
+
+; The names of the trade evolutions in Blue (JP)
+; are checked. In that version, TradeMons that
+; can evolve are Graveler and Haunter.
+
+; In localization, this check was translated
+; before monster names were finalized.
+; Then, Haunter's name was "Spectre".
+; Since its name no longer starts with
+; "SP", it is prevented from evolving.
+
+; This may have been why Red/Green's trades
+; were used instead, where none can evolve.
+
+; This was fixed in Yellow.
+
+ ;ld a, [wInGameTradeReceiveMonName]
+
+ ; GRAVELER
+ ;cp "G"
+ ;jr z, .ok
+
+ ; "SPECTRE" (HAUNTER)
+ ;cp "S"
+ ;ret nz
+ ;ld a, [wInGameTradeReceiveMonName + 1]
+ ;cp "P"
+ ;ret nz
+ ret
+
+.ok
+ ld a, [wPartyCount]
+ dec a
+ ld [wWhichPokemon], a
+ ld a, $1
+ ld [wForceEvolution], a
+ ld a, LINK_STATE_TRADING
+ ld [wLinkState], a
+ callab TryEvolvingMon
+ xor a ; LINK_STATE_NONE
+ ld [wLinkState], a
+ jp PlayDefaultMusic