Generate a name from the Base Equipement name and any EqMods that have been applied. @param pc the PC that has the equipment @return a name generated from the Base Equipement type and any EqMods applied
(final PlayerCharacter pc)
| 3130 | * @return a name generated from the Base Equipement type and any EqMods applied |
| 3131 | */ |
| 3132 | public String nameItemFromModifiers(final PlayerCharacter pc) |
| 3133 | { |
| 3134 | |
| 3135 | final String itemName = getItemNameFromModifiers(getBaseItemName()); |
| 3136 | setDefaultCrit(pc); |
| 3137 | setName(itemName); |
| 3138 | String itemKey = getItemNameFromModifiers(getBaseItemKeyName()).replaceAll("[^A-Za-z0-9/_() +-]", "_"); |
| 3139 | setKeyName(itemKey); |
| 3140 | remove(StringKey.OUTPUT_NAME); |
| 3141 | |
| 3142 | return getKeyName(); |
| 3143 | } |
| 3144 | |
| 3145 | /** |
| 3146 | * Get the number of items of this Equipment being carried |