(SizeAdjustment sizeAdjustment, final String bonusType, final List<String> typeList, double defaultValue)
| 9139 | } |
| 9140 | |
| 9141 | double getSizeBonusTo(SizeAdjustment sizeAdjustment, final String bonusType, final List<String> typeList, |
| 9142 | double defaultValue) |
| 9143 | { |
| 9144 | for (String type : typeList) |
| 9145 | { |
| 9146 | /* |
| 9147 | * TODO: The standard for these bonuses should probably be TYPE=, but |
| 9148 | * the bonus objects only correctly match TYPE. The bonus objects |
| 9149 | * probably need to be reevaluated to standardize this usage |
| 9150 | */ |
| 9151 | final double a = BonusCalc.charBonusTo(sizeAdjustment, bonusType, "TYPE." + type, this); |
| 9152 | |
| 9153 | if (!CoreUtility.doublesEqual(a, 0.0)) |
| 9154 | { |
| 9155 | defaultValue = a; |
| 9156 | |
| 9157 | break; |
| 9158 | } |
| 9159 | } |
| 9160 | |
| 9161 | return defaultValue; |
| 9162 | } |
| 9163 | |
| 9164 | /** |
| 9165 | * Adds to the provided list any spells that have been granted to the character's class by abilities |
no test coverage detected