use of delta.games.lotro.tools.lore.items.lorebook.bonus.BonusType in project lotro-tools by dmorcellet.
the class BonusConverter method parseBonus.
private void parseBonus(Bonus bonus, BasicStatsSet stats) {
BONUS_OCCURRENCE occurrence = bonus.getBonusOccurrence();
if (occurrence == BONUS_OCCURRENCE.ALWAYS) {
BonusType type = bonus.getBonusType();
if (type != BonusType.OTHER) {
STAT stat = getStatFromBonusType(type);
if (stat != null) {
Object value = bonus.getValue();
FixedDecimalsInteger statValue = TulkasValuesUtils.fromObjectValue(value);
stats.addStat(stat, statValue);
// TODO remove bonus from manager
} else {
System.out.println("Ignored: " + bonus);
}
}
} else {
// System.out.println("Ignored: "+bonus);
}
}
Aggregations