Relevant code is here:
int WareDescr::preciousness(const std::string& tribename) const { if (preciousnesses_.count(tribename) > 0) { return preciousnesses_.at(tribename); } return kInvalidWare; }
So you say here in this point the game should trow exemption with detailed description which ware and tribe was culprit?
Relevant code is here:
int WareDescr: :preciousness( const std::string& tribename) const { _.count( tribename) > 0) {
return preciousnesses_ .at(tribename) ;
if (preciousnesses
}
return kInvalidWare;
}
So you say here in this point the game should trow exemption with detailed description which ware and tribe was culprit?