|
|
|
// • ▌ ▄ ·. ▄▄▄· ▄▄ • ▪ ▄▄· ▄▄▄▄· ▄▄▄· ▐▄▄▄ ▄▄▄ .
|
|
|
|
// ·██ ▐███▪▐█ ▀█ ▐█ ▀ ▪██ ▐█ ▌▪▐█ ▀█▪▐█ ▀█ •█▌ ▐█▐▌·
|
|
|
|
// ▐█ ▌▐▌▐█·▄█▀▀█ ▄█ ▀█▄▐█·██ ▄▄▐█▀▀█▄▄█▀▀█ ▐█▐ ▐▌▐▀▀▀
|
|
|
|
// ██ ██▌▐█▌▐█ ▪▐▌▐█▄▪▐█▐█▌▐███▌██▄▪▐█▐█ ▪▐▌██▐ █▌▐█▄▄▌
|
|
|
|
// ▀▀ █▪▀▀▀ ▀ ▀ ·▀▀▀▀ ▀▀▀·▀▀▀ ·▀▀▀▀ ▀ ▀ ▀▀ █▪ ▀▀▀
|
|
|
|
// Magicbane Emulator Project © 2013 - 2022
|
|
|
|
// www.magicbane.com
|
|
|
|
|
|
|
|
|
|
|
|
package engine.powers.effectmodifiers;
|
|
|
|
|
|
|
|
import engine.jobs.AbstractEffectJob;
|
|
|
|
import engine.objects.*;
|
|
|
|
|
|
|
|
import java.sql.ResultSet;
|
|
|
|
import java.sql.SQLException;
|
|
|
|
import java.util.HashSet;
|
|
|
|
|
|
|
|
public class ExclusiveDamageCapEffectModifier extends AbstractEffectModifier {
|
|
|
|
|
|
|
|
public ExclusiveDamageCapEffectModifier(ResultSet rs) throws SQLException {
|
|
|
|
super(rs);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void _applyEffectModifier(AbstractCharacter source, AbstractWorldObject awo, int trains, AbstractEffectJob effect) {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void applyBonus(AbstractCharacter ac, int trains) {
|
|
|
|
PlayerBonuses bonus = ac.getBonuses();
|
|
|
|
if (bonus == null)
|
|
|
|
return;
|
|
|
|
if (bonus.getList(this.modType) == null)
|
|
|
|
bonus.setList(this.modType, new HashSet<>());
|
|
|
|
bonus.getList(this.modType).add(this.sourceType);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void applyBonus(Item item, int trains) {
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void applyBonus(Building building, int trains) {
|
|
|
|
}
|
|
|
|
}
|