MCPcopy Create free account
hub / github.com/DFHack/dfhack / isStoneInorganic

Method isStoneInorganic

library/modules/Materials.cpp:596–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594}
595
596bool DFHack::isStoneInorganic(int material)
597{
598 auto raw = df::inorganic_raw::find(material);
599
600 if (!raw ||
601 raw->flags.is_set(inorganic_flags::SOIL_ANY) ||
602 raw->material.flags.is_set(material_flags::IS_METAL))
603 return false;
604
605 return true;
606}
607
608t_matgloss::t_matgloss()
609{

Callers

nothing calls this directly

Calls 2

is_setMethod · 0.80
findFunction · 0.50

Tested by

no test coverage detected