… | |
… | |
9 | |
9 | |
10 | if (my $teleport = $ob->{options}{"teleport_$status"}) { |
10 | if (my $teleport = $ob->{options}{"teleport_$status"}) { |
11 | my ($x, $y, $damned) = split /,/, $teleport; |
11 | my ($x, $y, $damned) = split /,/, $teleport; |
12 | my $pl = cf::player::find_active $ob->{player}; |
12 | my $pl = cf::player::find_active $ob->{player}; |
13 | |
13 | |
14 | $pl->ob->transfer ($x, $y); |
14 | my $path = $pl->ob->map->path; |
|
|
15 | |
|
|
16 | $pl->ob->goto ($path, $x, $y); |
15 | $pl->savebed ($pl->ob->map->path, $x, $y) |
17 | $pl->savebed ($path, $x, $y) |
16 | if $ob->{options}{"set_savebed_$status"}; |
18 | if $ob->{options}{"set_savebed_$status"}; |
17 | } |
19 | } |
18 | } |
20 | } |
19 | |
21 | |
20 | sub apply { |
22 | sub apply { |