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.17 by root, Wed Feb 22 22:36:45 2006 UTC vs.
Revision 1.18 by root, Wed Feb 22 22:41:22 2006 UTC

291sub arch_attr($) { 291sub arch_attr($) {
292 my ($arch) = @_; 292 my ($arch) = @_;
293 293
294 require Crossfire::Data; 294 require Crossfire::Data;
295 295
296 my %attr; 296 my $attr;
297 297
298 if ($arch->{type} > 0) { 298 if ($arch->{type} > 0) {
299 %attr = %{ $Crossfire::Data::ATTR{$arch->{type}+0} || {} }; 299 $attr = $Crossfire::Data::ATTR{$arch->{type}+0};
300 } else { 300 } else {
301 die; 301 $attr = $Crossfire::Data::TYPE{Misc};
302
303 type:
304 for (@Crossfire::Data::ATTR0) {
305 my $req = $_->{required}
306 or die "internal error: ATTR0 without 'required'";
307
308 while (my ($k, $v) = each %$req) {
309 next type
310 unless $arch->{$k} == $v;
311 }
312
313 $attr = $_;
314 }
302 } 315 }
303 316
304 use PApp::Util; 317 use PApp::Util;
305 warn PApp::Util::dumpval \%attr; 318 warn PApp::Util::dumpval $attr;
306} 319}
307 320
308sub arch_edit_sections { 321sub arch_edit_sections {
309# if (edit_type == IGUIConstants.TILE_EDIT_NONE) 322# if (edit_type == IGUIConstants.TILE_EDIT_NONE)
310# edit_type = 0; 323# edit_type = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines