Search in sources :

Example 1 with Bonus

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;
}
Also used : Bonus(delta.games.lotro.tools.lore.items.lorebook.bonus.Bonus) BasicStatsSet(delta.games.lotro.character.stats.BasicStatsSet)

Aggregations

BasicStatsSet (delta.games.lotro.character.stats.BasicStatsSet)1 Bonus (delta.games.lotro.tools.lore.items.lorebook.bonus.Bonus)1