All my items are shown under Non-usable. Here's the code from the src/Commands.pm
Code: Select all
foreach my $item (@{$char->inventory->getItems()}) {
if ($item->{usable}) {
push @useable, $item->{invIndex};
} elsif ($item->{equippable}) {
my %eqp;
$eqp{index} = $item->{index};
$eqp{binID} = $item->{invIndex};
$eqp{name} = $item->{name};
$eqp{equipped} = ($item->{type} == 10 || $item->{type} == 16 || $item->{type} == 17 || $item->{type} == 19) ? $item->{amount} . " left" : $equipTypes_lut{$item->{equipped}};
$eqp{type} = $itemTypes_lut{$item->{type}};
$eqp{equipped} .= " ($item->{equipped})";
# Translation Comment: Mark to tell item not identified
$eqp{identified} = " -- " . T("Not Identified") if !$item->{identified};
if ($item->{equipped}) {
push @equipment, \%eqp;
} else {
push @uequipment, \%eqp;
}
} else {
push @non_useable, $item->{invIndex};
}
}
Hypothesis: My Kore misses a function similar to identifying items->{type} values upon obtaining from inventory->getItems(), then sort then display.
Solution: /?