summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2018-07-24 21:55:31 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2018-07-24 21:55:31 -0400
commita4872e3a40b9ef2b037d4a6055a27f7994659829 (patch)
treebbeec8c0e1fa99acae9de6b2461325382bc06634
parent79c4b97287f9d71f08cf0a259fadf797e1454a8a (diff)
Round up, not down
-rw-r--r--Replace-stat-experience-with-EVs.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/Replace-stat-experience-with-EVs.md b/Replace-stat-experience-with-EVs.md
index bac7a65..74fe987 100644
--- a/Replace-stat-experience-with-EVs.md
+++ b/Replace-stat-experience-with-EVs.md
@@ -567,7 +567,7 @@ Next, edit [data/battle_tower/parties.asm](../blob/master/data/battle_tower/part
db "SANDA-SU@@@"
```
-Numerically speaking, you just have to take the square root of each stat experience value and round down to an integer EV; but you also have to insert padding bytes, and don't corrupt the stat values (they also use `bigdw`), and do this for six stats 210 times.
+Numerically speaking, you just have to take the square root of each stat experience value and round up to an integer EV; but you have to do this for 210 × 5 values, and insert padding bytes.
You can do this automatically with a Python script. Save this as **bt-evs.py** in the same directory as main.asm:
@@ -603,7 +603,7 @@ with open(filename, 'w', encoding='utf8') as file:
print('Done!')
```
-Then run `python3 bt-evs.py`, just like running `make`. It should output:
+Then run `python3 bt-evs.py`. It should output:
```
$ python3 battle-tower-evs.py