RequestCollectionRegister should use getCompleteCount method.

This commit is contained in:
MobiusDevelopment 2022-08-30 00:38:08 +00:00
parent 253e1739c8
commit f6d7d83fce
10 changed files with 10 additions and 10 deletions

View File

@ -92,7 +92,7 @@ public class RequestCollectionRegister implements IClientIncomingPacket
player.getCollections().add(new PlayerCollectionData(_collectionId, item.getId(), _index));
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getItems().size())
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getCompleteCount())
{
player.sendPacket(new ExCollectionComplete(_collectionId));

View File

@ -1,4 +1,4 @@
ο»Ώ<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
<spawn name="AdenSquareMerchants">
<group>

View File

@ -1,4 +1,4 @@
ο»Ώ<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
<spawn name="GiranSquareMerchants">
<group>

View File

@ -92,7 +92,7 @@ public class RequestCollectionRegister implements IClientIncomingPacket
player.getCollections().add(new PlayerCollectionData(_collectionId, item.getId(), _index));
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getItems().size())
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getCompleteCount())
{
player.sendPacket(new ExCollectionComplete(_collectionId));

View File

@ -1,4 +1,4 @@
ο»Ώ<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
<spawn name="AdenSquareMerchants">
<group>

View File

@ -1,4 +1,4 @@
ο»Ώ<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
<spawn name="GiranSquareMerchants">
<group>

View File

@ -92,7 +92,7 @@ public class RequestCollectionRegister implements IClientIncomingPacket
player.getCollections().add(new PlayerCollectionData(_collectionId, item.getId(), _index));
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getItems().size())
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getCompleteCount())
{
player.sendPacket(new ExCollectionComplete(_collectionId));

View File

@ -1,4 +1,4 @@
ο»Ώ<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
<spawn name="AdenSquareMerchants">
<group>

View File

@ -1,4 +1,4 @@
ο»Ώ<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/spawns.xsd">
<spawn name="GiranSquareMerchants">
<group>

View File

@ -92,7 +92,7 @@ public class RequestCollectionRegister implements IClientIncomingPacket
player.getCollections().add(new PlayerCollectionData(_collectionId, item.getId(), _index));
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getItems().size())
if (player.getCollections().stream().filter(it -> it.getCollectionId() == _collectionId).count() == collection.getCompleteCount())
{
player.sendPacket(new ExCollectionComplete(_collectionId));