More changes related to augmentation.

This commit is contained in:
MobiusDev
2017-08-11 02:18:57 +00:00
parent a7a354ceea
commit 72d372e2c8
327 changed files with 1668 additions and 337323 deletions

View File

@@ -390,7 +390,14 @@ public class AugmentationData
aAugmentId = Integer.parseInt(aNodeAttributes.getNamedItem("id").getNodeValue());
aAugmentChance = Float.parseFloat(aNodeAttributes.getNamedItem("chance").getNodeValue());
_augmentationChances.add(new AugmentationChance(aWeaponType, aStoneId, aVariationId, aCategoryChance, aAugmentId, aAugmentChance));
if (OptionData.getInstance().getOptions(aAugmentId) != null)
{
_augmentationChances.add(new AugmentationChance(aWeaponType, aStoneId, aVariationId, aCategoryChance, aAugmentId, aAugmentChance));
}
else
{
LOGGER.warning(getClass().getSimpleName() + ": Missing augment " + aAugmentId + " for stone " + aStoneId + " variation " + aVariationId + ".");
}
}
}
}

View File

@@ -75,48 +75,24 @@ public final class RequestConfirmCancelItem implements IClientIncomingPacket
int price = 0;
switch (item.getItem().getCrystalType())
{
case D:
{
price = 80000; // classic
break;
}
case C:
{
if (item.getCrystalCount() < 1720)
{
price = 95000;
}
else if (item.getCrystalCount() < 2452)
{
price = 150000;
}
else
{
price = 210000;
}
price = 240000; // classic
break;
}
case B:
{
if (item.getCrystalCount() < 1746)
{
price = 240000;
}
else
{
price = 270000;
}
price = 720000; // classic
break;
}
case A:
{
if (item.getCrystalCount() < 2160)
{
price = 330000;
}
else if (item.getCrystalCount() < 2824)
{
price = 390000;
}
else
{
price = 420000;
}
price = 1500000; // classic - guessed
break;
}
case S:

View File

@@ -83,7 +83,8 @@ public abstract class AbstractItemPacket extends AbstractMaskPacket<ItemListType
if (containsMask(mask, ItemListType.AUGMENT_BONUS))
{
packet.writeD(item.get1stAugmentationId());
packet.writeD(item.get2ndAugmentationId());
packet.writeD(-1); // Classic
// packet.writeD(item.get2ndAugmentationId());
}
if (containsMask(mask, ItemListType.ELEMENTAL_ATTRIBUTE))
{