示例#1
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());
     }
 }
示例#2
0
 public static IItemDropRule DropOnBattleground(SoraPlayer wielder, int itemID, int chanceDenominator = 1, int minimumDropped = 1, int maximumDropped = 1)
 {
     if (wielder.fightingInBattleground)
     {
         return(ItemDropRule.Common(itemID, chanceDenominator, minimumDropped, maximumDropped));
     }
     else
     {
         return(ItemDropRule.DropNothing());
     }
 }
示例#3
0
 public static IItemDropRule MasterModeDropOnAllPlayers(
     int itemId,
     int dropsAtXOutOfY_TheY = 1)
 {
     return((IItemDropRule) new DropBasedOnMasterMode(ItemDropRule.DropNothing(), (IItemDropRule) new DropPerPlayerOnThePlayer(itemId, dropsAtXOutOfY_TheY, 1, 1, (IItemDropRuleCondition) new Conditions.IsMasterMode())));
 }
示例#4
0
 public static IItemDropRule BossBagByCondition(
     IItemDropRuleCondition condition,
     int itemId)
 {
     return((IItemDropRule) new DropBasedOnExpertMode(ItemDropRule.DropNothing(), (IItemDropRule) new DropLocalPerClientAndResetsNPCMoneyTo0(itemId, 1, 1, 1, condition)));
 }
        public override void ModifyNPCLoot(NPCLoot npcLoot)
        {
            base.ModifyNPCLoot(npcLoot);

            npcLoot.Add(ItemDropRule.DropNothing());
        }