diff options
-rw-r--r-- | crawl-ref/source/invent.cc | 12 | ||||
-rw-r--r-- | crawl-ref/source/invent.h | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index aad492a8cf..7d5df507e4 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -105,12 +105,12 @@ const std::string &InvEntry::get_fullname() const return (text); } -const bool InvEntry::is_item_cursed() const +bool InvEntry::is_item_cursed() const { return (item_ident(*item, ISFLAG_KNOW_CURSE) && item_cursed(*item)); } -const bool InvEntry::is_item_glowing() const +bool InvEntry::is_item_glowing() const { return (!item_ident(*item, ISFLAG_KNOW_TYPE) && (get_equip_desc(*item) @@ -121,7 +121,7 @@ const bool InvEntry::is_item_glowing() const || item->base_type == OBJ_BOOKS)))); } -const bool InvEntry::is_item_ego() const +bool InvEntry::is_item_ego() const { return (item_ident(*item, ISFLAG_KNOW_TYPE) && !is_artefact(*item) && item->special != 0 @@ -130,12 +130,12 @@ const bool InvEntry::is_item_ego() const || item->base_type == OBJ_ARMOUR)); } -const bool InvEntry::is_item_art() const +bool InvEntry::is_item_art() const { return (item_ident(*item, ISFLAG_KNOW_TYPE) && is_artefact(*item)); } -const bool InvEntry::is_item_equipped() const +bool InvEntry::is_item_equipped() const { if (item->link == -1 || item->pos.x != -1 || item->pos.y != -1) return(false); @@ -149,7 +149,7 @@ const bool InvEntry::is_item_equipped() const // Returns values < 0 for edible chunks (non-rotten except for Saprovores), // 0 for non-chunks, and values > 0 for rotten chunks for non-Saprovores. -const int InvEntry::item_freshness() const +int InvEntry::item_freshness() const { if (item->base_type != OBJ_FOOD || item->sub_type != FOOD_CHUNK) return 0; diff --git a/crawl-ref/source/invent.h b/crawl-ref/source/invent.h index 443ca070d0..04001440c0 100644 --- a/crawl-ref/source/invent.h +++ b/crawl-ref/source/invent.h @@ -86,12 +86,12 @@ public: const std::string &get_basename() const; const std::string &get_qualname() const; const std::string &get_fullname() const; - const bool is_item_cursed() const; - const bool is_item_glowing() const; - const bool is_item_ego() const; - const bool is_item_art() const; - const bool is_item_equipped() const; - const int item_freshness() const; + bool is_item_cursed() const; + bool is_item_glowing() const; + bool is_item_ego() const; + bool is_item_art() const; + bool is_item_equipped() const; + int item_freshness() const; virtual int highlight_colour() const { |