This commit is contained in:
Gurge44 committed 2024-10-29 15:11:56 +01:00
1 parent 41b4c8f8dd
commit 59d7fc41fe
2 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@
<Description>EHR</Description>
<Authors>Gurge44</Authors>
<langVersion>preview</langVersion>
<AmongUs>D:\Epic Games\AmongUs</AmongUs>
<AmongUs>E:\Program Files\AmongUs</AmongUs>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Optimize>True</Optimize>
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
+6 -6
View File
@@ -617,14 +617,14 @@ namespace EHR
var hit = new Vector2(Random.Range(MapBounds.X.Left, MapBounds.X.Right), Random.Range(MapBounds.Y.Bottom, MapBounds.Y.Top));
var cno = new Lightning(hit);
if (cno.playerControl.GetPlainShipRoom() != default(PlainShipRoom)) cno.Despawn();
foreach (var pc in Main.AllAlivePlayerControls)
{
if (pc.GetPlainShipRoom() != default(PlainShipRoom)) continue;
if (Vector2.Distance(pc.Pos(), hit) <= Range)
else
foreach (var pc in Main.AllAlivePlayerControls)
{
pc.Suicide(PlayerState.DeathReason.Lightning);
if (Vector2.Distance(pc.Pos(), hit) <= Range / 2f)
{
pc.Suicide(PlayerState.DeathReason.Lightning);
}
}
}
}
}