… | |
… | |
39 | maplore => "endmaplore", |
39 | maplore => "endmaplore", |
40 | ); |
40 | ); |
41 | |
41 | |
42 | # same as in server save routine, to (hopefully) be compatible |
42 | # same as in server save routine, to (hopefully) be compatible |
43 | # to the other editors. |
43 | # to the other editors. |
|
|
44 | our @FIELD_ORDER_MAP = (qw( |
|
|
45 | name swap_time reset_timeout fixed_resettime difficulty region |
|
|
46 | shopitems shopgreed shopmin shopmax shoprace |
|
|
47 | darkness width height enter_x enter_y msg maplore |
|
|
48 | unique template |
|
|
49 | outdoor temp pressure humid windspeed winddir sky nosmooth |
|
|
50 | tile_path_1 tile_path_2 tile_path_3 tile_path_4 |
|
|
51 | )); |
|
|
52 | |
44 | our @FIELD_ORDER = (qw( |
53 | our @FIELD_ORDER = (qw( |
|
|
54 | elevation |
|
|
55 | |
45 | name name_pl custom_name title race |
56 | name name_pl custom_name title race |
46 | slaying skill msg lore other_arch face |
57 | slaying skill msg lore other_arch face |
47 | #events |
58 | #todo-events |
48 | animation is_animated |
59 | animation is_animated |
49 | Str Dex Con Wis Pow Cha Int |
60 | Str Dex Con Wis Pow Cha Int |
50 | hp maxhp sp maxsp grace maxgrace |
61 | hp maxhp sp maxsp grace maxgrace |
51 | exp perm_exp expmul |
62 | exp perm_exp expmul |
52 | food dam luck wc ac x y speed speed_left move_state attack_movement |
63 | food dam luck wc ac x y speed speed_left move_state attack_movement |
… | |
… | |
219 | if (exists $arch->{$k} and $arch->{$k} eq $v) { |
230 | if (exists $arch->{$k} and $arch->{$k} eq $v) { |
220 | next if $k eq "_name"; |
231 | next if $k eq "_name"; |
221 | delete $ob->{$k}; |
232 | delete $ob->{$k}; |
222 | } |
233 | } |
223 | } |
234 | } |
|
|
235 | } |
|
|
236 | |
|
|
237 | # a speciality for the editor |
|
|
238 | if (exists $ob->{attack_movement}) { |
|
|
239 | my $am = delete $ob->{attack_movement}; |
|
|
240 | $ob->{attack_movement_bits_0_3} = $am & 15; |
|
|
241 | $ob->{attack_movement_bits_4_7} = $am & 240; |
224 | } |
242 | } |
225 | |
243 | |
226 | $ob |
244 | $ob |
227 | } |
245 | } |
228 | |
246 | |
… | |
… | |
300 | } |
318 | } |
301 | $prev = $arc; |
319 | $prev = $arc; |
302 | $more = undef; |
320 | $more = undef; |
303 | } elsif (/^arch (\S+)$/i) { |
321 | } elsif (/^arch (\S+)$/i) { |
304 | my $name = $1; |
322 | my $name = $1; |
305 | my $arc = normalize_object $parse_block->(_name => $name); |
323 | my $arc = normalize_arch $parse_block->(_name => $name); |
306 | |
324 | |
307 | if ($more) { |
325 | if ($more) { |
308 | $more->{more} = $arc; |
326 | $more->{more} = $arc; |
309 | } else { |
327 | } else { |
310 | push @{ $arc{arch} }, $arc; |
328 | push @{ $arc{arch} }, $arc; |