-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathExtraLoadoutsMod.cs
More file actions
50 lines (47 loc) · 1.39 KB
/
ExtraLoadoutsMod.cs
File metadata and controls
50 lines (47 loc) · 1.39 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 System.IO;
using Microsoft.Xna.Framework;
using Terraria.ModLoader;
namespace ExtraLoadouts {
public sealed class ExtraLoadoutsMod : Mod {
public const int VANILLA_LOADOUTS = 3;
public const int EXTRA_LOADOUTS = 6;
public static readonly Color[,] ExLoadoutColors = new Color[EXTRA_LOADOUTS, 3] {
{
new(130, 116, 63),
new(122, 97, 59),
new(117, 70, 53)
},
{
new(108, 50, 137),
new(70, 56, 107),
new(77, 51, 104)
},
{
new(127, 72, 125),
new(102, 52, 104),
new(78, 46, 96),
},
{
new(170, 192, 179),
new(109, 166, 160),
new(46, 106, 110)
},
{
new(69, 69, 161),
new(46, 46, 102),
new(34, 34, 77)
},
{
new(190, 154, 235),
new(178, 139, 208),
new(172, 106, 190),
}
};
public override void HandlePacket(BinaryReader reader, int whoAmI) {
LoadoutSyncing.HandlePacket(reader);
}
public static int LoadoutNumber(int loadoutIndex, bool ex) {
return loadoutIndex + 1 + (ex ? VANILLA_LOADOUTS : 0);
}
}
}