From d5ee814459a7b10b130057940199bf1e0ecc1ba9 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 24 Jan 2004 11:04:59 +0000 Subject: [PATCH] =?UTF-8?q?Elfenb=C3=B6gen=20nur=20von=20Elfen!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/kernel/building.c | 2 +- src/common/kernel/item.c | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/common/kernel/building.c b/src/common/kernel/building.c index 0743ea49a..2b2cf624c 100644 --- a/src/common/kernel/building.c +++ b/src/common/kernel/building.c @@ -215,7 +215,7 @@ mm_smithy(const unit * u, const resource_type * rtype, int value) /* material-mo static void init_smithy(struct building_type * bt) { - a_add(&bt->attribs, make_skillmod(NOSKILL, SMF_PRODUCTION, sm_smithy, 0, 0)); + a_add(&bt->attribs, make_skillmod(NOSKILL, SMF_PRODUCTION, sm_smithy, 1.0, 0)); a_add(&bt->attribs, make_matmod(mm_smithy)); } diff --git a/src/common/kernel/item.c b/src/common/kernel/item.c index 2213b17b5..4fc6b3c6c 100644 --- a/src/common/kernel/item.c +++ b/src/common/kernel/item.c @@ -1427,7 +1427,6 @@ init_olditems(void) int capacity = 0; int price; attrib * a; - skillmod_data * smd; item_type * itype; construction * con = calloc(sizeof(construction), 1); @@ -1498,10 +1497,7 @@ init_olditems(void) itype->capacity = STRENGTHCAPACITY; break; case I_GREATBOW: - a = a_add(&con->attribs, a_new(&at_skillmod)); - smd = (skillmod_data*)a->data.v; - smd->skill=NOSKILL; - smd->special = mod_elves_only; + a = a_add(&con->attribs, make_skillmod(NOSKILL, SMF_PRODUCTION, mod_elves_only, 1.0, 0)); break; default: if (itemdata[i].flags & FL_ITEM_MOUNT) itype->capacity = HORSECAPACITY;