Alchemy transmutation support.
Need to implement transmute skills. I have added skill 17928 as example.
This commit is contained in:
@ -1303,6 +1303,16 @@ public abstract class DocumentBase
|
||||
set.set("capsuled_items_skill", value);
|
||||
}
|
||||
|
||||
protected void setAlchemyTransmuteIngredientData(StatsSet set, String value)
|
||||
{
|
||||
set.set("alchemyTransmuteIngredients", value);
|
||||
}
|
||||
|
||||
protected void setAlchemyTransmuteProductData(StatsSet set, String value)
|
||||
{
|
||||
set.set("alchemyTransmuteProduction", value);
|
||||
}
|
||||
|
||||
protected String getValue(String value, Object template)
|
||||
{
|
||||
// is it a table?
|
||||
|
@ -235,6 +235,40 @@ public class DocumentSkill extends DocumentBase
|
||||
}
|
||||
}
|
||||
}
|
||||
for (int i = 1; i <= lastLvl; i++)
|
||||
{
|
||||
for (n = first; n != null; n = n.getNextSibling())
|
||||
{
|
||||
if ("set".equalsIgnoreCase(n.getNodeName()))
|
||||
{
|
||||
if ("alchemyTransmuteIngredients".equalsIgnoreCase(n.getAttributes().getNamedItem("name").getNodeValue()))
|
||||
{
|
||||
setAlchemyTransmuteIngredientData(_currentSkill.sets[i - 1], getTableValue("#alchemyTransmuteIngredients", i));
|
||||
}
|
||||
else
|
||||
{
|
||||
parseBeanSet(n, _currentSkill.sets[i - 1], i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for (int i = 1; i <= lastLvl; i++)
|
||||
{
|
||||
for (n = first; n != null; n = n.getNextSibling())
|
||||
{
|
||||
if ("set".equalsIgnoreCase(n.getNodeName()))
|
||||
{
|
||||
if ("alchemyTransmuteProduction".equalsIgnoreCase(n.getAttributes().getNamedItem("name").getNodeValue()))
|
||||
{
|
||||
setAlchemyTransmuteProductData(_currentSkill.sets[i - 1], getTableValue("#alchemyTransmuteProduction", i));
|
||||
}
|
||||
else
|
||||
{
|
||||
parseBeanSet(n, _currentSkill.sets[i - 1], i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
for (int i = 0; i < enchantLevels1; i++)
|
||||
{
|
||||
_currentSkill.enchsets1[i] = new StatsSet();
|
||||
|
Reference in New Issue
Block a user