… | |
… | |
16 | # You should have received a copy of the GNU General Public License |
16 | # You should have received a copy of the GNU General Public License |
17 | # along with gvpe; if not, write to the Free Software |
17 | # along with gvpe; if not, write to the Free Software |
18 | # Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
18 | # Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
19 | |
19 | |
20 | # tower of stars: missing craters? |
20 | # tower of stars: missing craters? |
|
|
21 | # world_108_123 (8|18), hole below grass but shouldn't? |
21 | |
22 | |
22 | our $VERSION = '1.1'; |
23 | our $VERSION = '1.11'; |
23 | |
24 | |
24 | use strict; |
25 | use strict; |
25 | |
26 | |
26 | use Storable; |
27 | use Storable; |
27 | use List::Util qw(max); |
28 | use List::Util qw(max); |
… | |
… | |
232 | or (warn "$mapname: arch '$a->{_name}' not found at ($x|$y)\n"), next; |
233 | or (warn "$mapname: arch '$a->{_name}' not found at ($x|$y)\n"), next; |
233 | |
234 | |
234 | my $smoothlevel = exists $a->{smoothlevel} ? $a->{smoothlevel} : $o->{smoothlevel}; |
235 | my $smoothlevel = exists $a->{smoothlevel} ? $a->{smoothlevel} : $o->{smoothlevel}; |
235 | my $is_floor = exists $a->{is_floor} ? $a->{is_floor} : $o->{is_floor}; |
236 | my $is_floor = exists $a->{is_floor} ? $a->{is_floor} : $o->{is_floor}; |
236 | my $level = $smoothlevel ? $smoothlevel |
237 | my $level = $smoothlevel ? $smoothlevel |
237 | : $is_floor ? 0 |
238 | : $is_floor ? $layer - 1000 |
238 | : 256 + $layer; |
239 | : $layer + 1000; |
239 | |
240 | |
240 | while ($o) { |
241 | while ($o) { |
241 | my $face = $a->{face} || $o->{face}; |
242 | my $face = $a->{face} || $o->{face}; |
242 | |
243 | |
243 | my $pb = tile $face |
244 | my $pb = tile $face |