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)
| 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 |
nothing calls this directly
no test coverage detected