(Equipment parent, PlayerCharacter aPC)
| 250 | } |
| 251 | |
| 252 | public int getSR(Equipment parent, PlayerCharacter aPC) |
| 253 | { |
| 254 | SpellResistance sr = get(ObjectKey.SR); |
| 255 | if (sr == null) |
| 256 | { |
| 257 | return 0; |
| 258 | } |
| 259 | |
| 260 | if (sr.getReduction().equals(CHOICE_FORMULA) && parent.hasAssociations(this)) |
| 261 | { |
| 262 | return Delta.parseInt(parent.getFirstAssociation(this)); |
| 263 | } |
| 264 | |
| 265 | return sr.getReduction().resolve(parent, true, aPC, getQualifiedKey()).intValue(); |
| 266 | } |
| 267 | |
| 268 | /** |
| 269 | * lets this object compare to others. |
nothing calls this directly
no test coverage detected