Fixed raidboss vitality consumption configuration.
This commit is contained in:
parent
1b710d20fe
commit
10632571b6
@ -528,12 +528,15 @@ public class Attackable extends Npc
|
||||
}
|
||||
clan.addHuntingPoints(attacker, this, finalExp);
|
||||
}
|
||||
if (useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// share with party members
|
||||
|
@ -521,12 +521,15 @@ public class Attackable extends Npc
|
||||
}
|
||||
clan.addHuntingPoints(attacker, this, finalExp);
|
||||
}
|
||||
if (useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// share with party members
|
||||
|
@ -521,12 +521,15 @@ public class Attackable extends Npc
|
||||
}
|
||||
clan.addHuntingPoints(attacker, this, finalExp);
|
||||
}
|
||||
if (useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// share with party members
|
||||
|
@ -521,12 +521,15 @@ public class Attackable extends Npc
|
||||
}
|
||||
clan.addHuntingPoints(attacker, this, finalExp);
|
||||
}
|
||||
if (useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// share with party members
|
||||
|
@ -508,7 +508,7 @@ public class Attackable extends Npc
|
||||
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()];
|
||||
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
||||
if (exp > 0)
|
||||
if ((exp > 0) && useVitalityRate())
|
||||
{
|
||||
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()];
|
||||
sp = attacker.getStat().getValue(Stat.EXPSP_RATE, sp) * Config.SP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
||||
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
||||
if (exp > 0)
|
||||
if ((exp > 0) && useVitalityRate())
|
||||
{
|
||||
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()];
|
||||
sp = attacker.getStat().getValue(Stat.EXPSP_RATE, sp) * Config.SP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
||||
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
||||
if (exp > 0)
|
||||
if ((exp > 0) && useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
|
@ -509,9 +509,12 @@ public class Attackable extends Npc
|
||||
sp = attacker.getStat().getValue(Stat.EXPSP_RATE, sp) * Config.SP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
||||
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
||||
if (exp > 0)
|
||||
{
|
||||
if (useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
}
|
||||
if (attacker.getSymbolSealPoints() > 0)
|
||||
{
|
||||
attacker.setSymbolSealPoints(attacker.getSymbolSealPoints() - Config.CONSUME_SYMBOL_SEAL_POINTS);
|
||||
|
@ -509,9 +509,12 @@ public class Attackable extends Npc
|
||||
sp = attacker.getStat().getValue(Stat.EXPSP_RATE, sp) * Config.SP_AMOUNT_MULTIPLIERS[attacker.getClassId().getId()];
|
||||
attacker.addExpAndSp(exp, sp, useVitalityRate());
|
||||
if (exp > 0)
|
||||
{
|
||||
if (useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
}
|
||||
if (attacker.getSymbolSealPoints() > 0)
|
||||
{
|
||||
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);
|
||||
|
||||
attacker.addExpAndSp(addexp, addsp, useVitalityRate());
|
||||
if (addexp > 0)
|
||||
if ((addexp > 0) && useVitalityRate())
|
||||
{
|
||||
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);
|
||||
|
||||
attacker.addExpAndSp(addexp, addsp, useVitalityRate());
|
||||
if (addexp > 0)
|
||||
if ((addexp > 0) && useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(damage), true, false);
|
||||
}
|
||||
|
@ -521,12 +521,15 @@ public class Attackable extends Npc
|
||||
}
|
||||
clan.addHuntingPoints(attacker, this, finalExp);
|
||||
}
|
||||
if (useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// share with party members
|
||||
|
@ -521,12 +521,15 @@ public class Attackable extends Npc
|
||||
}
|
||||
clan.addHuntingPoints(attacker, this, finalExp);
|
||||
}
|
||||
if (useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// share with party members
|
||||
|
@ -521,12 +521,15 @@ public class Attackable extends Npc
|
||||
}
|
||||
clan.addHuntingPoints(attacker, this, finalExp);
|
||||
}
|
||||
if (useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// share with party members
|
||||
|
@ -523,9 +523,12 @@ public class Attackable extends Npc
|
||||
}
|
||||
clan.addHuntingPoints(attacker, this, finalExp);
|
||||
}
|
||||
if (useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
}
|
||||
}
|
||||
|
||||
rewardAttributeExp(attacker, damage, totalDamage);
|
||||
}
|
||||
|
@ -523,9 +523,12 @@ public class Attackable extends Npc
|
||||
}
|
||||
clan.addHuntingPoints(attacker, this, finalExp);
|
||||
}
|
||||
if (useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
}
|
||||
}
|
||||
|
||||
rewardAttributeExp(attacker, damage, totalDamage);
|
||||
}
|
||||
|
@ -523,9 +523,12 @@ public class Attackable extends Npc
|
||||
}
|
||||
clan.addHuntingPoints(attacker, this, finalExp);
|
||||
}
|
||||
if (useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
}
|
||||
}
|
||||
|
||||
rewardAttributeExp(attacker, damage, totalDamage);
|
||||
}
|
||||
|
@ -525,12 +525,15 @@ public class Attackable extends Npc
|
||||
}
|
||||
clan.addHuntingPoints(attacker, this, finalExp);
|
||||
}
|
||||
if (useVitalityRate())
|
||||
{
|
||||
attacker.updateVitalityPoints(getVitalityPoints(attacker.getLevel(), exp, _isRaid), true, false);
|
||||
PcCafePointsManager.getInstance().givePcCafePoint(attacker, exp);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// share with party members
|
||||
|
Loading…
Reference in New Issue
Block a user