Added Greater Ruby and Sapphire.
This commit is contained in:
@@ -26,11 +26,13 @@ public enum BroochJewel
|
||||
RUBY_LV3(38857, 17815, 0.075),
|
||||
RUBY_LV4(38858, 17816, 0.125),
|
||||
RUBY_LV5(38859, 17817, 0.2),
|
||||
GREATER_RUBY(47688, 17817, 0.2),
|
||||
SHAPPHIRE_LV1(38927, 17818, 0.01),
|
||||
SHAPPHIRE_LV2(38928, 17818, 0.035),
|
||||
SHAPPHIRE_LV3(38929, 17819, 0.075),
|
||||
SHAPPHIRE_LV4(38930, 17820, 0.125),
|
||||
SHAPPHIRE_LV5(38931, 17821, 0.2);
|
||||
SHAPPHIRE_LV5(38931, 17821, 0.2),
|
||||
GREATER_SHAPPHIRE(47689, 17821, 0.2);
|
||||
|
||||
private int _itemId;
|
||||
private int _effectId;
|
||||
|
@@ -8749,7 +8749,11 @@ public final class L2PcInstance extends L2Playable
|
||||
public void updateActiveBroochJewel()
|
||||
{
|
||||
// Update active Ruby jewel.
|
||||
if ((getInventory().getItemByItemId(BroochJewel.RUBY_LV5.getItemId()) != null) && (getInventory().getItemByItemId(BroochJewel.RUBY_LV5.getItemId()).isEquipped()))
|
||||
if ((getInventory().getItemByItemId(BroochJewel.GREATER_RUBY.getItemId()) != null) && (getInventory().getItemByItemId(BroochJewel.GREATER_RUBY.getItemId()).isEquipped()))
|
||||
{
|
||||
setActiveRubyJewel(BroochJewel.GREATER_RUBY);
|
||||
}
|
||||
else if ((getInventory().getItemByItemId(BroochJewel.RUBY_LV5.getItemId()) != null) && (getInventory().getItemByItemId(BroochJewel.RUBY_LV5.getItemId()).isEquipped()))
|
||||
{
|
||||
setActiveRubyJewel(BroochJewel.RUBY_LV5);
|
||||
}
|
||||
@@ -8774,7 +8778,11 @@ public final class L2PcInstance extends L2Playable
|
||||
setActiveRubyJewel(null);
|
||||
}
|
||||
// Update active Sapphire jewel.
|
||||
if ((getInventory().getItemByItemId(BroochJewel.SHAPPHIRE_LV5.getItemId()) != null) && (getInventory().getItemByItemId(BroochJewel.SHAPPHIRE_LV5.getItemId()).isEquipped()))
|
||||
if ((getInventory().getItemByItemId(BroochJewel.GREATER_SHAPPHIRE.getItemId()) != null) && (getInventory().getItemByItemId(BroochJewel.GREATER_SHAPPHIRE.getItemId()).isEquipped()))
|
||||
{
|
||||
setActiveShappireJewel(BroochJewel.GREATER_SHAPPHIRE);
|
||||
}
|
||||
else if ((getInventory().getItemByItemId(BroochJewel.SHAPPHIRE_LV5.getItemId()) != null) && (getInventory().getItemByItemId(BroochJewel.SHAPPHIRE_LV5.getItemId()).isEquipped()))
|
||||
{
|
||||
setActiveShappireJewel(BroochJewel.SHAPPHIRE_LV5);
|
||||
}
|
||||
|
Reference in New Issue
Block a user