Dropped CreateItemRandom effect.

This commit is contained in:
MobiusDev
2019-02-27 12:09:40 +00:00
parent 5473448f56
commit a5e6ee19d1
131 changed files with 34281 additions and 17532 deletions

View File

@ -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();

View File

@ -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)