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

Method putActiveBonusMap

code/src/java/pcgen/core/BonusManager.java:728–740  ·  view source on GitHub ↗

Put the provided bonus key and value into the supplied bonus map. Some sanity checking is done on the key. @param fullyQualifiedBonusType The bonus key @param bonusValue The value of the bonus @param bonusMap The map of bonuses being built.

(final String fullyQualifiedBonusType,
	                                      final String bonusValue,
	                                      Map<String, String> bonusMap)

Source from the content-addressed store, hash-verified

726 * The map of bonuses being built.
727 */
728 private static void putActiveBonusMap(final String fullyQualifiedBonusType,
729 final String bonusValue,
730 Map<String, String> bonusMap)
731 {
732 //
733 // This is a bad idea...will add whatever the bonus is to ALL skills
734 //
735 if (fullyQualifiedBonusType.equalsIgnoreCase("SKILL.LIST"))
736 {
737 return;
738 }
739 bonusMap.put(fullyQualifiedBonusType, bonusValue);
740 }
741
742 public int getPartialStatBonusFor(PCStat stat, boolean useTemp, boolean useEquip)
743 {

Callers 2

totalBonusesForTypeMethod · 0.95
setActiveBonusStackMethod · 0.95

Calls 2

equalsIgnoreCaseMethod · 0.80
putMethod · 0.65

Tested by

no test coverage detected