… | |
… | |
604 | if ($tag == 0) { |
604 | if ($tag == 0) { |
605 | update_floorbox; |
605 | update_floorbox; |
606 | update_container (0); |
606 | update_container (0); |
607 | } elsif ($tag == $self->{player}{tag}) { |
607 | } elsif ($tag == $self->{player}{tag}) { |
608 | $::INV->set_items ($self->{container}{$tag}) |
608 | $::INV->set_items ($self->{container}{$tag}) |
|
|
609 | } else { |
|
|
610 | update_container ($tag); |
609 | } |
611 | } |
610 | |
612 | |
611 | # use PApp::Util; warn PApp::Util::dumpval $self->{container}{0}; |
613 | # use PApp::Util; warn PApp::Util::dumpval $self->{container}{0}; |
612 | } |
614 | } |
613 | |
615 | |
… | |
… | |
621 | update_floorbox; |
623 | update_floorbox; |
622 | update_container ($_->{tag}); |
624 | update_container ($_->{tag}); |
623 | } elsif ($_->{container} == $self->{player}{tag}) { |
625 | } elsif ($_->{container} == $self->{player}{tag}) { |
624 | $::INV->set_items ($self->{container}{$self->{player}{tag}}) |
626 | $::INV->set_items ($self->{container}{$self->{player}{tag}}) |
625 | } else { |
627 | } else { |
626 | update_container ($_->{tag}); |
628 | update_container ($_->{container}); |
627 | } |
629 | } |
628 | } |
630 | } |
629 | } |
631 | } |
630 | |
632 | |
631 | sub item_update { |
633 | sub item_update { |