diff options
author | SailorMoonFan01 <36681287+SailorMoonFan01@users.noreply.github.com> | 2021-02-10 10:07:44 -0500 |
---|---|---|
committer | SailorMoonFan01 <36681287+SailorMoonFan01@users.noreply.github.com> | 2021-02-10 10:07:44 -0500 |
commit | bed84246b4033273d40b5d2aa8f7d74156e3e10a (patch) | |
tree | c8a95f46dd7549b6f947c247279fbb74110b95fa | |
parent | 43b1c3ef718934e6a701c50a753b7fc4ca10c2d0 (diff) |
Created Remove stat experience (markdown)
-rw-r--r-- | Remove-stat-experience.md | 45 |
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 |