Read named grant keys and signed values from new COBJECTS JSON
Grant pair lists now carry name strings ("HLR-021", "Unarmed Combat")
instead of integer hashes, so they are stored as name -> value maps.
Unresolved hashes are kept as their decimal string and logged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b56d4ee243
commit
1ac5a248db
5 files changed
+52
-32
No files matched your search
+7
-4
@@ -165,7 +165,7 @@ public class RuneParser {
|
||||
rune.item_rank_req = runeJson.getInt("item_rank_req");
|
||||
rune.item_sex_req = CacheParserUtil.readEnum(mbEnums.SexType.class, runeJson.getString("item_sex_req"), templateId, "item_sex_req");
|
||||
rune.item_user_power_action.addAll(CacheParserUtil.readUserPowerActions(runeJson.getJSONArray("item_user_power_action")));
|
||||
rune.item_power_grant.addAll(CacheParserUtil.readPowerGrants(runeJson.getJSONArray("item_power_grant")));
|
||||
rune.item_power_grant.addAll(CacheParserUtil.readPowerGrants(runeJson.getJSONArray("item_power_grant"), templateId));
|
||||
rune.item_power_action.putAll(CacheParserUtil.readPowerActions(runeJson.getJSONArray("item_power_action")));
|
||||
rune.item_sheathable = runeJson.getBoolean("item_sheathable");
|
||||
rune.item_has_stub = runeJson.getBoolean("item_has_stub");
|
||||
@@ -239,9 +239,12 @@ public class RuneParser {
|
||||
|
||||
skillGrant.skill_type = skillGrantJson.getString("skill_type");
|
||||
skillGrant.skill_value = skillGrantJson.getInt("skill_value");
|
||||
skillGrant.skill_granted_attrs = skillGrantJson.getJSONArray("skill_granted_attrs");
|
||||
skillGrant.skill_granted_skills.addAll(CacheParserUtil.readIntArrays(skillGrantJson.getJSONArray("skill_granted_skills")));
|
||||
skillGrant.skill_granted_powers = skillGrantJson.getJSONArray("skill_granted_powers");
|
||||
skillGrant.skill_granted_attrs.putAll(CacheParserUtil.readGrantPairs(skillGrantJson.getJSONArray("skill_granted_attrs"),
|
||||
templateId, "skill_granted_attrs"));
|
||||
skillGrant.skill_granted_skills.putAll(CacheParserUtil.readGrantPairs(skillGrantJson.getJSONArray("skill_granted_skills"),
|
||||
templateId, "skill_granted_skills"));
|
||||
skillGrant.skill_granted_powers.putAll(CacheParserUtil.readGrantPairs(skillGrantJson.getJSONArray("skill_granted_powers"),
|
||||
templateId, "skill_granted_powers"));
|
||||
skillGrant.skill_monster_types = skillGrantJson.getJSONArray("skill_monster_types");
|
||||
|
||||
rune.rune_skill_grant.add(skillGrant);
|
||||
|
||||
Reference in new issue
Block a user