* @param id item id to check
* @return weight of item
*/
- int get_item_weight(int id);
- float get_item_weightf(int id) {
+ int get_item_weight(int id) const;
+ float get_item_weightf(int id) const {
return (float)get_item_weight(id) / (float)0x10000;
}
+ int get_item_weight_in_loc(int id, const map<string,string> &loc);
+ float get_item_weightf_in_loc(int id, const map<string,string> &loc) {
+ return (float)get_item_weight_in_loc(id, loc) / (float)0x10000;
+ }
int adjust_item_weight(CephContext *cct, int id, int weight);
int adjust_item_weightf(CephContext *cct, int id, float weight) {