private float GetSelectionWeight(ThingSetMaker_RandomOption.Option option, ThingSetMakerParams parms) { float?weightIfPlayerHasNoItem = option.weightIfPlayerHasNoItem; if (weightIfPlayerHasNoItem != null && !PlayerItemAccessibilityUtility.PlayerOrQuestRewardHas(option.weightIfPlayerHasNoItemItem)) { return(option.weightIfPlayerHasNoItem.Value); } return(option.weight); }
private float GetSelectionWeight(ThingSetMaker_RandomOption.Option option) { float?weightIfPlayerHasNoSuchItem = option.weightIfPlayerHasNoSuchItem; float result; if (weightIfPlayerHasNoSuchItem != null && !PlayerItemAccessibilityUtility.PlayerOrItemStashHas(option.thingSetMaker.fixedParams.filter)) { result = option.weightIfPlayerHasNoSuchItem.Value; } else { result = option.weight; } return(result); }
internal float <> m__1(ThingSetMaker_RandomOption.Option x) { return(this.$this.GetSelectionWeight(x, this.parms)); }
internal bool <> m__0(ThingSetMaker_RandomOption.Option x) { return(x.thingSetMaker.CanGenerate(this.parms)); }