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;