ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/utils/cfutil.in
(Generate patch)

Comparing deliantra/server/utils/cfutil.in (file contents):
Revision 1.94 by root, Wed Oct 6 00:18:14 2010 UTC vs.
Revision 1.102 by root, Wed Oct 6 18:23:52 2010 UTC

158 print "maps installed successfully.\n"; 158 print "maps installed successfully.\n";
159} 159}
160 160
161our @WALL_SUFFIX = qw(⬤ ╹ ╺ ┗ ╻ ┃ ┏ ┣ ╸ ┛ ━ ┻ ┓ ┫ ┳ ╋); 161our @WALL_SUFFIX = qw(⬤ ╹ ╺ ┗ ╻ ┃ ┏ ┣ ╸ ┛ ━ ┻ ┓ ┫ ┳ ╋);
162 162
163# used to create crude text glyphs for text-based clients
163sub autoglyph { 164sub autoglyph {
164 my ($stem, $face) = @_; 165 my ($stem, $face) = @_;
165 166
166 if ($stem =~ /^wall\/|Nimwall/) { 167 if ($stem =~ /^wall\/|Nimwall/) {
167 return $WALL_SUFFIX[hex $1] 168 return $WALL_SUFFIX[hex $1]
168 if $stem =~ $stem =~ /(_[0-9A-F]).x11/; 169 if $stem =~ /(_[0-9A-F]).x11/;
169 170
171 "█"
172
173 } elsif ($stem =~ /^traps\//) {
174 "☠"
175
176 } elsif ($stem =~ /^armour\/shield/) {
177 "Ø"
178
179 } elsif ($stem =~ /^armour\//) {
170 "+" 180 "A"
181
182 } elsif ($stem =~ /^weapon\//) {
183 "†"
184
185 } elsif ($stem =~ /^readable\//) {
186 "✉"
187
188 } elsif ($stem =~ /^river\//) {
189 "~"
171 190
172 } elsif ($stem =~ /^floor\/|^ground\/|Nimfloor/) { 191 } elsif ($stem =~ /^floor\/|^ground\/|Nimfloor/) {
192 "·"
193
194 } elsif ($stem =~ /^spells\//) {
173 "." 195 "!"
196
197 } elsif ($stem =~ /^exit\//) {
198 "⎆"
199
200 } elsif ($stem =~ /^construct\//) {
201 "⌂"
174 202
175 } elsif ($stem =~ /^player\//) { 203 } elsif ($stem =~ /^player\//) {
176 "\@" 204 "\@"
205
206 } elsif ($stem =~ /^(?:monster|misc|class|connect|gods|indoor|inorganic|mining|music|skills).*\/(.)/) {
207 $1
177 208
178 } else { 209 } else {
179 substr $stem, 0, 1 210 substr $stem, 0, 1
180 } 211 }
181} 212}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines