NPC stat removal.
This commit is contained in:
@ -184,12 +184,6 @@ public class NpcData implements IXmlReader
|
||||
}
|
||||
case "stats":
|
||||
{
|
||||
set.set("baseSTR", parseInteger(attrs, "str"));
|
||||
set.set("baseINT", parseInteger(attrs, "int"));
|
||||
set.set("baseDEX", parseInteger(attrs, "dex"));
|
||||
set.set("baseWIT", parseInteger(attrs, "wit"));
|
||||
set.set("baseCON", parseInteger(attrs, "con"));
|
||||
set.set("baseMEN", parseInteger(attrs, "men"));
|
||||
for (Node statsNode = npcNode.getFirstChild(); statsNode != null; statsNode = statsNode.getNextSibling())
|
||||
{
|
||||
attrs = statsNode.getAttributes();
|
||||
|
@ -56,13 +56,6 @@ public class AirShipManager
|
||||
npcDat.set("level", 0);
|
||||
npcDat.set("jClass", "boat");
|
||||
|
||||
npcDat.set("baseSTR", 0);
|
||||
npcDat.set("baseCON", 0);
|
||||
npcDat.set("baseDEX", 0);
|
||||
npcDat.set("baseINT", 0);
|
||||
npcDat.set("baseWIT", 0);
|
||||
npcDat.set("baseMEN", 0);
|
||||
|
||||
npcDat.set("baseShldDef", 0);
|
||||
npcDat.set("baseShldRate", 0);
|
||||
npcDat.set("baseAccCombat", 38);
|
||||
|
@ -62,13 +62,6 @@ public class BoatManager
|
||||
npcDat.set("level", 0);
|
||||
npcDat.set("jClass", "boat");
|
||||
|
||||
npcDat.set("baseSTR", 0);
|
||||
npcDat.set("baseCON", 0);
|
||||
npcDat.set("baseDEX", 0);
|
||||
npcDat.set("baseINT", 0);
|
||||
npcDat.set("baseWIT", 0);
|
||||
npcDat.set("baseMEN", 0);
|
||||
|
||||
npcDat.set("baseShldDef", 0);
|
||||
npcDat.set("baseShldRate", 0);
|
||||
npcDat.set("baseAccCombat", 38);
|
||||
|
@ -163,14 +163,6 @@ public class CharStat
|
||||
return (float) (((1.1) * getPAtkSpd()) / _activeChar.getTemplate().getBasePAtkSpd());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the CON of the L2Character (base+modifier).
|
||||
*/
|
||||
public final int getCON()
|
||||
{
|
||||
return (int) calcStat(Stats.STAT_CON, _activeChar.getTemplate().getBaseCON());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param target
|
||||
* @param init
|
||||
@ -216,14 +208,6 @@ public class CharStat
|
||||
return (int) calcStat(Stats.CRITICAL_RATE_POS, base);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the DEX of the L2Character (base+modifier).
|
||||
*/
|
||||
public final int getDEX()
|
||||
{
|
||||
return (int) calcStat(Stats.STAT_DEX, _activeChar.getTemplate().getBaseDEX());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param target
|
||||
* @return the Attack Evasion rate (base+modifier) of the L2Character.
|
||||
@ -266,14 +250,6 @@ public class CharStat
|
||||
_exp = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the INT of the L2Character (base+modifier).
|
||||
*/
|
||||
public int getINT()
|
||||
{
|
||||
return (int) calcStat(Stats.STAT_INT, _activeChar.getTemplate().getBaseINT());
|
||||
}
|
||||
|
||||
public byte getLevel()
|
||||
{
|
||||
return _level;
|
||||
@ -410,6 +386,30 @@ public class CharStat
|
||||
return calcStat(Stats.MAGIC_DEFENCE, defence, target, skill);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the CON of the L2Character (base+modifier).
|
||||
*/
|
||||
public final int getCON()
|
||||
{
|
||||
return (int) calcStat(Stats.STAT_CON, _activeChar.getTemplate().getBaseCON());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the DEX of the L2Character (base+modifier).
|
||||
*/
|
||||
public final int getDEX()
|
||||
{
|
||||
return (int) calcStat(Stats.STAT_DEX, _activeChar.getTemplate().getBaseDEX());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the INT of the L2Character (base+modifier).
|
||||
*/
|
||||
public int getINT()
|
||||
{
|
||||
return (int) calcStat(Stats.STAT_INT, _activeChar.getTemplate().getBaseINT());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the MEN of the L2Character (base+modifier).
|
||||
*/
|
||||
@ -418,11 +418,33 @@ public class CharStat
|
||||
return (int) calcStat(Stats.STAT_MEN, _activeChar.getTemplate().getBaseMEN());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the STR of the L2Character (base+modifier).
|
||||
*/
|
||||
public final int getSTR()
|
||||
{
|
||||
return (int) calcStat(Stats.STAT_STR, _activeChar.getTemplate().getBaseSTR());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the WIT of the L2Character (base+modifier).
|
||||
*/
|
||||
public final int getWIT()
|
||||
{
|
||||
return (int) calcStat(Stats.STAT_WIT, _activeChar.getTemplate().getBaseWIT());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the LUC of the L2Character (base+modifier).
|
||||
*/
|
||||
public final int getLUC()
|
||||
{
|
||||
return (int) calcStat(Stats.STAT_LUC, _activeChar.getTemplate().getBaseLUC());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the CHA of the L2Character (base+modifier).
|
||||
*/
|
||||
public final int getCHA()
|
||||
{
|
||||
return (int) calcStat(Stats.STAT_CHA, _activeChar.getTemplate().getBaseCHA());
|
||||
@ -633,22 +655,6 @@ public class CharStat
|
||||
_sp = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the STR of the L2Character (base+modifier).
|
||||
*/
|
||||
public final int getSTR()
|
||||
{
|
||||
return (int) calcStat(Stats.STAT_STR, _activeChar.getTemplate().getBaseSTR());
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the WIT of the L2Character (base+modifier).
|
||||
*/
|
||||
public final int getWIT()
|
||||
{
|
||||
return (int) calcStat(Stats.STAT_WIT, _activeChar.getTemplate().getBaseWIT());
|
||||
}
|
||||
|
||||
/**
|
||||
* @param skill
|
||||
* @return the mpConsume.
|
||||
|
Reference in New Issue
Block a user