forked from github/server
"Pferde im Nebel" - reverted removal of ASTRAL_ITEM_RESTRICTIONS
This commit is contained in:
parent
ec5923adc3
commit
f1227d9957
1 changed files with 17 additions and 0 deletions
|
@ -338,6 +338,23 @@ age_unit(region * r, unit * u)
|
||||||
u->race->age(u);
|
u->race->age(u);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef ASTRAL_ITEM_RESTRICTIONS
|
||||||
|
if (u->region->planep==get_astralplane()) {
|
||||||
|
item ** itemp = &u->items;
|
||||||
|
while (*itemp) {
|
||||||
|
item * itm = *itemp;
|
||||||
|
if ((itm->type->flags & ITF_NOTLOST) == 0) {
|
||||||
|
if (itm->type->flags & (ITF_BIG|ITF_ANIMAL|ITF_CURSED)) {
|
||||||
|
ADDMSG(&u->faction->msgs, msg_message("itemcrumble", "unit region item amount",
|
||||||
|
u, u->region, itm->type->rtype, itm->number));
|
||||||
|
i_free(i_remove(itemp, itm));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
itemp=&itm->next;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue