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

@@ -27,10 +27,8 @@ product_name_begin id=2090048 outer_name=[Normal VIP Gain Scroll] description=[]
product_name_begin id=2090049 outer_name=[Medium VIP Gain Scroll] description=[] icon=[BranchIcon.Icon.g_bm_vip_potion_i00] icon_panel=[None] mainsubject=[] product_name_end
product_name_begin id=2090050 outer_name=[Good VIP Gain Scroll] description=[] icon=[BranchIcon.Icon.g_bm_vip_potion_i00] icon_panel=[None] mainsubject=[] product_name_end
product_name_begin id=2090051 outer_name=[Perfect VIP Gain Scroll] 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()))