From d4fdddbc2710dbf27816fc616407952522f17394 Mon Sep 17 00:00:00 2001 From: TomBraun Date: Wed, 25 Jun 2014 13:24:06 +0200 Subject: [PATCH] Iron golems can now create dwarfen only items (makes irongolems usable for dwarfs) --- src/kernel/item.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kernel/item.c b/src/kernel/item.c index 016efcc16..b3c1f1fe1 100644 --- a/src/kernel/item.c +++ b/src/kernel/item.c @@ -753,7 +753,7 @@ mod_elves_only(const unit * u, const region * r, skill_t sk, int value) static int mod_dwarves_only(const unit * u, const region * r, skill_t sk, int value) { - if (u_race(u) == new_race[RC_DWARF]) + if (u_race(u) == new_race[RC_DWARF] || (u_race(u)->flags & RCF_IRONGOLEM)) return value; unused_arg(r); return -118;