Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

The wind_resist parameter. Does it work?

Open IdleSol opened this issue 1 year ago • 0 comments

Describe the bug

The description says it is responsible for wind protection.

Percentage 0-100. How effective this material is at stopping wind from getting through. Higher values are better. If none of the materials an item is made of specify a value, a default of 99 is assumed.

Testing methodology. I created two suits with 100% coverage of all body parts.

Details
[
  {
    "id": "test_suit_01",
    "type": "ARMOR",
    "name": { "str": "TEST suit 01" },
    "category": "armor",
    "description": "TEST.",
    "weight": "5200 g",
    "volume": "10500 ml",
    "price": "0 USD",
    "price_postapoc": "30 USD",
    "material": [ "mut_feather" ],
    "symbol": "[",
    "looks_like": "survivor_jumpsuit",
    "color": "blue",
    "armor": [
      {
        "material": [
          { "type": "mut_feather", "covered_by_mat": 100, "thickness": 1 }
        ],
        "covers": [ "head", "eyes", "mouth", "torso", "arm_l", "arm_r", "hand_l", "hand_r", "leg_l", "leg_r", "foot_l", "foot_r" ],
        "coverage": 100,
        "encumbrance": 0
      }
    ],
    "warmth": 15,
    "environmental_protection": 5,
    "flags": [ "STURDY" ]
  },
  {
    "id": "test_suit_02",
    "type": "ARMOR",
    "name": { "str": "TEST suit 02" },
    "copy-from": "test_suit_01",
    "material": [ "denim" ],
    "armor": [
      {
        "material": [
          { "type": "denim", "covered_by_mat": 100, "thickness": 1 }
        ],
        "covers": [ "head", "eyes", "mouth", "torso", "arm_l", "arm_r", "hand_l", "hand_r", "leg_l", "leg_r", "foot_l", "foot_r" ],
        "coverage": 100,
        "encumbrance": 0
      }
    ]
  }
]
  1. First suit: Mutant Feather https://github.com/CleverRaven/Cataclysm-DDA/blob/5762e894932f7cde1212de1db7102bcedaa00591/data/json/materials.json#L3093

  2. Second suit: Denim https://github.com/CleverRaven/Cataclysm-DDA/blob/5762e894932f7cde1212de1db7102bcedaa00591/data/json/materials.json#L648

I created a save with a naked character. And repeated for each suit:

  1. teleport to the roof
  2. set weather: clear
  3. set temperature: -20 degrees Celsius
  4. set wind: 100 meters per second
  5. put on the suit
  6. wait 1 minute
  7. see the torso temperature (both values).

In all cases, I got the same values.

Attach save file

test.json

Steps to reproduce

n/a

Expected behavior

  1. The parameter must act as specified.
  2. If it is intended for future changes, then a note in the documentation.
  3. Or an explanation of what it is responsible for and how to check it. If I used the wrong method.

Screenshots

No response

Versions and configuration

Tested it on an older version so it would show what I was typing in the search bar.

  • OS: Windows
    • OS Version: 10.0.19043 (21H1)
  • Game Version: cdda-experimental-2024-08-01-0043 1fd261f [64-bit]
  • Graphics Version: Tiles
  • Game Language: Русский <color_dark_gray>(91.5%) [ru]
  • Mods loaded: [ Тёмные Дни Впереди [dda], Отключить потребности у НПС [no_npc_food], Портальные штормы игнорируют НПС [personal_portal_storms], Медленный рост фунгалоидов [no_fungal_growth], XXX [XXX] ]

Additional context

No response

IdleSol avatar Oct 21 '24 19:10 IdleSol