Add RuneType enum and DamageType.ANTISIEGE

RuneType covers the rune_type values in the client cache data
(CLASS, DISCIPLINE, RACE, TALENT). ANTISIEGE matches the
combat_attack_resist key in the cache data.

RuneTemplate.rune_type and combat_attack_resist on both cache
templates now use these enums.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MagicBotandClaude Opus 5.5 committed 2026-10-15 20:16:05 -04:00
1 parent 0d48080e38
commit c14231afb9
6 files changed
+31 -11

No files matched your search

+2 -2
View File
@@ -59,7 +59,7 @@ public class RuneTemplate {
public float combat_health_current;
public float combat_health_full;
public final LinkedHashMap<String, Float> combat_attack_resist = new LinkedHashMap<>();
public final EnumMap<mbEnums.DamageType, Float> combat_attack_resist = new EnumMap<>(mbEnums.DamageType.class);
public JSONArray combat_powers;
// item_
@@ -109,7 +109,7 @@ public class RuneTemplate {
// rune_
public String rune_type;
public mbEnums.RuneType rune_type;
public String rune_sub_type;
// A handful of runes carry a number instead of a name in rune_sub_type.