… | |
… | |
2093 | } |
2093 | } |
2094 | |
2094 | |
2095 | $self->post_load; |
2095 | $self->post_load; |
2096 | } |
2096 | } |
2097 | |
2097 | |
|
|
2098 | # customize the map for a given player, i.e. |
|
|
2099 | # return the _real_ map. used by e.g. per-player |
|
|
2100 | # maps to change the path to ~playername/mappath |
2098 | sub customise_for { |
2101 | sub customise_for { |
2099 | my ($self, $ob) = @_; |
2102 | my ($self, $ob) = @_; |
2100 | |
2103 | |
2101 | return find "~" . $ob->name . "/" . $self->{path} |
2104 | return find "~" . $ob->name . "/" . $self->{path} |
2102 | if $self->per_player; |
2105 | if $self->per_player; |