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

Method markForMelting

library/modules/Items.cpp:2026–2033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2024}
2025
2026bool Items::markForMelting(df::item *item) {
2027 CHECK_NULL_POINTER(item);
2028 if (item->flags.bits.melt || !canMelt(item, true))
2029 return false;
2030 insert_into_vector(world->items.other.ANY_MELT_DESIGNATED, &df::item::id, item);
2031 item->flags.bits.melt = true;
2032 return true;
2033}
2034
2035bool Items::cancelMelting(df::item *item) {
2036 CHECK_NULL_POINTER(item);

Callers

nothing calls this directly

Calls 1

insert_into_vectorFunction · 0.85

Tested by

no test coverage detected