openkore
openkore copied to clipboard
ActorList and InventoryList conflict with Actor::Item
There are two problems which need to be dealt with:
1 - assert(defined $item->{name}) in InventoryList::add is totally
unnecessary if $item->{name} is by default Uninitialized Item.
2 - assert(defined $actor->{ID}) in ActorList::add is totally
unnecessary if $item->{ID} is by default 0.
I suggest we remove the definitions of $self->{name} and $self->{ID} in Actor::Item.