This repository has been archived by the owner on Feb 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.cs
105 lines (93 loc) · 3.17 KB
/
Config.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
using System.ComponentModel;
using System.Collections.Generic;
using UnityEngine;
using Exiled.API.Interfaces;
using Exiled.API.Enums;
using ItemUtils.API;
using ItemUtils.API.Modifiers;
using KeycardPermissions = Interactables.Interobjects.DoorUtils.KeycardPermissions;
using InventorySystem.Items.Firearms.Attachments;
namespace ItemUtils
{
public class Config : IConfig
{
[Description("Indicates whether the plugin is enabled or not")]
public bool IsEnabled { get; set; } = true;
[Description("A list of the names of custom items of which the modifications should not affect")]
public List<string> IgnoredCustomItems = new List<string>()
{
"Example",
};
[Description("Modifier descriptions for items")]
public Dictionary<string, object> ItemModifiers { get; set; } = new Dictionary<string, object>()
{
["Infinite Radio"] = new DepletableModifier
{
AffectedItems =
{
ItemType.Radio
},
IgnoredRoles =
{
RoleType.ChaosConscript,
RoleType.ChaosRifleman,
RoleType.ChaosRepressor,
RoleType.ChaosMarauder,
},
HasInfiniteUse = true,
},
["Small Flashlight"] = new ItemModifier
{
AffectedItems =
{
ItemType.Flashlight,
},
Scale = new Vector3(1, 1, 0.75f),
},
["Modified Painkillers"] = new ConsumableModifier
{
AffectedItems =
{
ItemType.Painkillers,
},
Scale = new Vector3(1, 3, 1),
HpAdded = 5,
AhpAdded = 0,
Effects =
{
new ConfigurableEffect
{
Type = EffectType.Invigorated,
Duration = 10,
Chance = 10,
}
},
},
["Modified Containment Engineer"] = new KeycardModifier
{
AffectedItems =
{
ItemType.KeycardContainmentEngineer,
},
AddedPermissions = { KeycardPermissions.AlphaWarhead, KeycardPermissions.Intercom }
},
["Modified Logicer"] = new FirearmModifier
{
AffectedItems =
{
ItemType.GunLogicer,
},
ScpDamageMulti = 1.2f,
ModifiedAttachments =
{
[AttachmentName.Foregrip] = new Dictionary<AttachmentParam, float>()
{
[AttachmentParam.HipInaccuracyMultiplier] = 0.9f,
},
},
},
};
[Description("Indicates whether the plugin will show debug logs")]
public bool DebugMode { get; set; } = false;
}
}