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

Method canMarkPlant

library/modules/Designations.cpp:82–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82bool Designations::canMarkPlant(const df::plant *plant)
83{
84 CHECK_NULL_POINTER(plant);
85
86 if (!getPlantBlock(plant))
87 return false;
88
89 return !isPlantMarked(plant);
90}
91
92bool Designations::markPlant(const df::plant *plant)
93{

Callers

nothing calls this directly

Calls 1

getPlantBlockFunction · 0.85

Tested by

no test coverage detected