armor
data resetting material_thickness
and environmental_protection
#53130
Labels
<Bug>
This needs to be fixed
Items / Item Actions / Item Qualities
Items and how they work and interact
Describe the bug
The armor fields
material_thickness
andenvironmental_protection
are not copied / reset when usingcopy-from
. Usingproportional
andrelative
on those fields cause the error:Member material_thickness of type cata::optional<float> does not support relative
After some testing I found out that if the item that is copying from the base item defines
armor
field, it resets / deletes thematerial_thickness
andenvironmental_protection
.Steps to reproduce
XL black dragonscale armor
black dragonscale armor
Expected behavior
material_thickness
andenvironmental_protection
being able to usecopy-from
,proportional
andrelative
whenarmor
data is defined.Screenshots
Versions and configuration
Dark Days Ahead [dda],
Disable NPC Needs [no_npc_food],
No Fungal Growth [no_fungal_growth],
Bionic Professions [package_bionic_professions],
Magiclysm [magiclysm],
Sacchi's Debug Mod [sacchitesting]
]
Additional context
Though I show items from Magiclysm, this is not a Magiclysm specific bug, it occurs with other items in vanilla too.
For example, add
"armor": [ { "encumbrance": 10, "coverage": 90, "covers": [ "torso", "leg_l", "leg_r" ] } ]
toxl_armor_chitin
which uses the same value as the item it's copying fromarmor_chitin
, its values will be reset.The text was updated successfully, but these errors were encountered: