… | |
… | |
491 | return (uint64)total_weight () |
491 | return (uint64)total_weight () |
492 | * 1000 |
492 | * 1000 |
493 | * (type == CONTAINER ? 1000 : 1) |
493 | * (type == CONTAINER ? 1000 : 1) |
494 | / dominant_material ()->density; |
494 | / dominant_material ()->density; |
495 | } |
495 | } |
|
|
496 | |
|
|
497 | MTH bool is_arch () const { return this == (const object *)(const archetype *)arch; } |
496 | |
498 | |
497 | MTH bool is_wiz () const { return flag [FLAG_WIZ]; } |
499 | MTH bool is_wiz () const { return flag [FLAG_WIZ]; } |
498 | MTH bool is_weapon () const { return type == ARROW || type == BOW || type == WEAPON; } |
500 | MTH bool is_weapon () const { return type == ARROW || type == BOW || type == WEAPON; } |
499 | MTH bool is_armor () const { return type == ARMOUR || type == SHIELD || type == HELMET |
501 | MTH bool is_armor () const { return type == ARMOUR || type == SHIELD || type == HELMET |
500 | || type == CLOAK || type == BOOTS || type == GLOVES |
502 | || type == CLOAK || type == BOOTS || type == GLOVES |