Rename and clean up MapleBuffStat
This commit is contained in:
@@ -670,7 +670,7 @@ public class MapleMonster extends AbstractLoadedMapleLife {
|
||||
float multiplier = 1.0f;
|
||||
|
||||
// thanks Prophecy & Aika for finding out Holy Symbol not being applied on party bonuses
|
||||
Integer holySymbol = attacker.getBuffedValue(MapleBuffStat.HOLY_SYMBOL);
|
||||
Integer holySymbol = attacker.getBuffedValue(BuffStat.HOLY_SYMBOL);
|
||||
if (holySymbol != null) {
|
||||
if (YamlConfig.config.server.USE_FULL_HOLY_SYMBOL) { // thanks Mordred, xinyifly, AyumiLove, andy33 for noticing HS hands out 20% of its potential on less than 3 players
|
||||
multiplier *= (1.0 + (holySymbol.doubleValue() / 100.0));
|
||||
@@ -711,7 +711,7 @@ public class MapleMonster extends AbstractLoadedMapleLife {
|
||||
personalExp = 0.0f;
|
||||
}
|
||||
|
||||
Integer expBonus = attacker.getBuffedValue(MapleBuffStat.EXP_INCREASE);
|
||||
Integer expBonus = attacker.getBuffedValue(BuffStat.EXP_INCREASE);
|
||||
if (expBonus != null) { // exp increase player buff found thanks to HighKey21
|
||||
personalExp += expBonus;
|
||||
}
|
||||
@@ -1797,7 +1797,7 @@ public class MapleMonster extends AbstractLoadedMapleLife {
|
||||
}
|
||||
|
||||
public boolean isCharacterPuppetInVicinity(MapleCharacter chr) {
|
||||
MapleStatEffect mse = chr.getBuffEffect(MapleBuffStat.PUPPET);
|
||||
MapleStatEffect mse = chr.getBuffEffect(BuffStat.PUPPET);
|
||||
if (mse != null) {
|
||||
MapleSummon summon = chr.getSummonByKey(mse.getSourceId());
|
||||
|
||||
@@ -2139,7 +2139,7 @@ public class MapleMonster extends AbstractLoadedMapleLife {
|
||||
return;
|
||||
}
|
||||
|
||||
MapleStatEffect puppetEffect = chrController.getBuffEffect(MapleBuffStat.PUPPET);
|
||||
MapleStatEffect puppetEffect = chrController.getBuffEffect(BuffStat.PUPPET);
|
||||
if (puppetEffect != null) {
|
||||
MapleSummon puppet = chrController.getSummonByKey(puppetEffect.getSourceId());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user