MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / startItem

Method startItem

src/Savegame/Production.cpp:190–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void Production::startItem(Base * b, SavedGame * g)
191{
192 g->setFunds(g->getFunds() - _rules->getManufactureCost ());
193 for(std::map<std::string,int>::const_iterator iter = _rules->getRequiredItems ().begin (); iter != _rules->getRequiredItems ().end (); ++iter)
194 {
195 b->getItems ()->removeItem(iter->first, iter->second);
196 }
197}
198
199YAML::Node Production::save() const
200{

Callers 1

btnOkClickMethod · 0.80

Calls 5

setFundsMethod · 0.80
getFundsMethod · 0.80
getManufactureCostMethod · 0.80
removeItemMethod · 0.45
getItemsMethod · 0.45

Tested by

no test coverage detected