Project cleanup pre merge.
This commit is contained in:
@@ -17,37 +17,40 @@ import java.sql.SQLException;
|
||||
|
||||
public class MeleeDamageEffectModifier extends AbstractEffectModifier {
|
||||
|
||||
public MeleeDamageEffectModifier(ResultSet rs) throws SQLException {
|
||||
super(rs);
|
||||
}
|
||||
public MeleeDamageEffectModifier(ResultSet rs) throws SQLException {
|
||||
super(rs);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void _applyEffectModifier(AbstractCharacter source, AbstractWorldObject awo, int trains, AbstractEffectJob effect) {
|
||||
@Override
|
||||
protected void _applyEffectModifier(AbstractCharacter source, AbstractWorldObject awo, int trains, AbstractEffectJob effect) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyBonus(AbstractCharacter ac, int trains) {
|
||||
Float amount = 0f;
|
||||
PlayerBonuses bonus = ac.getBonuses();
|
||||
if (this.percentMod != 0f) { //Stat Percent Modifiers
|
||||
if (this.useRampAdd)
|
||||
amount = this.percentMod + (this.ramp * trains);
|
||||
else
|
||||
amount = this.percentMod * (1 + (this.ramp * trains));
|
||||
amount = amount/100;
|
||||
bonus.addFloat(this, amount);
|
||||
} else { //Stat Modifiers
|
||||
if (this.useRampAdd)
|
||||
amount = this.minMod + (this.ramp * trains);
|
||||
else
|
||||
amount = this.minMod * (1 + (this.ramp * trains));
|
||||
bonus.addFloat(this, amount);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void applyBonus(AbstractCharacter ac, int trains) {
|
||||
Float amount = 0f;
|
||||
PlayerBonuses bonus = ac.getBonuses();
|
||||
if (this.percentMod != 0f) { //Stat Percent Modifiers
|
||||
if (this.useRampAdd)
|
||||
amount = this.percentMod + (this.ramp * trains);
|
||||
else
|
||||
amount = this.percentMod * (1 + (this.ramp * trains));
|
||||
amount = amount / 100;
|
||||
bonus.addFloat(this, amount);
|
||||
} else { //Stat Modifiers
|
||||
if (this.useRampAdd)
|
||||
amount = this.minMod + (this.ramp * trains);
|
||||
else
|
||||
amount = this.minMod * (1 + (this.ramp * trains));
|
||||
bonus.addFloat(this, amount);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyBonus(Item item, int trains) {}
|
||||
@Override
|
||||
public void applyBonus(Building building, int trains) {}
|
||||
@Override
|
||||
public void applyBonus(Item item, int trains) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyBonus(Building building, int trains) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user