Skip to content

Commit

Permalink
reanimation isn't an effect from eating the corpse, make it a separat…
Browse files Browse the repository at this point in the history
…e method
  • Loading branch information
doy committed Mar 19, 2009
1 parent ecac853 commit d04c93f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/NetHack/Monster/Spoiler.pm
Expand Up @@ -1038,9 +1038,6 @@ sub corpse {
if $corpse_type->is_telepathic;
}

# other
$corpse_data{reanimates} = 1 if $glyph eq 'T';

return \%corpse_data;
}

Expand All @@ -1067,6 +1064,11 @@ sub corpse_type {
return $self;
}

sub corpse_reanimates {
my $self = shift;
return $self->glyph = 'T';
}

=head2 parse_description $name
Attempt to decypher a monster description returned by NetHack. The return
Expand Down

0 comments on commit d04c93f

Please sign in to comment.