New augmentation system adjustments.

Contributed by Liamxroy.
This commit is contained in:
MobiusDevelopment
2020-12-10 14:15:30 +00:00
parent 5f81ee5dde
commit 60e193f2bf
4 changed files with 22 additions and 8 deletions

View File

@@ -128,10 +128,11 @@ public abstract class AbstractRefinePacket implements IClientIncomingPacket
{
return false;
}
if (item.isAugmented())
{
return false;
}
// Remove the augmentation if any (286).
// if (item.isAugmented())
// {
// return false;
// }
if (item.isHeroItem())
{
return false;

View File

@@ -135,6 +135,12 @@ public class RequestRefine extends AbstractRefinePacket
return;
}
// Remove the augmentation if any (286).
if (targetItem.isAugmented())
{
targetItem.removeAugmentation();
}
targetItem.setAugmentation(augment, true);
player.sendPacket(new ExVariationResult(augment.getOption1Id(), augment.getOption2Id(), true));
iu.addModifiedItem(targetItem);

View File

@@ -128,10 +128,11 @@ public abstract class AbstractRefinePacket implements IClientIncomingPacket
{
return false;
}
if (item.isAugmented())
{
return false;
}
// Remove the augmentation if any (286).
// if (item.isAugmented())
// {
// return false;
// }
if (item.isHeroItem())
{
return false;

View File

@@ -135,6 +135,12 @@ public class RequestRefine extends AbstractRefinePacket
return;
}
// Remove the augmentation if any (286).
if (targetItem.isAugmented())
{
targetItem.removeAugmentation();
}
targetItem.setAugmentation(augment, true);
player.sendPacket(new ExVariationResult(augment.getOption1Id(), augment.getOption2Id(), true));
iu.addModifiedItem(targetItem);