Dropped CreateItemRandom effect.
This commit is contained in:
@ -33,7 +33,6 @@ import com.l2jmobius.gameserver.enums.ItemSkillType;
|
||||
import com.l2jmobius.gameserver.model.L2ExtractableProduct;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import com.l2jmobius.gameserver.model.holders.ItemChanceHolder;
|
||||
import com.l2jmobius.gameserver.model.holders.ItemSkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.L2Item;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
@ -182,20 +181,6 @@ public final class DocumentItem extends DocumentBase implements IGameXmlReader
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ("createItems".equalsIgnoreCase(n.getNodeName()))
|
||||
{
|
||||
makeItem();
|
||||
for (Node b = n.getFirstChild(); b != null; b = b.getNextSibling())
|
||||
{
|
||||
if ("item".equals(b.getNodeName()))
|
||||
{
|
||||
final int id = parseInteger(b.getAttributes(), "id");
|
||||
final int count = parseInteger(b.getAttributes(), "count");
|
||||
final double chance = parseDouble(b.getAttributes(), "chance");
|
||||
_currentItem.item.addCreateItem(new ItemChanceHolder(id, chance, count));
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ("cond".equalsIgnoreCase(n.getNodeName()))
|
||||
{
|
||||
makeItem();
|
||||
|
@ -42,7 +42,6 @@ import com.l2jmobius.gameserver.model.ceremonyofchaos.CeremonyOfChaosEvent;
|
||||
import com.l2jmobius.gameserver.model.commission.CommissionItemType;
|
||||
import com.l2jmobius.gameserver.model.conditions.Condition;
|
||||
import com.l2jmobius.gameserver.model.events.ListenersContainer;
|
||||
import com.l2jmobius.gameserver.model.holders.ItemChanceHolder;
|
||||
import com.l2jmobius.gameserver.model.holders.ItemSkillHolder;
|
||||
import com.l2jmobius.gameserver.model.interfaces.IIdentifiable;
|
||||
import com.l2jmobius.gameserver.model.items.enchant.attribute.AttributeHolder;
|
||||
@ -163,7 +162,6 @@ public abstract class L2Item extends ListenersContainer implements IIdentifiable
|
||||
protected List<FuncTemplate> _funcTemplates;
|
||||
protected List<Condition> _preConditions;
|
||||
private List<ItemSkillHolder> _skills;
|
||||
private List<ItemChanceHolder> _createItems;
|
||||
|
||||
private int _useSkillDisTime;
|
||||
private int _reuseDelay;
|
||||
@ -759,20 +757,6 @@ public abstract class L2Item extends ListenersContainer implements IIdentifiable
|
||||
_skills.add(holder);
|
||||
}
|
||||
|
||||
public List<ItemChanceHolder> getCreateItems()
|
||||
{
|
||||
return _createItems != null ? _createItems : Collections.emptyList();
|
||||
}
|
||||
|
||||
public void addCreateItem(ItemChanceHolder item)
|
||||
{
|
||||
if (_createItems == null)
|
||||
{
|
||||
_createItems = new ArrayList<>();
|
||||
}
|
||||
_createItems.add(item);
|
||||
}
|
||||
|
||||
public boolean checkCondition(L2Character activeChar, L2Object object, boolean sendMessage)
|
||||
{
|
||||
if (activeChar.canOverrideCond(PcCondOverride.ITEM_CONDITIONS) && !Config.GM_ITEM_RESTRICTION)
|
||||
|
Reference in New Issue
Block a user