forked from github/server
- kopflose, blutleere Wyrme repariert.
This commit is contained in:
parent
2f7ef14898
commit
0b88d46667
|
@ -827,14 +827,16 @@ remove_troop(troop dt)
|
|||
unit * du = df->unit;
|
||||
|
||||
rmtroop(dt);
|
||||
if (!df->alive && du->race->itemdrop) {
|
||||
if (!df->alive) {
|
||||
char eqname[64];
|
||||
const struct equipment * eq;
|
||||
if (du->race->itemdrop) {
|
||||
item * drops = du->race->itemdrop(du->race, du->number-df->run.number);
|
||||
|
||||
if (drops != NULL){
|
||||
i_merge(&du->items, &drops);
|
||||
}
|
||||
}
|
||||
sprintf(eqname, "%s_spoils", du->race->_name[0]);
|
||||
eq = get_equipment(eqname);
|
||||
if (eq!=NULL) {
|
||||
|
|
Loading…
Reference in New Issue