mirror of
				https://github.com/thornAvery/kep-hack.git
				synced 2025-11-04 20:51:02 +13:00 
			
		
		
		
	Saffron Guards are now British
They desire the caffeine... Mt. Moon Square no longer breaks game balance.
This commit is contained in:
		
							parent
							
								
									15be9046a7
								
							
						
					
					
						commit
						c356ee81f5
					
				| 
						 | 
				
			
			@ -67,6 +67,8 @@ There are some new items here, with the aim of accomodating new Pokemon, adding
 | 
			
		|||
- The Old Sea Map has been added, giving access to Faraway Island and Mew.
 | 
			
		||||
- The Citrine Pass has been added, allowing access to a new post-game area based on the unused "C" map.
 | 
			
		||||
- The Wing Fossil is a new item that allows Aerodactyl to be revived, as the Old Amber is instead used for Decilla.
 | 
			
		||||
- The Tea from FireRed/LeafGreen and Let's Go Pikachu/Eevee is added, allowing Saffron access for free. The guards now imply they want a cup of tea.
 | 
			
		||||
	- This also accomodates Mt. Moon Square's shop, which would otherwise break progression.
 | 
			
		||||
 | 
			
		||||
New Areas
 | 
			
		||||
====
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -170,7 +170,8 @@
 | 
			
		|||
; Celadon City events
 | 
			
		||||
	const_next $180
 | 
			
		||||
	const EVENT_GOT_TM41
 | 
			
		||||
	const_skip 11
 | 
			
		||||
	const EVENT_GOT_TEA
 | 
			
		||||
	const_skip 10
 | 
			
		||||
	const EVENT_GOT_TM13
 | 
			
		||||
	const EVENT_GOT_TM48
 | 
			
		||||
	const EVENT_GOT_TM49
 | 
			
		||||
| 
						 | 
				
			
			@ -191,7 +192,6 @@
 | 
			
		|||
	const EVENT_GOT_10_COINS
 | 
			
		||||
	const EVENT_GOT_20_COINS
 | 
			
		||||
	const EVENT_GOT_20_COINS_2
 | 
			
		||||
	;const_skip 2
 | 
			
		||||
	const EVENT_GOT_TM23
 | 
			
		||||
	const EVENT_1BF ; ???
 | 
			
		||||
	const_skip 32
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -102,6 +102,7 @@ DEF SAFARI_ROCK EQU $16 ; overload
 | 
			
		|||
	const UP_GRADE		; $5B
 | 
			
		||||
	const METAL_COAT	; $5C
 | 
			
		||||
	const MYSTERY_BOX	; $5D
 | 
			
		||||
	const TEA			; $5E
 | 
			
		||||
DEF NUM_ITEMS EQU const_value - 1
 | 
			
		||||
 | 
			
		||||
; elevator floors use item IDs
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,3 @@
 | 
			
		|||
GuardDrinksList:
 | 
			
		||||
	db FRESH_WATER
 | 
			
		||||
	db SODA_POP
 | 
			
		||||
	db LEMONADE
 | 
			
		||||
	db TEA
 | 
			
		||||
	db 0 ; end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -93,6 +93,7 @@ KeyItemFlags:
 | 
			
		|||
	dbit FALSE ; UP_GRADE
 | 
			
		||||
	dbit FALSE ; METAL_COAT
 | 
			
		||||
	dbit TRUE  ; MYSTERY_BOX
 | 
			
		||||
	dbit TRUE  ; TEA
 | 
			
		||||
	dbit TRUE  ; FLOOR_B2F
 | 
			
		||||
	dbit TRUE  ; FLOOR_B1F
 | 
			
		||||
	dbit TRUE  ; FLOOR_1F
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -93,6 +93,7 @@ ItemNames::
 | 
			
		|||
	li "UP-GRADE"
 | 
			
		||||
	li "METAL COAT"
 | 
			
		||||
	li "MYSTERY BOX"
 | 
			
		||||
	li "TEA"
 | 
			
		||||
	assert_list_length NUM_ITEMS
 | 
			
		||||
	li "B2F"
 | 
			
		||||
	li "B1F"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -93,6 +93,7 @@ ItemPrices::
 | 
			
		|||
	bcd3 3000  ; UP_GRADE
 | 
			
		||||
	bcd3 3000  ; METAL_COAT
 | 
			
		||||
	bcd3 0	   ; MYSTERY_BOX
 | 
			
		||||
	bcd3 0	   ; TEA
 | 
			
		||||
	assert_table_length NUM_ITEMS
 | 
			
		||||
	bcd3 0     ; FLOOR_B2F
 | 
			
		||||
	bcd3 0     ; FLOOR_B1F
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -353,6 +353,11 @@ _MysteryBoxDescription:: ; GO Description: A mysterious old box. Opening it caus
 | 
			
		|||
	next "box."
 | 
			
		||||
	prompt
 | 
			
		||||
 | 
			
		||||
