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

Function getCreatedMetalBars

plugins/strangemood.cpp:136–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136int getCreatedMetalBars (int32_t idx)
137{
138 for (size_t i = 0; i < created_item_type->size(); i++)
139 {
140 if (created_item_type->at(i) == item_type::BAR &&
141 created_item_subtype->at(i) == -1 &&
142 created_item_mattype->at(i) == 0 &&
143 created_item_matindex->at(i) == idx)
144 return created_item_count->at(i);
145 }
146 return 0;
147}
148
149command_result df_strangemood (color_ostream &out, vector <string> & parameters)
150{

Callers 1

df_strangemoodFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected