use of delta.games.lotro.tools.lore.items.lorebook.bonus.Bonus in project lotro-tools by dmorcellet.
the class BonusConverter method getStats.
/**
* Get stats from a bonus manager.
* @param bonusMgr Bonus manager.
* @return A set of stats.
*/
public BasicStatsSet getStats(BonusManager bonusMgr) {
BasicStatsSet stats = new BasicStatsSet();
int nbBonus = bonusMgr.getNumberOfBonus();
for (int i = 0; i < nbBonus; i++) {
Bonus bonus = bonusMgr.getBonusAt(i);
parseBonus(bonus, stats);
}
return stats;
}
Aggregations