-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathAssConfig.cs
36 lines (31 loc) · 1.16 KB
/
AssConfig.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
using System.ComponentModel;
using Terraria.ModLoader.Config;
namespace AssortedCrazyThings
{
/// <summary>
/// The class name is what is shown in the filename as AssortedCrazyThings_ACTConfig
/// </summary>
public class Config : ModConfig
{
public override ConfigScope Mode => ConfigScope.ServerSide;
/// <summary>
/// Affects the way Cute Slimes spawn and how the Jellied Ale works
/// </summary>
[DefaultValue(true)]
[Label("Cute Slimes Potion Only")]
[Tooltip("Affects the way Cute Slimes spawn and how the Jellied Ale works")]
public bool CuteSlimesPotionOnly;
/// <summary>
/// Enable/Disable Walking Tombstones spawning
/// </summary>
[DefaultValue(true)]
[Label("Walking Tombstones")]
[Tooltip("Enable/Disable Walking Tombstone spawning")]
public bool WalkingTombstones;
public override bool AcceptClientChanges(ModConfig pendingConfig, int whoAmI, ref string message)
{
message = "Only the host of this world can change the config! Do so in singleplayer.";
return false;
}
}
}