From 947dc222c77381b7c4e1e71e836899cc966147ab Mon Sep 17 00:00:00 2001 From: Wickedness Date: Sun, 5 Jul 2026 15:08:42 +0900 Subject: [PATCH] Validate max-level equipment exp --- scripts/verify-equipment-catalog-data.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/verify-equipment-catalog-data.mjs b/scripts/verify-equipment-catalog-data.mjs index 5692afa..d4fb643 100644 --- a/scripts/verify-equipment-catalog-data.mjs +++ b/scripts/verify-equipment-catalog-data.mjs @@ -117,6 +117,8 @@ function validateUnitEquipment(errors, unitEntries, itemCatalog, itemKeys, equip errors.push(`${context}: invalid ${slot} exp ${state.exp}`); } else if (state.level < 9 && state.exp >= equipmentExpToNext(state.level)) { errors.push(`${context}: ${slot} exp ${state.exp} should be below next level threshold ${equipmentExpToNext(state.level)}`); + } else if (state.level >= 9 && state.exp > equipmentExpToNext(state.level)) { + errors.push(`${context}: max-level ${slot} exp ${state.exp} should be at most ${equipmentExpToNext(state.level)}`); } }); });