Jump to content

Recommended Posts

Posted
### Eclipse Workspace Patch 1.0
#P aCis_Gameserver
Index: java/net/sf/l2j/gameserver/model/multisell/Ingredient.java
===================================================================
--- java/net/sf/l2j/gameserver/model/multisell/Ingredient.java    (revision 15)
+++ java/net/sf/l2j/gameserver/model/multisell/Ingredient.java    (working copy)
@@ -22,14 +22,14 @@
     
     public Ingredient(StatsSet set)
     {
+       this(set.getInteger("id"), set.getInteger("count"), set.getInteger("enchantmentLevel", 0), set.getBool("isTaxIngredient", false), set.getBool("maintainIngredient", false));
-        this(set.getInteger("id"), set.getInteger("count"), set.getBool("isTaxIngredient", false), set.getBool("maintainIngredient", false));
     }
     
+    public Ingredient(int itemId, int itemCount, int enchantmentLevel, boolean isTaxIngredient, boolean maintainIngredient)
-    public Ingredient(int itemId, int itemCount, boolean isTaxIngredient, boolean maintainIngredient)
     {
         _itemId = itemId;
         _itemCount = itemCount;
+        _enchantmentLevel = enchantmentLevel;
-        
         _isTaxIngredient = isTaxIngredient;
         _maintainIngredient = maintainIngredient;
         
@@ -42,7 +42,7 @@
      */
     public Ingredient getCopy()
     {
+        return new Ingredient(_itemId, _itemCount, _enchantmentLevel, _isTaxIngredient, _maintainIngredient);
-        return new Ingredient(_itemId, _itemCount, _isTaxIngredient, _maintainIngredient);
     }
     
     public final int getItemId()
Index: java/net/sf/l2j/gameserver/model/multisell/PreparedEntry.java
===================================================================
--- java/net/sf/l2j/gameserver/model/multisell/PreparedEntry.java    (revision 15)
+++ java/net/sf/l2j/gameserver/model/multisell/PreparedEntry.java    (working copy)
@@ -48,7 +48,7 @@
         // now add the adena, if any.
         adenaAmount += _taxAmount; // do not forget tax
         if (adenaAmount > 0)
+            _ingredients.add(new Ingredient(57, adenaAmount, 0, false, false));
-            _ingredients.add(new Ingredient(57, adenaAmount, false, false));
         
         // now copy products
         _products = new ArrayList<>(template.getProducts().size());

 

  • Thanks 1
  • 9 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock