remote the item_t enum for good

This commit is contained in:
Enno Rehling 2014-06-23 19:17:13 -07:00
parent 73da14e305
commit 77ee0b7af7
4 changed files with 2 additions and 34 deletions

View File

@ -836,7 +836,7 @@ static const armor_type *select_armor(troop t, bool shield)
/* Hier ist zu beachten, ob und wie sich Zauber und Artefakte, die /* Hier ist zu beachten, ob und wie sich Zauber und Artefakte, die
* Rüstungschutz geben, addieren. * Rüstungschutz geben, addieren.
* - Artefakt I_TROLLBELT gibt Rüstung +1 * - Artefakt "trollbelt" gibt Rüstung +1
* - Zauber Rindenhaut gibt Rüstung +3 * - Zauber Rindenhaut gibt Rüstung +3
*/ */
static int trollbelts(const unit *u) { static int trollbelts(const unit *u) {

View File

@ -593,9 +593,6 @@ give_money(unit * s, unit * d, const item_type * itype, int n,
#define MAXHERBS MAX_HERBS #define MAXHERBS MAX_HERBS
#define MAXPOTIONS MAX_POTIONS #define MAXPOTIONS MAX_POTIONS
#define MAXHERBSPERPOTION 6 #define MAXHERBSPERPOTION 6
#define FIRSTLUXURY (I_BALM)
#define LASTLUXURY (I_INCENSE +1)
#define MAXLUXURIES (LASTLUXURY - FIRSTLUXURY)
const potion_type *oldpotiontype[MAXPOTIONS + 1]; const potion_type *oldpotiontype[MAXPOTIONS + 1];
@ -1237,7 +1234,4 @@ void register_resources(void)
register_item_use(use_snowball, "usesnowball"); register_item_use(use_snowball, "usesnowball");
register_item_give(give_horses, "givehorses"); register_item_give(give_horses, "givehorses");
/* make sure noone has deleted an I_ tpe without deleting the R_ type that goes with it! */
assert((int)I_TACTICCRYSTAL == (int)R_TACTICCRYSTAL);
} }

View File

@ -273,32 +273,6 @@ extern "C" {
extern resource_type *r_permaura; extern resource_type *r_permaura;
extern resource_type *r_unit; extern resource_type *r_unit;
enum {
I_IRON, /* 0 */
I_STONE,
I_HORSE,
/* alte Artefakte */
I_AMULET_OF_HEALING,
I_AMULET_OF_TRUE_SEEING,
I_RING_OF_INVISIBILITY,
I_RING_OF_POWER,
I_CHASTITY_BELT, /* bleibt */
I_LAEN,
I_FEENSTIEFEL,
I_BIRTHDAYAMULET,
I_PEGASUS,
I_ELVENHORSE,
I_DOLPHIN,
I_RING_OF_NIMBLEFINGER,
I_TROLLBELT,
I_AURAKULUM,
I_SPHERE_OF_INVISIBILITY,
I_BAG_OF_HOLDING,
I_SACK_OF_CONSERVATION,
I_TACTICCRYSTAL,
MAX_ITEMS /* do not use outside item.c ! */
};
typedef enum { typedef enum {
/* ITEMS: */ /* ITEMS: */
R_IRON, R_IRON,

View File

@ -370,7 +370,7 @@ static void guardian_faction(plane * pl, int id)
continue; continue;
u = createunit(r, f, 1, new_race[RC_GOBLIN]); u = createunit(r, f, 1, new_race[RC_GOBLIN]);
set_string(&u->name, "Igjarjuks Auge"); set_string(&u->name, "Igjarjuks Auge");
set_item(u, I_RING_OF_INVISIBILITY, 1); i_change(&u->items, it_find("roi"), 1);
set_order(&u->thisorder, NULL); set_order(&u->thisorder, NULL);
fset(u, UFL_ANON_FACTION); fset(u, UFL_ANON_FACTION);
set_money(u, 1000); set_money(u, 1000);