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

Method isSquadEquipment

library/modules/Items.cpp:2050–2057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2048}
2049
2050bool Items::isSquadEquipment(df::item *item)
2051{ using df::global::plotinfo;
2052 CHECK_NULL_POINTER(item);
2053 if (!plotinfo)
2054 return false;
2055 auto &vec = plotinfo->equipment.items_assigned[item->getType()];
2056 return vector_contains(vec, item->id);
2057}
2058
2059/// Reverse engineered, code reference: 0x140953150 in 50.11-win64-steam
2060/// Our name for this function: itemst::getCapacity

Callers

nothing calls this directly

Calls 2

vector_containsFunction · 0.85
getTypeMethod · 0.80

Tested by

no test coverage detected