summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Remove-stat-experience.md45
1 files changed, 45 insertions, 0 deletions
diff --git a/Remove-stat-experience.md b/Remove-stat-experience.md
new file mode 100644
index 0000000..d69806d
--- /dev/null
+++ b/Remove-stat-experience.md
@@ -0,0 +1,45 @@
+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`
+
+Delete the little portion of code as follows
+
+```diff
+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