19 lines
878 B
Python
19 lines
878 B
Python
"""Reviewed corrections to Tortoise item templates, applied before conversion and profile extension.
|
|
|
|
Each fix must keep the server-observable values (DPS) unchanged and be confirmed by a second source.
|
|
"""
|
|
SOURCE_FIXES = {
|
|
# Shadowblaster (gun, ilvl 62): tw_world and RavenCraft show 126-65 (+2-5). RavenCraft's 31.9 DPS equals
|
|
# ((126+65)/2 + (2+5)/2)/3.1, so only min/max order is inverted; owner approved the swap 2026-11-22.
|
|
51746: dict(swap=('dmg_min1', 'dmg_max1'), expect={'dmg_min1': 126, 'dmg_max1': 65}),
|
|
}
|
|
|
|
def apply(templates):
|
|
for t in templates:
|
|
fix = SOURCE_FIXES.get(t['entry'])
|
|
if not fix: continue
|
|
for k, v in fix['expect'].items():
|
|
if t[k] != v: raise SystemExit(f"source fix {t['entry']}: {k}={t[k]} no longer matches {v}; review")
|
|
a, b = fix['swap']; t[a], t[b] = t[b], t[a]
|
|
return templates
|