Iron golems can now create dwarfen only items

(makes irongolems usable for dwarfs)
This commit is contained in:
TomBraun 2014-06-25 13:24:06 +02:00
parent 0400bcafad
commit d4fdddbc27

View file

@ -753,7 +753,7 @@ mod_elves_only(const unit * u, const region * r, skill_t sk, int value)
static int static int
mod_dwarves_only(const unit * u, const region * r, skill_t sk, int value) 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; return value;
unused_arg(r); unused_arg(r);
return -118; return -118;