summaryrefslogtreecommitdiff
path: root/Lights.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Lights.cs')
-rw-r--r--Lights.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lights.cs b/Lights.cs
index 4927fd3..fd072e2 100644
--- a/Lights.cs
+++ b/Lights.cs
@@ -45,7 +45,7 @@ namespace WorldTuningTool
public uLight(nint lightObject) : base(lightObject)
{
Parameters.AddRange(new Parameter[]{
- M<int>("Group", 0x13C, ParameterType.INT, 0x7, pMinMaxStep(0, 7, 1)), // 1 = World, (1 << 1) = Player/Palico, (1 << 2) = NPCs
+ M<int>("Group", 0x13C, ParameterType.BITS, 0x7), // 1 = World, (1 << 1) = Player/Palico, (1 << 2) = NPCs
M<int>("Priority", 0x138, ParameterType.INT, (0xFF << 6), pMinMaxStep(0, 255, 1)),
P<int>("Color", 0x140, ParameterType.COLOR),
P<float>("Intensity", 0x144, ParameterType.FLOAT),
@@ -277,7 +277,7 @@ namespace WorldTuningTool
{
public override int Type => 3;
public override string Name => $"uSpotLight";
- public override string Info => $"0x{Object:X}, Parent: 0x{Parent:X}";
+ public override string Info => $"0x{Object:X}" + (Parent != 0x0 ? $", Parent: 0x{Parent:X}" : "");
public nint Parent => MemoryUtil.Read<nint>(Object + 0x600);
public int ParentNo => MemoryUtil.Read<int>(Object + 0x610);
public nint Target => MemoryUtil.Read<nint>(Object + 0x608);