# Socks?

**URL:** <https://discourse.cataclysmdda.org/t/socks/5243>\
**Category:** The Lab\
**Created:** [February 28, 2014, 4:42pm UTC](https://discourse.cataclysmdda.org/t/socks/5243 "2014-02-28T16:42:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cowbot](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@Cowbot](https://discourse.cataclysmdda.org/u/Cowbot)\
**Post date:** [February 28, 2014, 4:42pm UTC](https://discourse.cataclysmdda.org/t/socks/5243/1 "2014-02-28T16:42:11Z")

</div>

How does the game differentiate socks from boots and other footwear?

` {
        "type" : "ARMOR",
        "id" : "socks_test",
        "name" : "test socks",
        "weight" : 32,
        "color" : "white",
        "covers" : ["FEET"],
        "to_hit" : 0,
        "storage" : 0,
        "symbol" : "[",
        "description" : "Test socks.",
        "price" : 8000,
        "material" : ["plastic", "null"],
        "volume" : 1,
        "cutting" : 0,
        "warmth" : 25,
        "phase" : "solid",
        "enviromental_protection" : 1,
        "encumbrance" : 0,
        "bashing" : -5,
        "flags" : ["VARSIZE", "WATER_FRIENDLY", "SKINTIGHT"],
        "coverage" : 100,
        "material_thickness" : 1
    },`  
This, for example, results in socks that isn’t socks, but rather a footwear.

---

<div class="post-metadata">

**Author:** ![Soyweiser](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/soyweiser/32/37_2.png) [@Soyweiser](https://discourse.cataclysmdda.org/u/Soyweiser)\
**Post date:** [February 28, 2014, 5:16pm UTC](https://discourse.cataclysmdda.org/t/socks/5243/2 "2014-02-28T17:16:30Z")

</div>

Good question. I have no idea.

---

<div class="post-metadata">

**Author:** ![Parzival](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@Parzival](https://discourse.cataclysmdda.org/u/Parzival)\
**Post date:** [February 28, 2014, 5:50pm UTC](https://discourse.cataclysmdda.org/t/socks/5243/3 "2014-02-28T17:50:52Z")

</div>

Hmm. Well, you do know that those socks are made out of plastic, right?

---

<div class="post-metadata">

**Author:** ![i2amroy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/i2amroy/32/909_2.png) [@i2amroy](https://discourse.cataclysmdda.org/u/i2amroy)\
**Post date:** [February 28, 2014, 5:51pm UTC](https://discourse.cataclysmdda.org/t/socks/5243/4 "2014-02-28T17:51:09Z")

</div>

It does it on a material basis, and slightly different than you think. It’s actually differentiating out the shoes, with all items by default becoming sock types unless they fit the shoe materials. Currently shoes are any footwear made out of

` (worn_item->made_of("leather") || worn_item->made_of("plastic") ||
             worn_item->made_of("steel") || worn_item->made_of("kevlar") ||
             worn_item->made_of("chitin"))) {`

---

<div class="post-metadata">

**Author:** ![John\_Candlebury](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/john_candlebury/32/6437_2.png) [@John\_Candlebury](https://discourse.cataclysmdda.org/u/John_Candlebury)\
**Post date:** [February 28, 2014, 5:58pm UTC](https://discourse.cataclysmdda.org/t/socks/5243/5 "2014-02-28T17:58:31Z")

</div>

By the way 80 dollars for a pair of socks, talk about [ridiculous future inflation](http://tvtropes.org/pmwiki/pmwiki.php/Main/RidiculousFutureInflation).

---

<div class="post-metadata">

**Author:** ![Cowbot](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@Cowbot](https://discourse.cataclysmdda.org/u/Cowbot)\
**Post date:** [February 28, 2014, 6:12pm UTC](https://discourse.cataclysmdda.org/t/socks/5243/6 "2014-02-28T18:12:06Z")

</div>

> [@i2amroy](#):
>
> It does it on a material basis, and slightly different than you think. It’s actually differentiating out the shoes, with all items by default becoming sock types unless they fit the shoe materials.

So if I made socks out of my modded material that isn’t leather etc they will act as socks?

---

<div class="post-metadata">

**Author:** ![Sean\_Mirrsen](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@Sean\_Mirrsen](https://discourse.cataclysmdda.org/u/Sean_Mirrsen)\
**Post date:** [February 28, 2014, 6:56pm UTC](https://discourse.cataclysmdda.org/t/socks/5243/7 "2014-02-28T18:56:06Z")

</div>

> [@Cowbot](#):
>
> [quote=“i2amroy, post:4, topic:5243”]It does it on a material basis, and slightly different than you think. It’s actually differentiating out the shoes, with all items by default becoming sock types unless they fit the shoe materials.

So if I made socks out of my modded material that isn’t leather etc they will act as socks?[/quote]More importantly, anything made of iron (medieval plate boots), wood (clogs), carbon fiber ([these](http://www.carbonfibergear.com/wp-content/uploads/2009/01/3-nike-mercurial-sl-carbon-fiber-soccer-shoe.jpg)), or wool felt ([valenki](http://en.wikipedia.org/wiki/Valenki)), will be considered a sock. Methinks items need an actual “this is an ” tag thing.

edit: though I suppose you could make a case for valenki being a really thick, tough, and rigid kinda sock, since they’re often worn together with galoshes and stuff.

---

<div class="post-metadata">

**Author:** ![ClockworkZombie](https://avatars.discourse-cdn.com/v4/letter/c/e47c2d/32.png) [@ClockworkZombie](https://discourse.cataclysmdda.org/u/ClockworkZombie)\
**Post date:** [February 28, 2014, 9:26pm UTC](https://discourse.cataclysmdda.org/t/socks/5243/8 "2014-02-28T21:26:20Z")

</div>

It seems to me that we should throw out the current materials check and rely on the “skintight” clothing flag instead. Simple, logical, already implemented.

---

<div class="post-metadata">

**Author:** ![Chase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/chase/32/6463_2.png) [@Chase](https://discourse.cataclysmdda.org/u/Chase)\
**Post date:** [February 28, 2014, 9:36pm UTC](https://discourse.cataclysmdda.org/t/socks/5243/9 "2014-02-28T21:36:35Z")

</div>

I agree with that. Simple and easy.

---

<div class="post-metadata">

**Author:** ![Rivet](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/rivet/32/11_2.png) [@Rivet](https://discourse.cataclysmdda.org/u/Rivet)\
**Post date:** [February 28, 2014, 11:11pm UTC](https://discourse.cataclysmdda.org/t/socks/5243/10 "2014-02-28T23:11:20Z")

</div>

Yeah now that I’ve looked at it, that’s a pretty ridiculous thing.

At any rate, [PR](https://github.com/Rivet-the-Zombie/Cataclysm-DDA/compare/CleverRaven:master...Rivet-the-Zombie:socks-fix?expand=1)’ed!
