Skip to content

Remove stat experience

SailorMoonFan01 edited this page Feb 10, 2021 · 3 revisions

This was inspired by Fireburn and comets method on disabling stat experience

For hacks with increased difficulty, this may be a good feature to use

Contents

  1. Delete ld a, b, ld d, a and replace it with ld d, 0

1. Delete ld a, b, ld d, a and replace it with ld d, 0

Go to /engine/pokemon/move_mon.asm and delete the little portion of code as follows

CalcMonStatC:
; 'c' is 1-6 and points to the BaseStat
; 1: HP
; 2: Attack
; 3: Defense
; 4: Speed
; 5: SpAtk
; 6: SpDef
	push hl
	push de
	push bc
-	ld a, b
-	ld d, a
+       ld d, 0
	push hl
	ld hl, wBaseStats
	dec hl ; has to be decreased, because 'c' begins with 1
	ld b, 0
	add hl, bc
	ld a, [hl]
	ld e, a
	pop hl
	push hl
	ld a, c
	cp STAT_SDEF ; last stat
	jr nz, .not_spdef
	dec hl
	dec hl

Now you have successfully removed stat experience

Clone this wiki locally