forked from dworkin/gurbalib
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix up death a little bit. It still needs work but this is a good start.
moved the die function from std/combat to heart_beat.c and fixed up the logic a bit, still need to do more than move player to the void... Kent
- Loading branch information
Kent Mein
committed
Apr 26, 2012
1 parent
57e000d
commit 82772ee
Showing
4 changed files
with
43 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,25 @@ | ||
inherit "/std/corpse"; | ||
inherit OBJECT; | ||
|
||
void setup() { | ||
static string orig_name; | ||
|
||
void create(void) { | ||
::create(); | ||
if (clone_num() != 0) | ||
call_out("decompose", 30); | ||
set_id("corpse"); | ||
set_in_room_desc("A foul smelling corpse."); | ||
set_long("It looks just as awful as it smells."); | ||
} | ||
|
||
void set_name(string name) { | ||
orig_name = name; | ||
set_in_room_desc("The corpse of " + name); | ||
} | ||
|
||
void decompose(void) { | ||
call_out("destruct", 30); | ||
if (!orig_name) | ||
orig_name = "noone"; | ||
|
||
set_in_room_desc("The somewhat decayed corpse of " + orig_name); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.