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

Method nameItemFromModifiers

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

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)

Source from the content-addressed store, hash-verified

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

Callers 8

selectClothesMethod · 0.95
getEquipmentFromNameMethod · 0.95
addModToEquipmentMethod · 0.80
setSizeMethod · 0.80
createItemMethod · 0.80
testApplyMethod · 0.80

Calls 9

getBaseItemNameMethod · 0.95
setDefaultCritMethod · 0.95
setNameMethod · 0.95
getBaseItemKeyNameMethod · 0.95
removeMethod · 0.65
getKeyNameMethod · 0.65
replaceAllMethod · 0.45
setKeyNameMethod · 0.45

Tested by 1