Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Question about armor Size and Permit  (Read 544 times)

DWARFFRAWD

  • Bay Watcher
    • View Profile
Question about armor Size and Permit
« on: January 16, 2023, 11:30:48 am »

Socks has size 10 and permit 15.
and
High boots has size 25 and permit 15.

By the way, how do dwarves wear high boots on their socks?
Isn't the size of the high boots bigger than permit of the socks, so dwarves can't wear them?
Logged

Ziusudra

  • Bay Watcher
    • View Profile
Re: Question about armor Size and Permit
« Reply #1 on: January 16, 2023, 03:45:15 pm »

Layer also matters; socks are under layer, boots are over layer, so in this case only the size of the socks matters, not the size of the boots.
Logged
Ironblood didn't use an axe because he needed it. He used it to be kind. And right now he wasn't being kind.

righthandoftyr

  • Escaped Lunatic
    • View Profile
Re: Question about armor Size and Permit
« Reply #2 on: January 25, 2023, 10:40:17 pm »

Think of 'size' as the thickness of a piece of clothing, and 'permit' as the amount of clothing that can fit under it.

So a dwarf can wear two pairs of socks, they put on one sock of size 10, and the second sock has a permit value of 15, which is more than than total thickness of clothing (1 size 10 sock = 10 total), meaning that the second sock can be equipped over the first.  However, a third sock cannot be equipped, because the total thickness of clothing is now 20 (two socks x size 10 each = 20 total thickness), which is too thick for the 15 permit value of socks.

Similarly, a high boot can be equipped over a sock (sock size 10 < boot permit size 15), but it cannot be equipped over two pair of socks for the same reason you can't add a third sock, the permit value is too small to go over two socks.

However, layers also matter, since boots are assign the 'over' layer and socks the 'inner layer, boots always go over socks regardless of size and permit values.  Even if you modded socks to have a permit value greater than 25, they could still never be put over boots even though they would theoretically be roomy enough to fit boots inside them.

If you wanted to mod in some kind of over-boot clothing item, you would probably want to give it a permit value of at least 35 in order to fit over boots (25 size boot + 10 size sock) and assign it to the 'armor' or 'cover' layers to ensure that dwarfs put things on in the right order.  If you put it on the 'over' layer with the boots, then depending on the order in which the dwarfs equipped things they might put boots on over top of the item that's supposed to cover them, or depending on permit values and how much clothing is being worn potentially not be able to equip the boot at all if they already equipped the cover.

The one further restriction is that each body part can only have one piece of apparel equipped that has the [SHAPED] tag, regardless of layers or permit values.  This also counts for using LBSTEP and UPSTEP, so you cannot for example equip both greaves and leather armor, because the leather armor has an LBSTEP of 1, making it extend down to cover the upper legs, causing it to overlap with the greaves, and since both are shaped they can't both be equipped.  If you try and make a uniform that includes both, each dwarf will wear whichever they manage to equip first and then be unable to equip the second piece of armor.
Logged