ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra/Deliantra.pm
(Generate patch)

Comparing deliantra/Deliantra/Deliantra.pm (file contents):
Revision 1.82 by root, Tue Feb 6 23:53:26 2007 UTC vs.
Revision 1.86 by root, Wed Feb 7 00:56:06 2007 UTC

58 qw(move_type move_block move_allow move_on move_off move_slow); 58 qw(move_type move_block move_allow move_on move_off move_slow);
59 59
60# same as in server save routine, to (hopefully) be compatible 60# same as in server save routine, to (hopefully) be compatible
61# to the other editors. 61# to the other editors.
62our @FIELD_ORDER_MAP = (qw( 62our @FIELD_ORDER_MAP = (qw(
63 file_format_version
63 name attach swap_time reset_timeout fixed_resettime difficulty region 64 name attach swap_time reset_timeout fixed_resettime difficulty region
64 shopitems shopgreed shopmin shopmax shoprace 65 shopitems shopgreed shopmin shopmax shoprace
65 darkness width height enter_x enter_y msg maplore 66 darkness width height enter_x enter_y msg maplore
66 unique template 67 unique template
67 outdoor temp pressure humid windspeed winddir sky nosmooth 68 outdoor temp pressure humid windspeed winddir sky nosmooth
213 adamant => 256, 214 adamant => 256,
214 liquid => 512, 215 liquid => 512,
215 tin => 1024, 216 tin => 1024,
216 bone => 2048, 217 bone => 2048,
217 ice => 4096, 218 ice => 4096,
219
220 # guesses
221 runestone => 12,
222 bronze => 18,
223 "ancient wood" => 20,
224 glass => 36,
225 marble => 66,
226 ice => 68,
227 stone => 70,
228 stone => 80,
229 cloth => 136,
230 ironwood => 144,
231 adamantium => 258,
232 glacium => 260,
233 blood => 544,
218; 234;
219 235
220# object as in "Object xxx", i.e. archetypes 236# object as in "Object xxx", i.e. archetypes
221sub normalize_object($) { 237sub normalize_object($) {
222 my ($ob) = @_; 238 my ($ob) = @_;
230 delete $ob->{material}; 246 delete $ob->{material};
231 } else { 247 } else {
232 warn "object $ob->{_name} has both materialname ($ob->{materialname}) and material ($ob->{material}) set.\n"; 248 warn "object $ob->{_name} has both materialname ($ob->{materialname}) and material ($ob->{material}) set.\n";
233 delete $ob->{material}; # assume materilname is more specific and nuke material 249 delete $ob->{material}; # assume materilname is more specific and nuke material
234 } 250 }
251 } elsif (my $name = $MATERIAL{$ob->{material}}) {
252 delete $ob->{material};
253 $ob->{materialname} = $name;
235 } else { 254 } else {
236 if (my $name = $MATERIAL{$ob->{material}}) { 255 warn "object $ob->{_name} has unknown material ($ob->{material}) set.\n";
237 delete $ob->{material};
238 $ob->{materialname} = $name;
239 }
240 } 256 }
241 } 257 }
242 258
243 # nuke outdated or never supported fields 259 # nuke outdated or never supported fields
244 delete @$ob{qw( 260 delete @$ob{qw(

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines