forked from DArkHekRoMaNT/StoneQuarry
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.cs
More file actions
50 lines (40 loc) · 1.78 KB
/
Config.cs
File metadata and controls
50 lines (40 loc) · 1.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using CommonLib.Config;
namespace StoneQuarry
{
[Config("stonequarry.json")]
public class Config
{
[Description("Max total amount of sand, gravel and stones that can be stored in one rubble storage")]
[Range(1, int.MaxValue)]
public int RubbleStorageMaxSize { get; set; } = 512;
[Description("Time of interaction with slabs to obtain stone in seconds")]
[Range(0f, 10f)]
public float SlabInteractionTime { get; set; } = 0.2f;
[Description("Modifier of the difficulty (hits number) of hammering plugs")]
[Range(0f, 100f)]
public float PlugWorkModifier { get; set; } = 1;
[Description("Modifier of plugs size (range)")]
[Range(0f, 100f)]
public float PlugSizeModifier { get; set; } = 1;
[Description($"Chance for break plug after use. " +
$"Will be ignored if {nameof(EnablePlugDurability)} is true")]
[Range(0f, 1f)]
public float BreakPlugChance { get; set; } = 0;
[Description($"Enables durability for plugs. " +
$"Plugs with different durability do not stack. " +
$"Ignores {nameof(BreakPlugChance)} if true")]
public bool EnablePlugDurability { get; set; } = false;
[Description("0 - unlimited")]
[Range(0, int.MaxValue)]
public int CopperPlugDurability { get; set; } = 5;
[Description("0 - unlimited. Any bronze")]
[Range(0, int.MaxValue)]
public int BronzePlugDurability { get; set; } = 10;
[Description("0 - unlimited. Iron, meteoric iron")]
[Range(0, int.MaxValue)]
public int IronPlugDurability { get; set; } = 15;
[Description("0 - unlimited")]
[Range(0, int.MaxValue)]
public int SteelPlugDurability { get; set; } = 20;
}
}