Revision: | 1.4 |
Committed: | Mon Oct 2 00:03:23 2006 UTC (17 years, 7 months ago) by root |
Branch: | MAIN |
Changes since 1.3: | +1 -1 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{unpriv_goto}; |
9 | |
10 | my $portal = cf::object::new "exit"; |
11 | |
12 | $portal->slaying ($arg); |
13 | $portal->stats->hp (0); |
14 | $portal->stats->sp (0); |
15 | |
16 | $portal->apply ($ob); |
17 | |
18 | $portal->free; |
19 | }; |
20 |