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

Comparing deliantra/Deliantra/res2pm (file contents):
Revision 1.8 by root, Sun Mar 12 23:21:11 2006 UTC vs.
Revision 1.9 by root, Mon Mar 27 17:38:18 2006 UTC

115 115
116 my %main; 116 my %main;
117 117
118 for my $e (grep ref, @{$e->contents}) { 118 for my $e (grep ref, @{$e->contents}) {
119 if ($e->name eq "required") { 119 if ($e->name eq "required") {
120 # not used
120 for my $i (grep ref, @{$e->contents}) { 121 #for my $i (grep ref, @{$e->contents}) {
121 $type->{required}{$i->attr ("arch")} = $i->attr ("value"); 122 # $type->{required}{$i->attr ("arch")} = $i->attr ("value");
122 } 123 #}
123 } elsif ($e->name eq "attribute") { 124 } elsif ($e->name eq "attribute") {
124 parse_attr $e, $type->{attr} ||= []; 125 parse_attr $e, $type->{attr} ||= [];
125 } elsif ($e->name eq "ignore") { 126 } elsif ($e->name eq "ignore") {
126 for my $i (grep ref, @{$e->contents}) { 127 for my $i (grep ref, @{$e->contents}) {
127 if ($i->name eq "ignore_list") { 128 if ($i->name eq "ignore_list") {
199 200
200for (grep ref, @{$spell->root->contents}) { 201for (grep ref, @{$spell->root->contents}) {
201 $spell{$_->attr ("id")} = $_->attr ("name"); 202 $spell{$_->attr ("id")} = $_->attr ("name");
202} 203}
203 204
204dump_hash ["BITMASK", "LIST", "IGNORE_LIST", "DEFAULT_ATTR", "TYPE", "ATTR0", "ATTR", "TYPENAME", "SPELL"], 205dump_hash ["BITMASK", "LIST", "IGNORE_LIST", "DEFAULT_ATTR", "TYPE", "ATTR", "TYPENAME", "SPELL"],
205 [\%bitmask, \%list, \%ignore_list, \%default_attr, \%type, \@attr0, \%attr, \%typename, \%spell]; 206 [\%bitmask, \%list, \%ignore_list, \%default_attr, \%type, \%attr, \%typename, \%spell];
206 207
207print <<EOF; 208print <<EOF;
208 209
209=head1 AUTHOR 210=head1 AUTHOR
210 211

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines