1 | =head1 NAME |
1 | =head1 NAME |
2 | |
2 | |
3 | Deliantra - Deliantra suppport module to read/write archetypes, maps etc. |
3 | Deliantra - Deliantra suppport module to read/write archetypes, maps etc. |
|
|
4 | |
|
|
5 | =over 4 |
4 | |
6 | |
5 | =cut |
7 | =cut |
6 | |
8 | |
7 | package Deliantra; |
9 | package Deliantra; |
8 | |
10 | |
… | |
… | |
337 | |
339 | |
338 | # object as in "Object xxx", i.e. archetypes |
340 | # object as in "Object xxx", i.e. archetypes |
339 | sub normalize_object($) { |
341 | sub normalize_object($) { |
340 | my ($ob) = @_; |
342 | my ($ob) = @_; |
341 | |
343 | |
|
|
344 | delete $ob->{editable}; # deprecated |
|
|
345 | |
342 | # convert material bitset to materialname, if possible |
346 | # convert material bitset to materialname, if possible |
343 | if (exists $ob->{material}) { |
347 | if (exists $ob->{material}) { |
344 | if (!$ob->{material}) { |
348 | if (!$ob->{material}) { |
345 | delete $ob->{material}; |
349 | delete $ob->{material}; |
346 | } elsif (exists $ob->{materialname}) { |
350 | } elsif (exists $ob->{materialname}) { |
… | |
… | |
987 | |
991 | |
988 | \%cache |
992 | \%cache |
989 | }; |
993 | }; |
990 | } |
994 | } |
991 | |
995 | |
|
|
996 | =back |
|
|
997 | |
992 | =head1 AUTHOR |
998 | =head1 AUTHOR |
993 | |
999 | |
994 | Marc Lehmann <schmorp@schmorp.de> |
1000 | Marc Lehmann <schmorp@schmorp.de> |
995 | http://home.schmorp.de/ |
1001 | http://home.schmorp.de/ |
996 | |
1002 | |