… | |
… | |
73 | { |
73 | { |
74 | LOG (llevError, "resurrect_player: got null treasure from treasurelist %s!\n", &spell->race); |
74 | LOG (llevError, "resurrect_player: got null treasure from treasurelist %s!\n", &spell->race); |
75 | return 0; |
75 | return 0; |
76 | } |
76 | } |
77 | |
77 | |
78 | race = t->item->name; |
78 | race = t->item->archname; |
79 | } |
79 | } |
80 | |
80 | |
81 | /* set up our paths/strings... */ |
81 | /* set up our paths/strings... */ |
82 | sprintf (path, "%s/%s/%s/%s", settings.localdir, settings.playerdir, playername, playername); |
82 | sprintf (path, "%s/%s/%s/%s", settings.localdir, settings.playerdir, playername, playername); |
83 | |
83 | |
… | |
… | |
212 | if (resurrection_fails (clevel, leveldead)) |
212 | if (resurrection_fails (clevel, leveldead)) |
213 | { |
213 | { |
214 | if (spell->randomitems) |
214 | if (spell->randomitems) |
215 | for (treasure *t = spell->randomitems->items; t; t = t->next) |
215 | for (treasure *t = spell->randomitems->items; t; t = t->next) |
216 | if (t->item) |
216 | if (t->item) |
217 | summon_hostile_monsters (op, t->nrof, t->item->name); |
217 | summon_hostile_monsters (op, t->nrof, t->item->archname); |
218 | |
218 | |
219 | return 1; |
219 | return 1; |
220 | |
220 | |
221 | } |
221 | } |
222 | else |
222 | else |