Files
Craftimizer/Simulator/Effect.cs
T
Asriel Camora e190368d62 Big changes 2
- Split into several projects
- All dalamud/lumina deps are in the plugin
- Crafty/craftingway sim implemented!
- optimizations to follow
2023-06-17 08:50:46 -07:00

15 lines
457 B
C#

namespace Craftimizer.Simulator;
public readonly record struct Effect
{
public EffectType Type { get; init; }
public int? Duration { get; init; }
public int? Strength { get; init; }
public bool HasDuration => Duration != null;
public bool HasStrength => Strength != null;
public Effect DecrementDuration() => this with { Duration = Duration - 1 };
public Effect IncrementStrength() => this with { Strength = Strength + 1 };
}