2 using System.Collections.Generic;
5 namespace Loot.Api.Strategy
13 private int _minRollableLines = 1;
18 public int MinRollableLines
20 get => _minRollableLines;
23 _minRollableLines = value;
24 if (value > MaxRollableLines)
25 MaxRollableLines = value;
29 private int _maxRollableLines = 2;
34 public int MaxRollableLines
36 get => _maxRollableLines;
37 set => _maxRollableLines = value;
43 public float RollNextChance {
get;
set; } = 0.5f;
48 public float MagnitudePower {
get;
set; } = 1f;
59 public float RollPredefinedPoolChance {
get;
set; } = 0f;
64 public Func<ModifierPool> OverrideRollModifierPool {
get;
set; } = null;
67 public Func<ModifierRarity> OverrideRollModifierRarity {
get;
set; } = null;
69 public Func<ModifierContext, bool> CanUpgradeRarity {
get;
set; } = ctx =>
true;
70 public Func<ModifierContext, bool> CanDowngradeRarity {
get;
set; } = ctx =>
true;
75 public float ExtraLuck {
get;
set; } = 0f;
80 public Func<List<Modifier>> PresetLines {
get;
set; }
Defines properties that will be used when an item is being rolled in a IRollingStrategy<T> These can ...
Defines the rarity of a modifier
Defines a modifier pool. A modifier pool holds a certain amount of effects in an array It allows to r...