Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
RollingStrategyProperties.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using Loot.Api.Core;
4 
5 namespace Loot.Api.Strategy
6 {
11  public sealed class RollingStrategyProperties
12  {
13  private int _minRollableLines = 1;
14 
18  public int MinRollableLines
19  {
20  get => _minRollableLines;
21  set
22  {
23  _minRollableLines = value;
24  if (value > MaxRollableLines)
25  MaxRollableLines = value;
26  }
27  }
28 
29  private int _maxRollableLines = 2;
30 
34  public int MaxRollableLines
35  {
36  get => _maxRollableLines;
37  set => _maxRollableLines = value;
38  }
39 
43  public float RollNextChance { get; set; } = 0.5f;
44 
48  public float MagnitudePower { get; set; } = 1f;
49 
54  public ModifierPool ForceModifierPool { get; set; } = null;
55 
59  public float RollPredefinedPoolChance { get; set; } = 0f;
60 
64  public Func<ModifierPool> OverrideRollModifierPool { get; set; } = null;
65 
66  public ModifierRarity ForceModifierRarity { get; set; } = null;
67  public Func<ModifierRarity> OverrideRollModifierRarity { get; set; } = null;
68 
69  public Func<ModifierContext, bool> CanUpgradeRarity { get; set; } = ctx => true;
70  public Func<ModifierContext, bool> CanDowngradeRarity { get; set; } = ctx => true;
71 
75  public float ExtraLuck { get; set; } = 0f;
76 
80  public Func<List<Modifier>> PresetLines { get; set; }
81  }
82 }
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...
Definition: ModifierPool.cs:37