DFHack / df-structures

Dwarf Fortress data structure descriptions
https://github.com/DFHack/dfhack
114 stars 80 forks source link

Comments for plant flags #753

Closed Bumber64 closed 1 month ago

Bumber64 commented 1 month ago

Info from Quietust on Discord.

myk002 commented 1 month ago

This might be a case where we want to change to the canonical names and structures and then fix up any code that uses it. Could you scan for usage in the plugins and scripts?

Bumber64 commented 1 month ago

is_burning is used only in scripts/extinguish.lua. Code may need to be removed, or possibly replaced with something that works. is_drowning isn't used. is_dead isn't used. (It's in the version of plugins/plants.cpp that I'm currently working on. Easy change.)

watery is only used in plugins/plants.cpp. However, is_shrub is used in a number of places and is more useful as a flag than part of an enum.