Gets the specified total cost of the kit. Note this is a base total cost which would then be modified by the chosen gear purchase rate on the gear tab. @param aPC The character used to evaluate expressions in relation to @return total cost, or null if no total cost was specified.
(PlayerCharacter aPC)
| 191 | * @return total cost, or null if no total cost was specified. |
| 192 | */ |
| 193 | public BigDecimal getTotalCost(PlayerCharacter aPC) |
| 194 | { |
| 195 | QualifiedObject<Formula> buy = get(ObjectKey.KIT_TOTAL_COST); |
| 196 | Formula f = (buy == null ? null : buy.getObject(aPC, this)); |
| 197 | BigDecimal totalCost = null; |
| 198 | if (f != null) |
| 199 | { |
| 200 | totalCost = BigDecimal.valueOf(f.resolve(aPC, "").doubleValue()); |
| 201 | } |
| 202 | return totalCost; |
| 203 | } |
| 204 | |
| 205 | /** |
| 206 | * Gets the specified total cost of the kit modified by the user's chosen |
no test coverage detected