… | |
… | |
796 | sub to_object { |
796 | sub to_object { |
797 | my ($self) = @_; |
797 | my ($self) = @_; |
798 | |
798 | |
799 | my $obj = cf::object::new $self->{hash}->{arch}; |
799 | my $obj = cf::object::new $self->{hash}->{arch}; |
800 | |
800 | |
801 | $obj->item_power ($self->power_to_level); # there have to be strings attached! |
801 | $obj->item_power (floor ($self->power_to_level / 3)); # there have to be strings attached! |
802 | |
802 | |
803 | $obj->face ($self->{hash}{face}); |
803 | $obj->face ($self->{hash}{face}); |
804 | |
804 | |
805 | my $stats = $obj->stats; |
805 | my $stats = $obj->stats; |
806 | |
806 | |