Strictify item variety enum

This commit is contained in:
2014-12-01 14:08:00 -05:00
parent f0ededde17
commit 3a1de0c890
27 changed files with 351 additions and 313 deletions

View File

@@ -337,7 +337,7 @@ void handle_sale(short what_chosen,short cost)
base_item.ident = true;
switch (pc_ok_to_buy(current_pc,cost,base_item)) {
case 1: play_sound(-38); give_to_pc(current_pc,base_item,true);
univ.party.magic_store_items[what_magic_shop][what_magic_shop_item].variety = ITEM_TYPE_NO_ITEM;
univ.party.magic_store_items[what_magic_shop][what_magic_shop_item].variety = eItemType::NO_ITEM;
break;
case 2: ASB("Can't carry any more items."); break;
case 3: ASB("Not enough cash."); break;
@@ -469,7 +469,7 @@ void set_up_shop_array()
break;
case 5: case 6: case 7: case 8: case 9:
for (i = 0; i < 10; i++)
if (univ.party.magic_store_items[store_shop_type - 5][i].variety != 0) {
if (univ.party.magic_store_items[store_shop_type - 5][i].variety != eItemType::NO_ITEM) {
store_shop_items[shop_pos] = (store_shop_type - 4) * 1000 + i;
store_i = univ.party.magic_store_items[store_shop_type - 5][i];
store_shop_costs[shop_pos] = (store_i.charges == 0) ?