-
Notifications
You must be signed in to change notification settings - Fork 10
/
Extensions.cs
61 lines (61 loc) · 1.82 KB
/
Extensions.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
namespace SCP008X
{
public static class Extensions
{
public static bool NonHuman(this RoleType Role, bool OnlySCPs)
{
if (OnlySCPs)
{
switch (Role)
{
case RoleType.Scp049:
case RoleType.Scp0492:
case RoleType.Scp079:
case RoleType.Scp096:
case RoleType.Scp106:
case RoleType.Scp173:
case RoleType.Scp93953:
case RoleType.Scp93989:
return true;
default:
return false;
}
}
else
{
switch (Role)
{
case RoleType.Scp049:
case RoleType.Scp0492:
case RoleType.Scp079:
case RoleType.Scp096:
case RoleType.Scp106:
case RoleType.Scp173:
case RoleType.Scp93953:
case RoleType.Scp93989:
case RoleType.Spectator:
case RoleType.None:
return true;
default:
return false;
}
}
}
public static bool Gun(this ItemType Item)
{
switch (Item)
{
case ItemType.GunCOM15:
case ItemType.GunE11SR:
case ItemType.GunLogicer:
case ItemType.GunMP7:
case ItemType.GunProject90:
case ItemType.GunUSP:
case ItemType.MicroHID:
return true;
default:
return false;
}
}
}
}