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

Unused things in item use actions that should probably be removed.

Open Hirmuolio opened this issue 3 years ago • 5 comments

Is your feature request related to a problem? Please describe.

  • On cauterize item use action "cost" and "flame" parameters are never used. "flame" is false on all items and "cost" is never set.
  • salvage item use action does not seem to be used by any item.
  • On inscribe use action the "cost", "on_items", "material_restricted" and "material_whitelist" are never used. ("material_restricted" is always false)

Solution you would like.

Remove them.

Describe alternatives you have considered.

Use them.

Additional context

No response

Hirmuolio avatar Aug 08 '22 01:08 Hirmuolio

cauterize : Magiclysm\items\enchanted_misc.json, line 34. Heat cube.

salvage : data\json\tool_qualities.json, line 6, part of the tool quality 'CUT'.

As to the last, that's true, but it's also a little silly than pens can write on dirt. :-p

chrispikula avatar Aug 08 '22 13:08 chrispikula

cauterize : Magiclysm\items\enchanted_misc.json, line 34. Heat cube.

It is set to false. It is always set to false on every single item. So it is "used" not in a meaningful way as it is always same.

I hadn't noticed that tool quality can define use action independent from the item. The variables in salvage ("cost", "moves_per_part" and "material_whitelist") are all still unused though.

Hirmuolio avatar Aug 08 '22 13:08 Hirmuolio

There's a few in tool_quality.json for cauterize as well, but they are all, likewise, flame:false,

What would flame being true do for cauterize? Require an external flame nearby, I'm guessing?

chrispikula avatar Aug 08 '22 14:08 chrispikula

Yeah. It was for the old system where you could use knife+fire to cauterize wounds. That seems to have been removed at some point.

Hirmuolio avatar Aug 08 '22 15:08 Hirmuolio

I think I remember that discussion, something about cauterizing being a terrible idea vs just putting pressure on the wound. Side note, not sure how the character would know that, but we've moved away from adding 'bad idea'* recipes and actions at lower skill levels in general.

*Not sure of the right term here.

chrispikula avatar Aug 08 '22 15:08 chrispikula

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

github-actions[bot] avatar Apr 06 '23 01:04 github-actions[bot]