public void ReportDroprates(List <DropRateInfo> drops, DropRateInfoChainFeed ratesInfo) { ratesInfo.AddCondition((IItemDropRuleCondition)this._dummyCondition); float personalDropRate = 0.0004f; float dropRate = personalDropRate * ratesInfo.parentDroprateChance; drops.Add(new DropRateInfo(556, 1, 1, dropRate, ratesInfo.conditions)); drops.Add(new DropRateInfo(544, 1, 1, dropRate, ratesInfo.conditions)); drops.Add(new DropRateInfo(557, 1, 1, dropRate, ratesInfo.conditions)); Chains.ReportDroprates(this.ChainedRules, personalDropRate, drops, ratesInfo); }
public override void ReportDroprates(List <DropRateInfo> drops, DropRateInfoChainFeed ratesInfo) { DropRateInfoChainFeed ratesInfo2 = ratesInfo.With(1f); ratesInfo2.AddCondition(_condition); float num = (float)_dropsXoutOfY / (float)_dropsOutOfY; float dropRate = num * ratesInfo2.parentDroprateChance; drops.Add(new DropRateInfo(_itemId, _amtDroppedMinimum, _amtDroppedMaximum, dropRate, ratesInfo2.conditions)); Chains.ReportDroprates(base.ChainedRules, num, drops, ratesInfo2); }
public void ReportDroprates(List <DropRateInfo> drops, DropRateInfoChainFeed ratesInfo) { ratesInfo.AddCondition(_dummyCondition); float num = 0.0004f; float dropRate = num * ratesInfo.parentDroprateChance; drops.Add(new DropRateInfo(556, 1, 1, dropRate, ratesInfo.conditions)); drops.Add(new DropRateInfo(544, 1, 1, dropRate, ratesInfo.conditions)); drops.Add(new DropRateInfo(557, 1, 1, dropRate, ratesInfo.conditions)); Chains.ReportDroprates(ChainedRules, num, drops, ratesInfo); }
public override void ReportDroprates(List <DropRateInfo> drops, DropRateInfoChainFeed ratesInfo) { DropRateInfoChainFeed ratesInfo1 = ratesInfo.With(1f); ratesInfo1.AddCondition(this._condition); float personalDropRate = (float)this._dropsXoutOfY / (float)this._dropsOutOfY; float dropRate = personalDropRate * ratesInfo1.parentDroprateChance; drops.Add(new DropRateInfo(this._itemId, this._amtDroppedMinimum, this._amtDroppedMaximum, dropRate, ratesInfo1.conditions)); Chains.ReportDroprates(this.ChainedRules, personalDropRate, drops, ratesInfo1); }
public void ReportDroprates(List <DropRateInfo> drops, DropRateInfoChainFeed ratesInfo) { DropRateInfoChainFeed ratesInfo1 = ratesInfo.With(1f); ratesInfo1.AddCondition((IItemDropRuleCondition) new Conditions.IsExpert()); this._ruleForExpertMode.ReportDroprates(drops, ratesInfo1); DropRateInfoChainFeed ratesInfo2 = ratesInfo.With(1f); ratesInfo2.AddCondition((IItemDropRuleCondition) new Conditions.NotExpert()); this._ruleForNormalMode.ReportDroprates(drops, ratesInfo2); Chains.ReportDroprates(this.ChainedRules, 1f, drops, ratesInfo); }
public void ReportDroprates(List <DropRateInfo> drops, DropRateInfoChainFeed ratesInfo) { DropRateInfoChainFeed ratesInfo2 = ratesInfo.With(1f); ratesInfo2.AddCondition(new Conditions.IsExpert()); _ruleForExpertMode.ReportDroprates(drops, ratesInfo2); DropRateInfoChainFeed ratesInfo3 = ratesInfo.With(1f); ratesInfo3.AddCondition(new Conditions.NotExpert()); _ruleForNormalMode.ReportDroprates(drops, ratesInfo3); Chains.ReportDroprates(ChainedRules, 1f, drops, ratesInfo); }
public void ReportDroprates(List <DropRateInfo> drops, DropRateInfoChainFeed ratesInfo) { DropRateInfoChainFeed ratesInfo1 = ratesInfo.With(1f); ratesInfo1.AddCondition((IItemDropRuleCondition) new Conditions.IsMasterMode()); this._ruleForMasterMode.ReportDroprates(drops, ratesInfo1); DropRateInfoChainFeed ratesInfo2 = ratesInfo.With(1f); ratesInfo2.AddCondition((IItemDropRuleCondition) new Conditions.NotMasterMode()); this._ruleForDefault.ReportDroprates(drops, ratesInfo2); Chains.ReportDroprates(this.ChainedRules, 1f, drops, ratesInfo); }
public void ReportDroprates(List <DropRateInfo> drops, DropRateInfoChainFeed ratesInfo) { DropRateInfoChainFeed ratesInfo2 = ratesInfo.With(1f); ratesInfo2.AddCondition(new Conditions.IsMasterMode()); _ruleForMasterMode.ReportDroprates(drops, ratesInfo2); DropRateInfoChainFeed ratesInfo3 = ratesInfo.With(1f); ratesInfo3.AddCondition(new Conditions.NotMasterMode()); _ruleForDefault.ReportDroprates(drops, ratesInfo3); Chains.ReportDroprates(ChainedRules, 1f, drops, ratesInfo); }
public void ReportDroprates(List <DropRateInfo> drops, DropRateInfoChainFeed ratesInfo) { ratesInfo.AddCondition(this._condition); Chains.ReportDroprates(this.ChainedRules, 1f, drops, ratesInfo); }