blob: 0e7e0346a9eb1b4e925d943a698602831a474f87 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// (c) by Padreic (Padreic@mg.mud.de)
2
3#include "../files.h"
4#include <moving.h>
5
6inherit "std/corpse";
7
8int mampf( string str )
9{
10 object ob;
11 if (QueryDecay()<3) return (int)::mampf(str);
12 notify_fail("Was moechtest Du essen?\n");
13 if (!str || !id(str)) return 0;
14 if (!PL->eat_food(8)) return 1; // fehlermeldung gibt eat_food aus
15 if (!objectp(ob=present(WALDID("leichenmp"), PL))) {
16 ob=clone_object(OBJ("leichenmp"));
17 ob->move(PL, M_NOCHECK|M_GET);
18 }
19 ob->new_corpse();
20 PL->restore_spell_points(50+random(100));
21 write("Du merkst wie die noch im Koerper verbliebene Energie in Dich ueberfliesst.\n");
22 remove();
23 return 1;
24}