mirror of
				https://github.com/thornAvery/kep-hack.git
				synced 2025-11-04 20:51:02 +13:00 
			
		
		
		
	fix strength cry
This commit is contained in:
		
							parent
							
								
									62ce1723dc
								
							
						
					
					
						commit
						875adc18fd
					
				| 
						 | 
				
			
			@ -177,6 +177,18 @@ StartMenu_Pokemon::
 | 
			
		|||
.strength
 | 
			
		||||
	bit BIT_RAINBOWBADGE, a
 | 
			
		||||
	jp z, .newBadgeRequired
 | 
			
		||||
	ld a, [wWhichPokemon]
 | 
			
		||||
	ld hl, wPartySpecies
 | 
			
		||||
	; bumping hl by a, need to make sure carry happens
 | 
			
		||||
	ld c, a
 | 
			
		||||
	ld a, l
 | 
			
		||||
	add a, c
 | 
			
		||||
	ld l, a
 | 
			
		||||
	jr nc, .strengthNoCarry
 | 
			
		||||
	inc h
 | 
			
		||||
.strengthNoCarry
 | 
			
		||||
	ld a, [hl]
 | 
			
		||||
	ld [wcf91], a
 | 
			
		||||
	predef PrintStrengthTxt
 | 
			
		||||
	call GBPalWhiteOutWithDelay3
 | 
			
		||||
	jp .goBackToMap
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -30,6 +30,17 @@ BoulderText::
 | 
			
		|||
	pop af 
 | 
			
		||||
	ld [wWhichPokemon], a 
 | 
			
		||||
	call GetPartyMonName2 
 | 
			
		||||
	ld a, [wWhichPokemon]
 | 
			
		||||
	ld hl, wPartySpecies
 | 
			
		||||
	ld c, a
 | 
			
		||||
	ld a, l
 | 
			
		||||
	add a, c
 | 
			
		||||
	ld l, a
 | 
			
		||||
	jr nc, .noCarry
 | 
			
		||||
	inc h
 | 
			
		||||
.noCarry
 | 
			
		||||
	ld a, [hl]
 | 
			
		||||
	ld [wcf91], a
 | 
			
		||||
	predef PrintStrengthTxt
 | 
			
		||||
.done 
 | 
			
		||||
    jp TextScriptEnd 
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue