Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/model/item/kind/Item.java b/aCis_gameserver/java/net/sf/l2j/gameserver/model/item/kind/Item.java
- index ca4ba59..6bac84e 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/model/item/kind/Item.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/model/item/kind/Item.java
- @@ -105,6 +105,7 @@
- private final int _itemId;
- private final String _name;
- + private final String _icon;
- protected int _type1; // needed for item list (inventory)
- protected int _type2; // different lists for armor, weapon, etc
- private final int _weight;
- @@ -138,6 +139,7 @@
- {
- _itemId = set.getInteger("item_id");
- _name = set.getString("name");
- + _icon = set.getString("icon", "icon.noimage");
- _weight = set.getInteger("weight", 0);
- _materialType = set.getEnum("material", MaterialType.class, MaterialType.STEEL);
- _duration = set.getInteger("duration", -1);
- @@ -288,6 +290,14 @@
- }
- /**
- + * @return String the icon of the item
- + */
- + public final String getIcon()
- + {
- + return _icon;
- + }
- +
- + /**
- * @return int the part of the body used with the item.
- */
- public final int getBodyPart()
- diff --git a/aCis_gameserver/java/net/sf/l2j/gameserver/skills/L2Skill.java b/aCis_gameserver/java/net/sf/l2j/gameserver/skills/L2Skill.java
- index e9df87c..d993775 100644
- --- a/aCis_gameserver/java/net/sf/l2j/gameserver/skills/L2Skill.java
- +++ b/aCis_gameserver/java/net/sf/l2j/gameserver/skills/L2Skill.java
- @@ -59,6 +59,7 @@
- private final int _level;
- private final String _name;
- + private final String _icon;
- private final SkillOpType _operateType;
- private final boolean _isMagic;
- @@ -187,6 +188,7 @@
- _level = set.getInteger("level", 1);
- _name = set.getString("name");
- + _icon = set.getString("icon", String.format("icon.skill%04d", _id));
- _operateType = set.getEnum("operateType", SkillOpType.class);
- _isMagic = set.getBool("isMagic", false);
- @@ -770,6 +772,14 @@
- }
- /**
- + * @return Returns the icon.
- + */
- + public final String getIcon()
- + {
- + return _icon;
- + }
- +
- + /**
- * @return Returns the reuseDelay.
- */
- public final int getReuseDelay()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement