Exemplo n.º 1
0
 public void AddCondition(IItemDropRuleCondition condition)
 {
     if (conditions == null)
     {
         conditions = new List <IItemDropRuleCondition>();
     }
     conditions.Add(condition);
 }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 public DropLocalPerClientAndResetsNPCMoneyTo0(
     int itemId,
     int dropsOutOfY,
     int amountDroppedMinimum,
     int amountDroppedMaximum,
     IItemDropRuleCondition optionalCondition)
     : base(itemId, dropsOutOfY, amountDroppedMinimum, amountDroppedMaximum, 1)
 {
     this._condition = optionalCondition;
 }
Exemplo n.º 4
0
 public DropPerPlayerOnThePlayer(
     int itemId,
     int dropsOutOfY,
     int amountDroppedMinimum,
     int amountDroppedMaximum,
     IItemDropRuleCondition optionalCondition)
     : base(itemId, dropsOutOfY, amountDroppedMinimum, amountDroppedMaximum, 1)
 {
     this._condition = optionalCondition;
 }
Exemplo n.º 5
0
 public ItemDropWithConditionRule(
     int itemId,
     int dropsOutOfY,
     int amountDroppedMinimum,
     int amountDroppedMaximum,
     IItemDropRuleCondition condition,
     int dropsXOutOfY = 1)
     : base(itemId, dropsOutOfY, amountDroppedMinimum, amountDroppedMaximum, dropsXOutOfY)
 {
     this._condition = condition;
 }
Exemplo n.º 6
0
 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());
     }
 }
Exemplo n.º 7
0
 public static IItemDropRule BossBagByCondition(
     IItemDropRuleCondition condition,
     int itemId)
 {
     return((IItemDropRule) new DropBasedOnExpertMode(ItemDropRule.DropNothing(), (IItemDropRule) new DropLocalPerClientAndResetsNPCMoneyTo0(itemId, 1, 1, 1, condition)));
 }
Exemplo n.º 8
0
 public LeadingConditionRule(IItemDropRuleCondition condition)
 {
     this._condition   = condition;
     this.ChainedRules = new List <IItemDropRuleChainAttempt>();
 }