diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-14 18:38:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-14 20:11:10 +0300 |
commit | 21d0f7cd7b0d8474f1043ae4f283a58ea6d8b352 (patch) | |
tree | c72ace46fabdfd0b83b1cd3b9c5efd89e462da1d /src/resources | |
parent | a442a20199c27838604da514ffc67ae87d4f8433 (diff) | |
download | mv-21d0f7cd7b0d8474f1043ae4f283a58ea6d8b352.tar.gz mv-21d0f7cd7b0d8474f1043ae4f283a58ea6d8b352.tar.bz2 mv-21d0f7cd7b0d8474f1043ae4f283a58ea6d8b352.tar.xz mv-21d0f7cd7b0d8474f1043ae4f283a58ea6d8b352.zip |
Add card item type.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/db/itemdb.cpp | 1 | ||||
-rw-r--r-- | src/resources/itemtype.h | 1 | ||||
-rw-r--r-- | src/resources/itemtypemapdata.h | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp index 2b1601c76..ad6d8f3e9 100644 --- a/src/resources/db/itemdb.cpp +++ b/src/resources/db/itemdb.cpp @@ -187,6 +187,7 @@ static void initStatic() mSoundNames["pickup"] = ItemSoundEvent::PICKUP; mSoundNames["take"] = ItemSoundEvent::TAKE; mSoundNames["put"] = ItemSoundEvent::PUT; + mSoundNames["usecard"] = ItemSoundEvent::USECARD; } void ItemDB::load() diff --git a/src/resources/itemtype.h b/src/resources/itemtype.h index e159a6e0b..2035ce272 100644 --- a/src/resources/itemtype.h +++ b/src/resources/itemtype.h @@ -36,6 +36,7 @@ namespace ItemType EQUIPMENT_TWO_HANDS_WEAPON, EQUIPMENT_TORSO, EQUIPMENT_ARMS, // 5 + CARD, EQUIPMENT_HEAD, EQUIPMENT_LEGS, EQUIPMENT_SHIELD, diff --git a/src/resources/itemtypemapdata.h b/src/resources/itemtypemapdata.h index 952329a24..24bee6bcc 100644 --- a/src/resources/itemtypemapdata.h +++ b/src/resources/itemtypemapdata.h @@ -92,6 +92,10 @@ ItemTypeMap itemTypeMap[] = // TRANSLATORS: inventory button N_("Equip"), N_("Unequip") }, + {"card", ItemType::CARD, + // TRANSLATORS: inventory button + N_("Insert"), std::string() + }, {"racesprite", ItemType::SPRITE_RACE, std::string(), std::string() }, |