-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigDefaults.cs
123 lines (79 loc) · 2.76 KB
/
ConfigDefaults.cs
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
using System;
using System.ComponentModel;
using Terraria.ModLoader;
using Terraria.ModLoader.Config;
namespace Lives {
public class LivesConfig : ModConfig {
public static LivesConfig Instance => ModContent.GetInstance<LivesConfig>();
////////////////
public override ConfigScope Mode => ConfigScope.ServerSide;
////
[DefaultValue( true )]
public bool Enabled { get; set; } = true;
////
[Range( 1, 999 )]
[DefaultValue( 3 )]
public int InitialLives { get; set; } = 3;
[Range( 1, 999 )]
[DefaultValue( 99 )]
public int MaxLives { get; set; } = 99;
[DefaultValue( true )]
public bool CraftableExtraLives { get; set; } = true;
[Range( 0, 999 )]
[DefaultValue( 15 )]
public int ExtraLifeGoldCoins { get; set; } = 15;
[DefaultValue( true )]
public bool ExtraLifeVoodoo { get; set; } = true;
////
[Range( -1, 999 )]
[DefaultValue( 0 )]
public int ContinuesLimit { get; set; } = 0; // Less than 0: Unlimited, Greater than 0: Finite, Equal to 0: Game over!
[DefaultValue( true )]
public bool ContinueDeathDropItems { get; set; } = true;
[DefaultValue( 100 )]
public int ContinueDeathMaxHpToll { get; set; } = 100;
[DefaultValue( 100 )]
public int ContinueDeathMaxHpMinimum { get; set; } = 100; // No max hp? Game over!
[DefaultValue( 10 )]
public int ContinueDeathRewardsPPToll { get; set; } = 10;
[DefaultValue( 0 )]
public int ContinueDeathRewardsPPMinimum { get; set; } = 0;
[DefaultValue( 10 )]
public int ContinueDeathMaxStaminaToll { get; set; } = 10;
[DefaultValue( 50 )]
public int ContinueDeathMaxStaminaMinimum { get; set; } = 50;
////
[DefaultValue( true )]
public bool DrawLivesIcon { get; set; } = true;
[DefaultValue( true )]
public bool DrawLivesText { get; set; } = true;
[Range( -2048, 2048 )]
[DefaultValue( -48 )]
public int DrawLivesIconOffsetX { get; set; } = -48;
[Range( -1024, 1024 )]
[DefaultValue( -24 )]
public int DrawLivesIconOffsetY { get; set; } = -24;
[Range( -2048, 2048 )]
[DefaultValue( -38 )]
public int DrawLivesTextOffsetX { get; set; } = -38;
[Range( -1024, 1024 )]
[DefaultValue( -26 )]
public int DrawLivesTextOffsetY { get; set; } = -26;
[DefaultValue( true )]
public bool DrawContinuesIcon { get; set; } = true;
[DefaultValue( true )]
public bool DrawContinuesText { get; set; } = true;
[Range( -2048, 2048 )]
[DefaultValue( -56 )]
public int DrawContinuesIconOffsetX { get; set; } = -56;
[Range( -1024, 1024 )]
[DefaultValue( -68 )]
public int DrawContinuesIconOffsetY { get; set; } = -68;
[Range( -2048, 2048 )]
[DefaultValue( -38 )]
public int DrawContinuesTextOffsetX { get; set; } = -38;
[Range( -1024, 1024 )]
[DefaultValue( -59 )]
public int DrawContinuesTextOffsetY { get; set; } = -59;
}
}