Sets the isEquipped attribute of the Equipment object. @param aFlag The new isEquipped value @param aPC The PC with the Equipment
(final boolean aFlag, final PlayerCharacter aPC)
| 1043 | * The PC with the Equipment |
| 1044 | */ |
| 1045 | public void setIsEquipped(final boolean aFlag, final PlayerCharacter aPC) |
| 1046 | { |
| 1047 | |
| 1048 | equipped = aFlag; |
| 1049 | |
| 1050 | if (equipped) |
| 1051 | { |
| 1052 | activateBonuses(aPC); |
| 1053 | } |
| 1054 | else |
| 1055 | { |
| 1056 | BonusActivation.deactivateBonuses(this, aPC); |
| 1057 | } |
| 1058 | } |
| 1059 | |
| 1060 | /** |
| 1061 | * Get the item name based off the modifiers |