diff options
author | Neil Moore <neil@s-z.org> | 2014-07-20 14:54:54 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-07-20 15:00:51 -0400 |
commit | e4e15622d6dc5ef54af4f73848613013e2393a3b (patch) | |
tree | bedfd3fda906692ef02d4ec87649e8b73460b591 /crawl-ref/source/invent.cc | |
parent | 28522026f31d56de63009c75b19dd5d4752a7a79 (diff) | |
download | crawl-ref-e4e15622d6dc5ef54af4f73848613013e2393a3b.tar.gz crawl-ref-e4e15622d6dc5ef54af4f73848613013e2393a3b.zip |
Simplify.
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r-- | crawl-ref/source/invent.cc | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index c7abc55e0d..91eef62528 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -1010,24 +1010,12 @@ string item_class_name(int type, bool terse) { if (terse) { - // TODO: merge with base_type_string() switch (type) { - case OBJ_GOLD: return "gold"; - case OBJ_WEAPONS: return "weapon"; - case OBJ_MISSILES: return "missile"; - case OBJ_ARMOUR: return "armour"; - case OBJ_WANDS: return "wand"; - case OBJ_FOOD: return "food"; - case OBJ_SCROLLS: return "scroll"; - case OBJ_JEWELLERY: return "jewellery"; - case OBJ_POTIONS: return "potion"; - case OBJ_BOOKS: return "book"; case OBJ_STAVES: return "magical staff"; - case OBJ_RODS: return "rod"; - case OBJ_ORBS: return "orb"; case OBJ_MISCELLANY: return "misc"; case OBJ_CORPSES: return "carrion"; + default: return base_type_string((object_class_type) type); } } else |