public void AddCondition(IItemDropRuleCondition condition) { if (conditions == null) { conditions = new List <IItemDropRuleCondition>(); } conditions.Add(condition); }
public static IItemDropRule ByCondition( IItemDropRuleCondition condition, int itemId, int dropsOutOfX = 1, int minimumDropped = 1, int maximumDropped = 1, int dropsXOutOfY = 1) { return((IItemDropRule) new ItemDropWithConditionRule(itemId, dropsOutOfX, minimumDropped, maximumDropped, condition, dropsXOutOfY)); }
public DropLocalPerClientAndResetsNPCMoneyTo0( int itemId, int dropsOutOfY, int amountDroppedMinimum, int amountDroppedMaximum, IItemDropRuleCondition optionalCondition) : base(itemId, dropsOutOfY, amountDroppedMinimum, amountDroppedMaximum, 1) { this._condition = optionalCondition; }
public DropPerPlayerOnThePlayer( int itemId, int dropsOutOfY, int amountDroppedMinimum, int amountDroppedMaximum, IItemDropRuleCondition optionalCondition) : base(itemId, dropsOutOfY, amountDroppedMinimum, amountDroppedMaximum, 1) { this._condition = optionalCondition; }
public ItemDropWithConditionRule( int itemId, int dropsOutOfY, int amountDroppedMinimum, int amountDroppedMaximum, IItemDropRuleCondition condition, int dropsXOutOfY = 1) : base(itemId, dropsOutOfY, amountDroppedMinimum, amountDroppedMaximum, dropsXOutOfY) { this._condition = condition; }
public static IItemDropRule DropOnBattlegroundWithRule(IItemDropRuleCondition condition, SoraPlayer wielder, int itemID, int chanceDenominator = 1, int minimumDropped = 1, int maximumDropped = 1) { if (wielder.fightingInBattleground) { return(ItemDropRule.ByCondition(condition, itemID, chanceDenominator, minimumDropped, maximumDropped)); } else { return(ItemDropRule.DropNothing()); } }
public static IItemDropRule BossBagByCondition( IItemDropRuleCondition condition, int itemId) { return((IItemDropRule) new DropBasedOnExpertMode(ItemDropRule.DropNothing(), (IItemDropRule) new DropLocalPerClientAndResetsNPCMoneyTo0(itemId, 1, 1, 1, condition))); }
public LeadingConditionRule(IItemDropRuleCondition condition) { this._condition = condition; this.ChainedRules = new List <IItemDropRuleChainAttempt>(); }