… | |
… | |
384 | return nrof ? nrof : 1; |
384 | return nrof ? nrof : 1; |
385 | } |
385 | } |
386 | |
386 | |
387 | uint64 total_weight () const |
387 | uint64 total_weight () const |
388 | { |
388 | { |
389 | return weight * number_of (); |
389 | return weight * number_of () + carrying; |
390 | } |
390 | } |
391 | |
391 | |
392 | // return the dominant material of this item, always return something |
392 | // return the dominant material of this item, always return something |
393 | const materialtype_t *dominant_material () const; |
393 | const materialtype_t *dominant_material () const; |
394 | |
394 | |