MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | // (c) by Padreic (Padreic@mg.mud.de) |
| 2 | |
| 3 | #include "../files.h" |
| 4 | #include <moving.h> |
| 5 | |
| 6 | inherit "std/corpse"; |
| 7 | |
| 8 | int 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 | } |