I've been playing DF for a while on and off and after getting back to it recently I've been annoyed when I try equipping my military dwarves.
No issue with items that are considered armor and not clothing, I just craft them in advance until I have 10 masterwork quality of each item then I create my armor set and squad using it.
But I also equip my dwarves with some items that are considered clothing like hoods, cloaks etc and there I have a big issue because by the time my dwarves get around picking the equipment most of the masterwork quality ones are gone, taken by civilians.
I've looked around for a solution for this that wouldn't require a ton of micro management but to no avail (if I'm wrong let me know please
)
Plus I don't like my civilians using leather items because it's the hardest material to get in big quantities. Basically I either buy it or I never have enough without having tons of animals in my fort that slow down my game.
So I thought, why not separate leather from cloth/wool and have leather cloaks, hoods, trousers, gloves and mittens be armor too so that civilians don't wear them and they can have cloth and yarn ones that the military won't use.
I managed to create those items and they work as intended in my game but I have an issue because chain mail and leather armor don't exist anymore in my game for dwarves.
I don't get any in my dwarven trade caravans and they don't appear in the workshops but they still do for humans (trade caravans bring them).
As I didn't edit those items in any way shape of form I don't understand at all where the problem comes from.
So if someone could give me a hand understanding where I went wrong I would be very thankful !
As an example here is what I did for the leather cloaks.
In the item_armor.txt I changed this :
--removed leather from the tags in the existing cloak
[ITEM_ARMOR:ITEM_ARMOR_CLOAK]
[NAME:cloak:cloaks]
[UBSTEP:MAX]
[LBSTEP:1]
[LAYER:COVER]
[COVERAGE:100]
[LAYER_SIZE:15]
[LAYER_PERMIT:150]
[MATERIAL_SIZE:5]
[SOFT]
[STRUCTURAL_ELASTICITY_WOVEN_THREAD]
--copied and pasted the whole thing as it was originally, renamed it to leather_cloak only left leather as a material, removed [STRUCTURAL_ELASTICITY_WOVEN_THREAD] and added the tags [ARMORLEVEL:1] and [METAL_ARMOR_LEVELS]
--I added those 2 tags after reading the wiki and also simply checking the tags on the leather armor itself as it's a leather item that is considered armor and that's what I wanted.
[ITEM_ARMOR:ITEM_ARMOR_LEATHER_CLOAK]
[NAME:leather_cloak:leather_cloaks]
[ARMORLEVEL:1]
[METAL_ARMOR_LEVELS]
[UBSTEP:MAX]
[LBSTEP:1]
[LAYER:COVER]
[COVERAGE:100]
[LAYER_SIZE:15]
[LAYER_PERMIT:150]
[MATERIAL_SIZE:5]
[LEATHER]
then in the file entity_default.txt I changed this :
--I made sure to be in the [ENTITY:MOUNTAIN] section of the file
--I looked for the other armor tags ARMOR:ITEM_ARMOR_*****
-- at the end of the list I added this without removing or changing any of the tags already present:
[ARMOR:ITEM_ARMOR_LEATHER_CLOAK:COMMON]
When I found the issue I went to check the files and looked if I had removed ot changed the chain mail and leather armor by mistake but they are ok as far as I can tell
in item_armor.txt they are as follows :
[ITEM_ARMOR:ITEM_ARMOR_MAIL_SHIRT]
[NAME:mail shirt:mail shirts]
[ARMORLEVEL:2]
[UBSTEP:1]
[LBSTEP:1]
[LAYER:OVER]
[COVERAGE:100]
[LAYER_SIZE:15]
[LAYER_PERMIT:50]
[MATERIAL_SIZE:6]
[HARD]
[METAL]
[STRUCTURAL_ELASTICITY_CHAIN_ALL]
[ITEM_ARMOR:ITEM_ARMOR_LEATHER]
[NAME:armor:armor]
[PREPLURAL:suits of]
[MATERIAL_PLACEHOLDER:leather]
[ARMORLEVEL:1]
[METAL_ARMOR_LEVELS]
[UBSTEP:1]
[LBSTEP:1]
[SHAPED]
[LAYER:ARMOR]
[COVERAGE:100]
[LAYER_SIZE:20]
[LAYER_PERMIT:50]
[MATERIAL_SIZE:6]
[LEATHER]
they are the 2 items just above the new leather_cloak I added but so is breastplate and that is working
In entity_default.txt here is the full list of armors :
[ARMOR:ITEM_ARMOR_BREASTPLATE:COMMON]
[ARMOR:ITEM_ARMOR_MAIL_SHIRT:COMMON]
[ARMOR:ITEM_ARMOR_LEATHER:COMMON]
[ARMOR:ITEM_ARMOR_COAT:COMMON]
[ARMOR:ITEM_ARMOR_SHIRT:COMMON]
[ARMOR:ITEM_ARMOR_CLOAK:COMMON]
[ARMOR:ITEM_ARMOR_TUNIC:COMMON]
[ARMOR:ITEM_ARMOR_TOGA:UNCOMMON]
[ARMOR:ITEM_ARMOR_VEST:COMMON]
[ARMOR:ITEM_ARMOR_DRESS:COMMON]
[ARMOR:ITEM_ARMOR_ROBE:COMMON]
[ARMOR:ITEM_ARMOR_LEATHER_CLOAK:COMMON]
I just noticed that I added the new item at the bottom of this list here while it's not in the same position in the item_armor.txt but I checked and it's the same for every other item I added and there was no issue with those so I don't think that's the problem ?
Thanks in advance for any help
EDIT 19/05/18 : edited the title for more clarity