Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ConTorch.cs
Go to the documentation of this file.
1public class ConTorch : BaseBuff
2{
3 public override string idSprite => "ActTorch";
4
5 public override void OnStart()
6 {
8 }
9
10 public override void OnCalculateFov(Fov fov, ref int radius, ref float power)
11 {
12 if (radius < EClass.Colors.pcLights.torch.radius)
13 {
15 }
16 float num = 0.01f * EClass.Colors.pcLights.torch.color.a * 256f;
17 if (power < num)
18 {
19 power = num;
20 }
21 }
22
23 public override void OnCreateFov(Fov fov)
24 {
25 fov.r += (byte)(EClass.Colors.pcLights.torch.color.r * 16f);
26 fov.g += (byte)(EClass.Colors.pcLights.torch.color.g * 16f);
27 fov.b += (byte)(EClass.Colors.pcLights.torch.color.b * 16f);
28 fov.r += 4;
29 fov.g += 3;
30 fov.b += 2;
31 }
32
33 public override void OnRemoved()
34 {
37 {
38 traitToolTorch.RefreshRenderer();
39 }
40 }
41}
void RecalculateFOV()
Definition: Card.cs:5616
Trait trait
Definition: Card.cs:49
PCLights pcLights
override void OnRemoved()
Definition: ConTorch.cs:33
override void OnCalculateFov(Fov fov, ref int radius, ref float power)
Definition: ConTorch.cs:10
override string idSprite
Definition: ConTorch.cs:3
override void OnStart()
Definition: ConTorch.cs:5
override void OnCreateFov(Fov fov)
Definition: ConTorch.cs:23
Definition: EClass.cs:5
static ColorProfile Colors
Definition: EClass.cs:38
static Player player
Definition: EClass.cs:12
Definition: Fov.cs:6
virtual Thing Thing
Definition: HotItem.cs:38
int radius
Definition: LightData.cs:10
Color color
Definition: LightData.cs:7
HotItem currentHotItem
Definition: Player.cs:901