use of delta.games.lotro.character.stats.ratings.RatingCurve in project lotro-companion by dmorcellet.
the class StatCurvesConfigurationFactory method buildCriticalsChart.
/**
* Build configuration for the 'criticals' chart.
* @return A chart configuration.
*/
public StatCurvesChartConfiguration buildCriticalsChart() {
StatCurvesChartConfiguration critChart = new StatCurvesChartConfiguration("Critical Rating", STAT.CRITICAL_RATING);
// Magnitude
RatingCurve critDevHitMagnitude = _ratingsMgr.getCritAndDevastateHitMagnitudeCurve();
SingleStatCurveConfiguration magnitudeCfg = new SingleStatCurveConfiguration("Critical/devastate magnitude %", critDevHitMagnitude);
magnitudeCfg.addStat(STAT.CRIT_DEVASTATE_MAGNITUDE_MELEE_PERCENTAGE);
magnitudeCfg.addStat(STAT.CRIT_DEVASTATE_MAGNITUDE_RANGED_PERCENTAGE);
magnitudeCfg.addStat(STAT.CRIT_DEVASTATE_MAGNITUDE_TACTICAL_PERCENTAGE);
critChart.addCurve(magnitudeCfg);
// Critical hit chance
RatingCurve critHit = _ratingsMgr.getCriticalHitCurve();
SingleStatCurveConfiguration critHitCfg = new SingleStatCurveConfiguration("Critical Hit Chance", critHit);
critHitCfg.addStat(STAT.CRITICAL_MELEE_PERCENTAGE);
critHitCfg.addStat(STAT.CRITICAL_RANGED_PERCENTAGE);
critHitCfg.addStat(STAT.CRITICAL_TACTICAL_PERCENTAGE);
critChart.addCurve(critHitCfg);
// Devastate hit chance
RatingCurve devHit = _ratingsMgr.getDevastateHitCurve();
SingleStatCurveConfiguration devastateHitCfg = new SingleStatCurveConfiguration("Devastate Hit Chance", devHit);
devastateHitCfg.addStat(STAT.DEVASTATE_MELEE_PERCENTAGE);
devastateHitCfg.addStat(STAT.DEVASTATE_RANGED_PERCENTAGE);
devastateHitCfg.addStat(STAT.DEVASTATE_TACTICAL_PERCENTAGE);
critChart.addCurve(devastateHitCfg);
return critChart;
}
use of delta.games.lotro.character.stats.ratings.RatingCurve in project lotro-companion by dmorcellet.
the class StatCurvesConfigurationFactory method buildBlockChart.
/**
* Build configuration for the 'block' chart.
* @return A chart configuration.
*/
public StatCurvesChartConfiguration buildBlockChart() {
StatCurvesChartConfiguration blockChart = new StatCurvesChartConfiguration("Block", STAT.BLOCK);
RatingCurve avoidance = _ratingsMgr.getAvoidance();
SingleStatCurveConfiguration fullBlockCfg = new SingleStatCurveConfiguration("Full Block", avoidance);
fullBlockCfg.addStat(STAT.BLOCK_PERCENTAGE);
blockChart.addCurve(fullBlockCfg);
RatingCurve partialAvoidance = _ratingsMgr.getPartialAvoidance();
SingleStatCurveConfiguration partialBlockCfg = new SingleStatCurveConfiguration("Partial Block", partialAvoidance);
partialBlockCfg.addStat(STAT.PARTIAL_BLOCK_PERCENTAGE);
blockChart.addCurve(partialBlockCfg);
RatingCurve partialMitigation = _ratingsMgr.getPartialMitigation();
SingleStatCurveConfiguration partialMitBlockCfg = new SingleStatCurveConfiguration("Partial Block Mitigation", partialMitigation);
partialMitBlockCfg.addStat(STAT.PARTIAL_BLOCK_MITIGATION_PERCENTAGE);
blockChart.addCurve(partialMitBlockCfg);
return blockChart;
}
use of delta.games.lotro.character.stats.ratings.RatingCurve in project lotro-companion by dmorcellet.
the class StatCurvesConfigurationFactory method buildPhysicalDamageChart.
/**
* Build configuration for the 'physical damage' chart.
* @return A chart configuration.
*/
public StatCurvesChartConfiguration buildPhysicalDamageChart() {
RatingCurve damage = _ratingsMgr.getDamage();
StatCurvesChartConfiguration physicalDamageCfg = new StatCurvesChartConfiguration("Physical damage", STAT.PHYSICAL_MASTERY);
SingleStatCurveConfiguration physicalDamageCurveCfg = new SingleStatCurveConfiguration("Physical damage", damage);
physicalDamageCurveCfg.addStat(STAT.MELEE_DAMAGE_PERCENTAGE);
physicalDamageCurveCfg.addStat(STAT.RANGED_DAMAGE_PERCENTAGE);
physicalDamageCfg.addCurve(physicalDamageCurveCfg);
return physicalDamageCfg;
}
Aggregations