From baab10febe330d9eb18bb2a80a13bbe8fb8be378 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 29 Oct 2005 15:03:18 +0000 Subject: [PATCH] the last of the item_type constants disappear. --- src/common/items/artrewards.c | 40 ++--------------------------------- src/common/items/artrewards.h | 3 --- src/res/eressea/items-hse.xml | 7 ++++++ src/res/eressea/items.xml | 34 +++++++++++++++++++++++++++++ src/res/resources.xml | 12 ----------- 5 files changed, 43 insertions(+), 53 deletions(-) diff --git a/src/common/items/artrewards.c b/src/common/items/artrewards.c index fd10699f5..23ea15d8d 100644 --- a/src/common/items/artrewards.c +++ b/src/common/items/artrewards.c @@ -95,23 +95,6 @@ use_hornofdancing(struct unit * u, const struct item_type * itype, return 0; } -static resource_type rt_hornofdancing = { - { "hornofdancing", "hornofdancing_p" }, - { "hornofdancing", "hornofdancing_p" }, - RTF_ITEM, - &res_changeitem -}; - -item_type it_hornofdancing = { - &rt_hornofdancing, /* resourcetype */ - 0, 1, 0, /* flags, weight, capacity */ - NULL, /* construction */ - &use_hornofdancing, - NULL, - NULL -}; - - #define SPEEDUP 2 static int @@ -147,29 +130,10 @@ use_trappedairelemental(struct unit * u, int shipId, return 0; } -static resource_type rt_trappedairelemental = { - { "trappedairelemental", "trappedairelemental_p" }, - { "trappedairelemental", "trappedairelemental_p" }, - RTF_ITEM, - &res_changeitem -}; - -item_type it_trappedairelemental = { - &rt_trappedairelemental, /* resourcetype */ - 0, 1, 0, /* flags, weight, capacity */ - NULL, /* construction */ - NULL, - &use_trappedairelemental, - NULL -}; - - void register_artrewards(void) { at_register(&at_peaceimmune); - it_register(&it_hornofdancing); - register_function((pf_generic)use_hornofdancing, "usehornofdancing"); - it_register(&it_trappedairelemental); - register_function((pf_generic)use_trappedairelemental, "trappedairelemental"); + register_function((pf_generic)use_hornofdancing, "use_hornofdancing"); + register_function((pf_generic)use_trappedairelemental, "use_trappedairelemental"); } diff --git a/src/common/items/artrewards.h b/src/common/items/artrewards.h index 6adffe4ff..a87ebdc33 100644 --- a/src/common/items/artrewards.h +++ b/src/common/items/artrewards.h @@ -18,9 +18,6 @@ extern "C" { #endif -extern struct item_type it_hornofdancing; -extern struct item_type it_trappedairelemental; - extern void register_artrewards(void); #ifdef __cplusplus diff --git a/src/res/eressea/items-hse.xml b/src/res/eressea/items-hse.xml index 2dee77e49..d99263d7b 100644 --- a/src/res/eressea/items-hse.xml +++ b/src/res/eressea/items-hse.xml @@ -38,4 +38,11 @@ + + + + + + + diff --git a/src/res/eressea/items.xml b/src/res/eressea/items.xml index 22685d954..c0c4f254f 100644 --- a/src/res/eressea/items.xml +++ b/src/res/eressea/items.xml @@ -1,6 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/res/resources.xml b/src/res/resources.xml index 59bd07eb1..33a079fbb 100644 --- a/src/res/resources.xml +++ b/src/res/resources.xml @@ -1,11 +1,6 @@ - - - - - @@ -36,13 +31,6 @@ - - - - - - -