mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
Update check_handin.pl
This commit is contained in:
parent
41799c4bf3
commit
f0fa3bdf12
1 changed files with 2 additions and 2 deletions
|
|
@ -1,9 +1,9 @@
|
|||
# plugin::check_handin($item1 => #required_amount,...);
|
||||
# Automatically returns unused items on success
|
||||
sub check_handin {
|
||||
my $itemcount = shift;
|
||||
my $itemcount = shift;
|
||||
my %required_items = @_;
|
||||
foreach $item_id (keys %required_items) {
|
||||
foreach $item_id (keys %required_items) {
|
||||
if (!defined $itemcount->{$item_id} || $itemcount->{$item_id} != $required_items{$item_id}) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue