Commit f60710d
authored
Fix infinite leveling bug when race TNLScale is 0 (#409)
This can happen if a race for some reason is missing the tnlscale field.
Add validation to ensure TNLScale defaults to 1.0 when not specified or
set to 0.
This prevents XPTL() from returning 0 experience required for next
level, which was causing infinite leveling.
Changes:
- Add TNLScale validation in Race.Validate() to default to 1.0 if 0
- Add safety check in Character.RecalculateStats() as additional
protection1 parent 55240c5 commit f60710d
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1381 | 1381 | | |
1382 | 1382 | | |
1383 | 1383 | | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
1384 | 1388 | | |
1385 | 1389 | | |
1386 | 1390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
116 | 121 | | |
117 | 122 | | |
118 | 123 | | |
| |||
0 commit comments