}
if (id == 0)
{
continue;
}
CursedWeapon cw = new CursedWeapon(id, skillId, name);
for (Node cd = d.getFirstChild(); cd != null; cd = cd.getNextSibling())
{
if ("dropRate".equalsIgnoreCase(cd.getNodeName()))
{
cw.setDropRate(Integer.parseInt(cd.getAttributes().getNamedItem("val").getNodeValue()));
}
else if ("duration".equalsIgnoreCase(cd.getNodeName()))
{
attrs = cd.getAttributes();
cw.setDurationMin(Integer.parseInt(attrs.getNamedItem("min").getNodeValue()));
cw.setDurationMax(Integer.parseInt(attrs.getNamedItem("max").getNodeValue()));
}
else if ("durationLost".equalsIgnoreCase(cd.getNodeName()))
{
cw.setDurationLost(Integer.parseInt(cd.getAttributes().getNamedItem("val").getNodeValue()));
}
else if ("disapearChance".equalsIgnoreCase(cd.getNodeName()))
{
cw.setDisapearChance(Integer.parseInt(cd.getAttributes().getNamedItem("val").getNodeValue()));
}
else if ("stageKills".equalsIgnoreCase(cd.getNodeName()))
{
cw.setStageKills(Integer.parseInt(cd.getAttributes().getNamedItem("val").getNodeValue()));
}
else if ("transformationId".equalsIgnoreCase(cd.getNodeName()))
{
cw.setTransformationId(Integer.parseInt(cd.getAttributes().getNamedItem("val").getNodeValue()));
}
else if ("transformationTemplateId".equalsIgnoreCase(cd.getNodeName()))
{
cw.setTransformationTemplateId(Integer.parseInt(cd.getAttributes().getNamedItem("val").getNodeValue()));
}
else if ("transformationName".equalsIgnoreCase(cd.getNodeName()))
{
cw.setTransformationName(cd.getAttributes().getNamedItem("val").getNodeValue());
}
}
_cursedWeaponsMap.put(id, cw);
}
}