summaryrefslogtreecommitdiff
path: root/engine/init_player_data.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/init_player_data.asm')
-rw-r--r--engine/init_player_data.asm60
1 files changed, 0 insertions, 60 deletions
diff --git a/engine/init_player_data.asm b/engine/init_player_data.asm
deleted file mode 100644
index 5883547c..00000000
--- a/engine/init_player_data.asm
+++ /dev/null
@@ -1,60 +0,0 @@
-InitPlayerData:
-InitPlayerData2:
-
- call Random
- ld a, [hRandomSub]
- ld [wPlayerID], a
-
- call Random
- ld a, [hRandomAdd]
- ld [wPlayerID + 1], a
-
- ld a, $ff
- ld [wUnusedD71B], a
-
- ld a, 90 ; initialize happiness to 90
- ld [wPikachuHappiness], a
- ld a, $80
- ld [wPikachuMood], a ; initialize mood
-
- ld hl, wPartyCount
- call InitializeEmptyList
- ld hl, wNumInBox
- call InitializeEmptyList
- ld hl, wNumBagItems
- call InitializeEmptyList
- ld hl, wNumBoxItems
- call InitializeEmptyList
-
-START_MONEY EQU $3000
- ld hl, wPlayerMoney + 1
- ld a, START_MONEY / $100
- ld [hld], a
- xor a
- ld [hli], a
- inc hl
- ld [hl], a
-
- ld [wMonDataLocation], a
-
- ld hl, wObtainedBadges
- ld [hli], a
-
- ld [hl], a
-
- ld hl, wPlayerCoins
- ld [hli], a
- ld [hl], a
-
- ld hl, wGameProgressFlags
- ld bc, wGameProgressFlagsEnd - wGameProgressFlags
- call FillMemory ; clear all game progress flags
-
- jp InitializeMissableObjectsFlags
-
-InitializeEmptyList:
- xor a ; count
- ld [hli], a
- dec a ; terminator
- ld [hl], a
- ret