forked from github/server
Elfenbögen nur von Elfen!
This commit is contained in:
parent
96c5ae33fa
commit
d5ee814459
|
@ -215,7 +215,7 @@ mm_smithy(const unit * u, const resource_type * rtype, int value) /* material-mo
|
||||||
static void
|
static void
|
||||||
init_smithy(struct building_type * bt)
|
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));
|
a_add(&bt->attribs, make_matmod(mm_smithy));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1427,7 +1427,6 @@ init_olditems(void)
|
||||||
int capacity = 0;
|
int capacity = 0;
|
||||||
int price;
|
int price;
|
||||||
attrib * a;
|
attrib * a;
|
||||||
skillmod_data * smd;
|
|
||||||
item_type * itype;
|
item_type * itype;
|
||||||
construction * con = calloc(sizeof(construction), 1);
|
construction * con = calloc(sizeof(construction), 1);
|
||||||
|
|
||||||
|
@ -1498,10 +1497,7 @@ init_olditems(void)
|
||||||
itype->capacity = STRENGTHCAPACITY;
|
itype->capacity = STRENGTHCAPACITY;
|
||||||
break;
|
break;
|
||||||
case I_GREATBOW:
|
case I_GREATBOW:
|
||||||
a = a_add(&con->attribs, a_new(&at_skillmod));
|
a = a_add(&con->attribs, make_skillmod(NOSKILL, SMF_PRODUCTION, mod_elves_only, 1.0, 0));
|
||||||
smd = (skillmod_data*)a->data.v;
|
|
||||||
smd->skill=NOSKILL;
|
|
||||||
smd->special = mod_elves_only;
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (itemdata[i].flags & FL_ITEM_MOUNT) itype->capacity = HORSECAPACITY;
|
if (itemdata[i].flags & FL_ITEM_MOUNT) itype->capacity = HORSECAPACITY;
|
||||||
|
|
Loading…
Reference in New Issue