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