_TeaDescription::
 | 
			
		||||
	text "A hot drink for"
 | 
			
		||||
	next "quenching thirst."
 | 
			
		||||
	prompt
 | 
			
		||||
 | 
			
		||||
_HM01Description::
 | 
			
		||||
	text "Cuts using claws,"
 | 
			
		||||
	next "scythes, etc."
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -110,6 +110,7 @@ ItemUsePtrTable:
 | 
			
		|||
	dw ItemUseEvoStone   ; UP_GRADE
 | 
			
		||||
	dw ItemUseEvoStone   ; METAL_COAT
 | 
			
		||||
	dw ItemUseMysteryBox ; MYSTERY_BOX
 | 
			
		||||
	dw UnusableItem		 ; TEA
 | 
			
		||||
	dw UnusableItem      ; FLOOR_B2F
 | 
			
		||||
	dw UnusableItem      ; FLOOR_B1F
 | 
			
		||||
    dw UnusableItem      ; FLOOR_1F
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -200,6 +200,8 @@ ItemDescriptionPointers:
 | 
			
		|||
	text_end
 | 
			
		||||
	text_far _MysteryBoxDescription
 | 
			
		||||
	text_end
 | 
			
		||||
	text_far _TeaDescription
 | 
			
		||||
	text_end
 | 
			
		||||
	text_far _HM01Description
 | 
			
		||||
	text_end
 | 
			
		||||
	text_far _HM02Description
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -19,6 +19,55 @@ CeladonMansion1Text1:
 | 
			
		|||
	jp CeladonMansion1_PlayCryScript
 | 
			
		||||
 | 
			
		||||
CeladonMansion1Text2:
 | 
			
		||||
	text_asm
 | 
			
		||||
	CheckEvent EVENT_GOT_TEA
 | 
			
		||||
	jr nz, .usual
 | 
			
		||||
	ld hl, CeladonMansionHasTea
 | 
			
		||||
	call PrintText
 | 
			
		||||
	lb bc, TEA, 1
 | 
			
		||||
	call GiveItem
 | 
			
		||||
	jr nc, .bag_full
 | 
			
		||||
	ld hl, ReceivedTeaText
 | 
			
		||||
	call PrintText
 | 
			
		||||
	ld a, SFX_GET_ITEM_1
 | 
			
		||||
	call PlaySound
 | 
			
		||||
	SetEvent EVENT_GOT_TEA
 | 
			
		||||
	jr .done
 | 
			
		||||
.bag_full
 | 
			
		||||
	ld hl, CeladonMansionTeaNoRoom
 | 
			
		||||
	jr .efficientPrint
 | 
			
		||||
.got_item
 | 
			
		||||
	ld hl, CeladonMansionTeaExplanation
 | 
			
		||||
	jr .efficientPrint
 | 
			
		||||
.usual
 | 
			
		||||
	ld hl, OldCeladonMansion1Text2
 | 
			
		||||
	; fallthrough
 | 
			
		||||
.efficientPrint
 | 
			
		||||
	call PrintText
 | 
			
		||||
