Fixed raidboss vitality consumption configuration.
This commit is contained in:
@@ -528,8 +528,11 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
clan.addHuntingPoints(attacker, this, finalExp);
|
clan.addHuntingPoints(attacker, this, finalExp);
|
||||||
}
|
}
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
if (useVitalityRate())
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
{
|
||||||
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -521,8 +521,11 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
clan.addHuntingPoints(attacker, this, finalExp);
|
clan.addHuntingPoints(attacker, this, finalExp);
|
||||||
}
|
}
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
if (useVitalityRate())
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
{
|
||||||
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -521,8 +521,11 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
clan.addHuntingPoints(attacker, this, finalExp);
|
clan.addHuntingPoints(attacker, this, finalExp);
|
||||||
}
|
}
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
if (useVitalityRate())
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
{
|
||||||
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -521,8 +521,11 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
clan.addHuntingPoints(attacker, this, finalExp);
|
clan.addHuntingPoints(attacker, this, finalExp);
|
||||||
}
|
}
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
if (useVitalityRate())
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
{
|
||||||
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -508,7 +508,7 @@ public class Attackable extends Npc
|
|||||||
exp = attacker.getStat().getValue(Stat.EXPSP_RATE, exp) * Config.EXP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
exp = attacker.getStat().getValue(Stat.EXPSP_RATE, exp) * Config.EXP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
||||||
sp = attacker.getStat().getValue(Stat.EXPSP_RATE, sp) * Config.SP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
sp = attacker.getStat().getValue(Stat.EXPSP_RATE, sp) * Config.SP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
||||||
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
||||||
if (exp > 0)
|
if ((exp > 0) && useVitalityRate())
|
||||||
{
|
{
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
@@ -508,7 +508,7 @@ public class Attackable extends Npc
|
|||||||
exp = attacker.getStat().getValue(Stat.EXPSP_RATE, exp) * Config.EXP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
exp = attacker.getStat().getValue(Stat.EXPSP_RATE, exp) * Config.EXP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
||||||
sp = attacker.getStat().getValue(Stat.EXPSP_RATE, sp) * Config.SP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
sp = attacker.getStat().getValue(Stat.EXPSP_RATE, sp) * Config.SP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
||||||
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
||||||
if (exp > 0)
|
if ((exp > 0) && useVitalityRate())
|
||||||
{
|
{
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
@@ -508,7 +508,7 @@ public class Attackable extends Npc
|
|||||||
exp = attacker.getStat().getValue(Stat.EXPSP_RATE, exp) * Config.EXP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
exp = attacker.getStat().getValue(Stat.EXPSP_RATE, exp) * Config.EXP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
||||||
sp = attacker.getStat().getValue(Stat.EXPSP_RATE, sp) * Config.SP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
sp = attacker.getStat().getValue(Stat.EXPSP_RATE, sp) * Config.SP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
||||||
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
||||||
if (exp > 0)
|
if ((exp > 0) && useVitalityRate())
|
||||||
{
|
{
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
@@ -510,8 +510,11 @@ public class Attackable extends Npc
|
|||||||
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
||||||
if (exp > 0)
|
if (exp > 0)
|
||||||
{
|
{
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
if (useVitalityRate())
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
{
|
||||||
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
}
|
||||||
if (attacker.getSymbolSealPoints() > 0)
|
if (attacker.getSymbolSealPoints() > 0)
|
||||||
{
|
{
|
||||||
attacker.setSymbolSealPoints(attacker.getSymbolSealPoints() - Config.CONSUME_SYMBOL_SEAL_POINTS);
|
attacker.setSymbolSealPoints(attacker.getSymbolSealPoints() - Config.CONSUME_SYMBOL_SEAL_POINTS);
|
||||||
|
@@ -510,8 +510,11 @@ public class Attackable extends Npc
|
|||||||
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
||||||
if (exp > 0)
|
if (exp > 0)
|
||||||
{
|
{
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
if (useVitalityRate())
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
{
|
||||||
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
}
|
||||||
if (attacker.getSymbolSealPoints() > 0)
|
if (attacker.getSymbolSealPoints() > 0)
|
||||||
{
|
{
|
||||||
attacker.setSymbolSealPoints(attacker.getSymbolSealPoints() - Config.CONSUME_SYMBOL_SEAL_POINTS);
|
attacker.setSymbolSealPoints(attacker.getSymbolSealPoints() - Config.CONSUME_SYMBOL_SEAL_POINTS);
|
||||||
|
@@ -476,7 +476,7 @@ public class Attackable extends Npc
|
|||||||
final int addsp = (int) attacker.calcStat(Stat.EXPSP_RATE, sp, null, null);
|
final int addsp = (int) attacker.calcStat(Stat.EXPSP_RATE, sp, null, null);
|
||||||
|
|
||||||
attacker.addExpAndSp(addexp, addsp, useVitalityRate());
|
attacker.addExpAndSp(addexp, addsp, useVitalityRate());
|
||||||
if (addexp > 0)
|
if ((addexp > 0) && useVitalityRate())
|
||||||
{
|
{
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(damage), true, false);
|
attacker.updateVitalityPoints(getVitalityPoints(damage), true, false);
|
||||||
}
|
}
|
||||||
|
@@ -476,7 +476,7 @@ public class Attackable extends Npc
|
|||||||
final int addsp = (int) attacker.calcStat(Stat.EXPSP_RATE, sp, null, null);
|
final int addsp = (int) attacker.calcStat(Stat.EXPSP_RATE, sp, null, null);
|
||||||
|
|
||||||
attacker.addExpAndSp(addexp, addsp, useVitalityRate());
|
attacker.addExpAndSp(addexp, addsp, useVitalityRate());
|
||||||
if (addexp > 0)
|
if ((addexp > 0) && useVitalityRate())
|
||||||
{
|
{
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(damage), true, false);
|
attacker.updateVitalityPoints(getVitalityPoints(damage), true, false);
|
||||||
}
|
}
|
||||||
|
@@ -521,8 +521,11 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
clan.addHuntingPoints(attacker, this, finalExp);
|
clan.addHuntingPoints(attacker, this, finalExp);
|
||||||
}
|
}
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
if (useVitalityRate())
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
{
|
||||||
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -521,8 +521,11 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
clan.addHuntingPoints(attacker, this, finalExp);
|
clan.addHuntingPoints(attacker, this, finalExp);
|
||||||
}
|
}
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
if (useVitalityRate())
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
{
|
||||||
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -521,8 +521,11 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
clan.addHuntingPoints(attacker, this, finalExp);
|
clan.addHuntingPoints(attacker, this, finalExp);
|
||||||
}
|
}
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
if (useVitalityRate())
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
{
|
||||||
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -523,8 +523,11 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
clan.addHuntingPoints(attacker, this, finalExp);
|
clan.addHuntingPoints(attacker, this, finalExp);
|
||||||
}
|
}
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
if (useVitalityRate())
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
{
|
||||||
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rewardAttributeExp(attacker, damage, totalDamage);
|
rewardAttributeExp(attacker, damage, totalDamage);
|
||||||
|
@@ -523,8 +523,11 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
clan.addHuntingPoints(attacker, this, finalExp);
|
clan.addHuntingPoints(attacker, this, finalExp);
|
||||||
}
|
}
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
if (useVitalityRate())
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
{
|
||||||
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rewardAttributeExp(attacker, damage, totalDamage);
|
rewardAttributeExp(attacker, damage, totalDamage);
|
||||||
|
@@ -523,8 +523,11 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
clan.addHuntingPoints(attacker, this, finalExp);
|
clan.addHuntingPoints(attacker, this, finalExp);
|
||||||
}
|
}
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
if (useVitalityRate())
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
{
|
||||||
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rewardAttributeExp(attacker, damage, totalDamage);
|
rewardAttributeExp(attacker, damage, totalDamage);
|
||||||
|
@@ -525,8 +525,11 @@ public class Attackable extends Npc
|
|||||||
}
|
}
|
||||||
clan.addHuntingPoints(attacker, this, finalExp);
|
clan.addHuntingPoints(attacker, this, finalExp);
|
||||||
}
|
}
|
||||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
if (useVitalityRate())
|
||||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
{
|
||||||
|
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||||
|
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user