Repository navigation
Commit b0ddd85
committed
Fix saved rolls shifting when old mod lines are now item properties
PoB 2.66 and older saved in-game property lines such as "Intangibility: 5%"
and "Memory Strands: 58", and flask lines such as "Lasts 4.00 Seconds", as
mod lines with a ModRange entry each. 2.67 reads them as item properties or
skips them, so ItemsTab:Load applied every later ModRange one line too early:
an Entropy Grip saved in 2.66 loaded its "+(10-13) to all Attributes" roll at
0.5 instead of 1.
Save writes at most one ModRange per mod line, so more entries than lines
means the saved positions no longer match. The entries are then ignored and
the {range:} tags of the item text are kept.
The line count leaves out talisman enchants added from the base data, as the
ModRange id loop already does; both now use countSavedModLines.1 parent 3f443a7 commit b0ddd85
2 files changed
Lines changed: 40 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
1056 | 1078 | | |
1057 | 1079 | | |
1058 | 1080 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1218 | 1218 | | |
1219 | 1219 | | |
1220 | 1220 | | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
1221 | 1226 | | |
1222 | 1227 | | |
1223 | 1228 | | |
| |||
1243 | 1248 | | |
1244 | 1249 | | |
1245 | 1250 | | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
1246 | 1258 | | |
1247 | 1259 | | |
1248 | 1260 | | |
1249 | | - | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
1250 | 1266 | | |
1251 | 1267 | | |
1252 | 1268 | | |
1253 | 1269 | | |
1254 | 1270 | | |
1255 | 1271 | | |
1256 | 1272 | | |
1257 | | - | |
1258 | | - | |
| 1273 | + | |
1259 | 1274 | | |
1260 | 1275 | | |
1261 | 1276 | | |
| |||
0 commit comments