.done
 | 
			
		||||
	jp TextScriptEnd
 | 
			
		||||
 | 
			
		||||
CeladonMansionHasTea:
 | 
			
		||||
	text_far _CeladonMansionHasTea
 | 
			
		||||
	text_end
 | 
			
		||||
 | 
			
		||||
CeladonMansionNoTea:
 | 
			
		||||
	text_far _CeladonMansion1Text2
 | 
			
		||||
	text_end
 | 
			
		||||
 | 
			
		||||
CeladonMansionTeaNoRoom:
 | 
			
		||||
	text_far _CeladonMansionTeaNoRoom
 | 
			
		||||
	text_end
 | 
			
		||||
 | 
			
		||||
CeladonMansionTeaExplanation:
 | 
			
		||||
	text_far _CeladonMansionTeaExplanation
 | 
			
		||||
	text_end
 | 
			
		||||
 | 
			
		||||
ReceivedTeaText:
 | 
			
		||||
	text_far _ReceivedTeaText
 | 
			
		||||
	text_end
 | 
			
		||||
 | 
			
		||||
OldCeladonMansion1Text2:
 | 
			
		||||
	text_far _CeladonMansion1Text2
 | 
			
		||||
	text_end
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -34,6 +34,8 @@ SafariZoneRestHouse3Meltan:
 | 
			
		|||
	jr nc, .bag_full
 | 
			
		||||
	ld hl, ReceivedBoxText
 | 
			
		||||
	call PrintText
 | 
			
		||||
	ld a, SFX_GET_ITEM_1
 | 
			
		||||
	call PlaySound
 | 
			
		||||
	SetEvent EVENT_GOT_MELTAN
 | 
			
		||||
	jr .done
 | 
			
		||||
.bag_full
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -24,3 +24,30 @@ _CeladonMansion1Text5::
 | 
			
		|||
	text "CELADON MANSION"
 | 
			
		||||
	line "Manager's Suite"
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
_CeladonMansionHasTea::
 | 
			
		||||
	text "You shouldn't"
 | 
			
		||||
	line "spend all your"
 | 
			
		||||
	cont "money on drinks."
 | 
			
		||||
	para "Try this instead."
 | 
			
		||||
	prompt
 | 
			
		||||
 | 
			
		||||
_CeladonMansionTeaExplanation::
 | 
			
		||||
	text "Nothing beats"
 | 
			
		||||
	line "thirst like some"
 | 
			
		||||
	cont "hot TEA."
 | 
			
		||||
	para "It truly is the"
 | 
			
		||||
	line "best!"
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
_CeladonMansionTeaNoRoom::
 | 
			
		||||
	text "Your BAG is full,"
 | 
			
		||||
	line "child!"
 | 
			
		||||
	done
 | 
			
		||||
 | 
			
		||||
_ReceivedTeaText::
 | 
			
		||||
	text "<PLAYER> received"
 | 
			
		||||
	line "@"
 | 
			
		||||
	text_ram wStringBuffer
 | 
			
		||||
	text "!@"
 | 
			
		||||
	text_end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
_SaffronGateText_1dfe7::
 | 
			
		||||
	text "I'm on guard duty."
 | 
			
		||||
	line "Gee, I'm thirsty,"
 | 
			
		||||
	cont "though!"
 | 
			
		||||
	line "Gee, I could use"
 | 
			
		||||
	cont "a cuppa though!"
 | 
			
		||||
 | 
			
		||||
	para "Oh wait there,"
 | 
			
		||||
	line "the road's closed."
 | 
			
		||||
| 
						 | 
				
			
			@ -34,5 +34,5 @@ _SaffronGateText_1dff1::
 | 
			
		|||
 | 
			
		||||
_SaffronGateText_1dff6::
 | 
			
		||||
	text "Hi, thanks for"
 | 
			
		||||
	line "the cool drinks!"
 | 
			
		||||
	line "the TEA!"
 | 
			
		||||
	done
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue