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

Method setDefaultCrit

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

@param aPC The PC carrying the item

(final PlayerCharacter aPC)

Source from the content-addressed store, hash-verified

3581 * @param aPC The PC carrying the item
3582 */
3583 private void setDefaultCrit(final PlayerCharacter aPC)
3584 {
3585
3586 if (isWeapon())
3587 {
3588 if (aPC != null && EqToken.getOldBonusedCritRange(aPC, this, true) == 0)
3589 {
3590 getEquipmentHead(1).put(IntegerKey.CRIT_RANGE, 1);
3591 }
3592
3593 if (getCritMultiplier() == 0)
3594 {
3595 getEquipmentHead(1).put(IntegerKey.CRIT_MULT, 2);
3596 }
3597 }
3598 }
3599
3600 /**
3601 * Set the quantity of items

Callers 1

nameItemFromModifiersMethod · 0.95

Calls 5

isWeaponMethod · 0.95
getEquipmentHeadMethod · 0.95
getCritMultiplierMethod · 0.95
putMethod · 0.65

Tested by

no test coverage detected