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

Method removeEqModifiers

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

Remove a list equipment modifiers and their associated information eg: Bane|Vermin|Fey.Keen.Vorpal.ABILITYPLUS|CHA=+6 Removes a feature from the EqModifiers attribute of the Equipment object @param aString The feature to be removed from the EqModifiers attribute @param bPrimary

(final String aString, final boolean bPrimary, PlayerCharacter pc)

Source from the content-addressed store, hash-verified

3303 * The PC carrying the item
3304 */
3305 public void removeEqModifiers(final String aString, final boolean bPrimary, PlayerCharacter pc)
3306 {
3307
3308 final StringTokenizer aTok = new StringTokenizer(aString, ".");
3309
3310 while (aTok.hasMoreTokens())
3311 {
3312 final String aEqModName = aTok.nextToken();
3313
3314 if (!aEqModName.equalsIgnoreCase(Constants.NONE))
3315 {
3316 removeEqModifier(aEqModName, bPrimary, pc);
3317 }
3318 }
3319 }
3320
3321 /**
3322 * Change the size of an item

Callers

nothing calls this directly

Calls 4

removeEqModifierMethod · 0.95
hasMoreTokensMethod · 0.80
nextTokenMethod · 0.80
equalsIgnoreCaseMethod · 0.80

Tested by

no test coverage detected