… | |
… | |
3 | # wizard commands |
3 | # wizard commands |
4 | |
4 | |
5 | cf::register_command goto => 0, sub { |
5 | cf::register_command goto => 0, sub { |
6 | my ($ob, $arg) = @_; |
6 | my ($ob, $arg) = @_; |
7 | |
7 | |
8 | return unless $ob->flag (cf::FLAG_WIZ) || $cf::CFG{nopriv_goto}; |
8 | return unless $ob->flag (cf::FLAG_WIZ) || $cf::CFG{unpriv_goto}; |
9 | |
9 | |
10 | my $portal = cf::object::new "exit"; |
10 | my $portal = cf::object::new "exit"; |
11 | |
11 | |
12 | $portal->slaying ($arg); |
12 | $portal->slaying ($arg); |
13 | $portal->stats->hp (0); |
13 | $portal->stats->hp (0); |