API reference Obsidian.API.Loot
EnchantmentCost record struct
An enchanting power that grows linearly with the enchantment level.
public readonly record struct EnchantmentCost : IEquatable<EnchantmentCost>
In Obsidian.API.
Constructors
EnchantmentCost(int, int)
public EnchantmentCost(int Base, int PerLevelAboveFirst);An enchanting power that grows linearly with the enchantment level.
Properties
public int Base { get; init; }public int PerLevelAboveFirst { get; init; }Methods
public int Calculate(int level);