-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathServerConfig.cs
55 lines (46 loc) · 1.48 KB
/
ServerConfig.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
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Terraria;
using Terraria.Localization;
using YourTale.Common;
using Terraria.ModLoader.Config;
namespace yourtale
{
[Label("Yourtale's game configuration.")]
class ServerConfig : ModConfig
{
[JsonIgnore]
public const string ConfigName = "sapo asop samslapmsa polm";
public override bool Autoload(ref string name)
{
name = ConfigName;
return base.Autoload(ref name);
}
public override ConfigScope Mode => ConfigScope.ServerSide;
[Label("$ToolTweaks")]
[Tooltip("Will disable the copper tools nerf (you will need to quit to menu and rejoin).")]
[DefaultValue(true)]
public bool ToolTweaks;
[Label("$Placeholder Slider")]
[Tooltip("$Placeholder slider thingy")]
[Range(1f, 5f)]
[DefaultValue(5f)]
public float PlaceholderSlide;
[Label("$Placeholder Button")]
[Tooltip("$Placeholder button.")]
[ReloadRequired]
[Range(0, 100)]
[DefaultValue(69f)]
public int PlaceholderButton;
[Label("$Enable Monet")]
[Tooltip("$This currently does not do anything yet, but will enable a custom currency once implemented.")]
[ReloadRequired]
[DefaultValue(true)]
public bool CoinRecipesAtEndofList;
}
}