Match Vip.xml naming with other data files.

This commit is contained in:
MobiusDevelopment
2021-05-12 21:48:22 +00:00
parent 97b798d1e3
commit 3da292017a
17 changed files with 71 additions and 311 deletions

View File

@@ -31,10 +31,8 @@ product_name_begin id=2090052 outer_name=[VIP Gain Scroll - 80] description=[] i
product_name_begin id=2090053 outer_name=[VIP Gain Scroll - 240] description=[] icon=[BranchIcon.Icon.g_bm_vip_potion_i00] icon_panel=[None] mainsubject=[] product_name_end
product_name_begin id=2090054 outer_name=[VIP Gain Scroll - 800] description=[] icon=[BranchIcon.Icon.g_bm_vip_potion_i00] icon_panel=[None] mainsubject=[] product_name_end
product_name_begin id=2090055 outer_name=[VIP Gain Scroll - 2400] description=[] icon=[BranchIcon.Icon.g_bm_vip_potion_i00] icon_panel=[None] mainsubject=[] product_name_end
-->
-->
<vip tier="0" points-required="0" points-lose="0">
<bonus/>
</vip>

View File

@@ -51,7 +51,7 @@ public class VipData implements IXmlReader
return;
}
_vipTiers.clear();
parseDatapackFile("data/vip.xml");
parseDatapackFile("data/Vip.xml");
LOGGER.info(getClass().getSimpleName() + ": Loaded " + _vipTiers.size() + " vips.");
}
@@ -86,7 +86,6 @@ public class VipData implements IXmlReader
LOGGER.severe(getClass().getSimpleName() + ": Missing points-required for vip: " + tier + ", skipping");
continue;
}
required = Integer.parseInt(att.getNodeValue());
att = attrs.getNamedItem("points-lose");
@@ -95,11 +94,9 @@ public class VipData implements IXmlReader
LOGGER.severe(getClass().getSimpleName() + ": Missing points-lose for vip: " + tier + ", skipping");
continue;
}
lose = Integer.parseInt(att.getNodeValue());
final VipInfo vipInfo = new VipInfo(tier, required, lose);
for (Node c = d.getFirstChild(); c != null; c = c.getNextSibling())
{
if ("bonus".equalsIgnoreCase(c.getNodeName()))