Revision: | 1.1 |
Committed: | Sun Oct 1 23:43:38 2006 UTC (17 years, 7 months ago) by root |
Branch: | MAIN |
Log Message: | *** empty log message *** |
# | User | Rev | Content |
---|---|---|---|
1 | root | 1.1 | #! perl |
2 | |||
3 | # wizard commands | ||
4 | |||
5 | cf::register_command goto => 0, sub { | ||
6 | my ($ob, $arg) = @_; | ||
7 | |||
8 | my $portal = cf::object::new "exit"; | ||
9 | |||
10 | $portal->slaying ($arg); | ||
11 | $portal->stats->hp (0); #todo#improve | ||
12 | $portal->stats->sp (0); | ||
13 | |||
14 | $portal->apply ($ob); | ||
15 | |||
16 | $portal->free; | ||
17 | }; | ||
18 |