MCPcopy Create free account
hub / github.com/PCGen/pcgen / adjustDamage

Method adjustDamage

code/src/java/pcgen/core/Equipment.java:5599–5611  ·  view source on GitHub ↗

Reduce/increase damage for modified size as per DMG p.162 @param aDamage The base damage @param newSizeInt The size to adjust for @return The adjusted damage

(final String aDamage, int newSizeInt)

Source from the content-addressed store, hash-verified

5597 * @return The adjusted damage
5598 */
5599 private String adjustDamage(final String aDamage, int newSizeInt)
5600 {
5601 if (aDamage == null)
5602 {
5603 return null;
5604 }
5605 if (!"special".equalsIgnoreCase(aDamage) && !"-".equals(aDamage))
5606 {
5607 return Globals.adjustDamage(aDamage, newSizeInt - sizeInt());
5608 }
5609
5610 return aDamage;
5611 }
5612
5613 /**
5614 * Gets the damageAdjustedForSize attribute of the Equipment object

Callers 2

getDamageMethod · 0.95

Calls 4

adjustDamageMethod · 0.95
sizeIntMethod · 0.95
equalsIgnoreCaseMethod · 0.80
equalsMethod · 0.65

Tested by

no test coverage detected