nornagon / cdda-guide

The Hitchhiker's Guide to the Cataclysm

Home Page:https://cdda-guide.nornagon.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Materials incorrect when `replace_materials` is present

Drew4484 opened this issue · comments

Items that use "replace_materials" do not reflect the replaced materials, showing the original item's values.
https://cdda-guide.nornagon.net/item/armor_lc_heavyplate and https://cdda-guide.nornagon.net/item/armor_qt_heavyplate show the material as "Low Carbon Steel" and show the defensive values appropriate for that material, not the "Tempered Steel" that should appear. This can be replicated on any items that use "replace_material".
image
image

Thanks for the report, this should be fixed now (assuming the tests pass). There are still some remaining bugs with replace_materials—e.g. item weight isn't properly updated—but it should at least have the correct materials in the material list and the armor data!