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