shithub: pokered

Download patch

ref: 71090c13497946b739cd13f80d31ee13b464e9e6
parent: 1aa28afad421b0b5725e0d7302a7f091dd7df40d
author: deak311andris <deak311andris@gmail.com>
date: Mon Oct 7 11:53:27 EDT 2019

Deobfuscate Pewter city

--- a/scripts/PewterCity.asm
+++ b/scripts/PewterCity.asm
@@ -207,11 +207,11 @@
 	call YesNoChoice
 	ld a, [wCurrentMenuItem]
 	and a
-	jr nz, .asm_193c9
+	jr nz, .playerDidNotGoIntoMuseum
 	ld hl, PewterCityText_193f6
 	call PrintText
-	jr .asm_193ee
-.asm_193c9
+	jr .done
+.playerDidNotGoIntoMuseum
 	ld hl, PewterCityText_193fb
 	call PrintText
 	xor a
@@ -227,7 +227,7 @@
 	call GetSpritePosition2
 	ld a, $1
 	ld [wPewterCityCurScript], a
-.asm_193ee
+.done
 	jp TextScriptEnd
 
 PewterCityText_193f1:
@@ -253,14 +253,14 @@
 	call YesNoChoice
 	ld a, [wCurrentMenuItem]
 	cp $0
-	jr nz, .asm_1941e
+	jr nz, .playerDoesNotKnow
 	ld hl, PewterCityText_1942c
 	call PrintText
-	jr .asm_19424
-.asm_1941e
+	jr .done
+.playerDoesNotKnow
 	ld hl, PewterCityText_19431
 	call PrintText
-.asm_19424
+.done
 	jp TextScriptEnd
 
 PewterCityText_19427: