… | |
… | |
119 | print "<tr>"; |
119 | print "<tr>"; |
120 | for my $x (0.. $meta->{width} - 1) { |
120 | for my $x (0.. $meta->{width} - 1) { |
121 | if (my $as = $meta->{map}[$x][$y]) { |
121 | if (my $as = $meta->{map}[$x][$y]) { |
122 | my @class; |
122 | my @class; |
123 | |
123 | |
124 | push @class, "fishy" if grep $_->{invisible} || $_->{face} || exists $_->{no_pass}, @$as; |
124 | push @class, "fishy" if grep $_->{invisible} || $_->{face} || exists $_->{no_pass}, @$as; |
125 | push @class, "exit" if grep $is_exit{$arch->{$_->{_name}}{type}}, @$as; |
125 | push @class, "exit" if grep $is_exit{$arch->{$_->{_name}}{type}} && $_->{slaying}, @$as; |
126 | |
126 | push @class, "dialog" if grep $_->{msg} =~ /^\@match/m, @$as; |
127 | my @connected = grep $_, map $_->{connected}, @$as; |
|
|
128 | |
127 | |
129 | print "<td", (@class ? " class='" . (join " ", @class) . "'" : ""), ">"; |
128 | print "<td", (@class ? " class='" . (join " ", @class) . "'" : ""), ">"; |
130 | print "<div>"; |
129 | print "<div>"; |
131 | print "<span class='c'>", (join ", ", @connected), "</span>" if @connected; |
130 | |
|
|
131 | print join "\n", map "<span class='c'>$_</span>", |
|
|
132 | reverse sort { (length $a) <=> (length $b) or $b <=> $a } |
|
|
133 | grep $_, map $_->{connected}, @$as; |
|
|
134 | |
132 | print "<div>($x|$y)"; |
135 | print "<div>($x|$y)"; |
133 | |
136 | |
134 | sub print_archs { |
137 | sub print_archs { |
135 | print "<ul>"; |
138 | print "<ul>"; |
136 | for my $a (@{$_[0]}) { |
139 | for my $a (@{$_[0]}) { |