Skip to content

Commit

Permalink
bogos binted
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyndomen committed Nov 13, 2024
1 parent a85a7a6 commit e518dbe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
13 changes: 0 additions & 13 deletions Content.Server/EE/GameTicking/Events/RoundEndedEvent.cs

This file was deleted.

1 change: 0 additions & 1 deletion Content.Server/GameTicking/GameTicker.RoundFlow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,6 @@ public void ShowRoundEndScoreboard(string text = "")

_replayRoundPlayerInfo = listOfPlayerInfoFinal;
_replayRoundText = roundEndText;
RaiseLocalEvent(new RoundEndedEvent(RoundId, roundDuration)); //DeltaV - EE change ported
}

private async void SendRoundEndDiscordMessage()
Expand Down
13 changes: 5 additions & 8 deletions Content.Server/Objectives/Systems/KillPersonConditionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ public sealed class KillPersonConditionSystem : EntitySystem
[Dependency] private readonly SharedMindSystem _mind = default!;
[Dependency] private readonly TargetObjectiveSystem _target = default!;

private List<EntityUid> _wasKilled = new();
private List<EntityUid> _wasKilled = new(); //DeltaV Port from EE

public override void Initialize()
{
base.Initialize();

SubscribeLocalEvent<KillPersonConditionComponent, ObjectiveGetProgressEvent>(OnGetProgress);
SubscribeLocalEvent<PickRandomPersonComponent, ObjectiveAssignedEvent>(OnPersonAssigned);
SubscribeLocalEvent<PickRandomHeadComponent, ObjectiveAssignedEvent>(OnHeadAssigned);
SubscribeLocalEvent<RoundEndedEvent>(OnRoundEnd); //DeltaV Port from EE
SubscribeLocalEvent<RoundRestartCleanupEvent>(OnRoundEnd); //DeltaV Kill objective
}

private void OnGetProgress(EntityUid uid, KillPersonConditionComponent comp, ref ObjectiveGetProgressEvent args)
Expand Down Expand Up @@ -106,11 +107,7 @@ private float GetProgress(EntityUid target, bool requireDead)
if (!requireDead && !_wasKilled.Contains(target)) _wasKilled.Add(target);
return 1f;
}

// if the target was killed once and it isn't a head objective
if (_wasKilled.Contains(target))
return 1f;


return 0f;
}
// if the target has to be dead dead then don't check evac stuff
Expand All @@ -132,7 +129,7 @@ private float GetProgress(EntityUid target, bool requireDead)
// // if evac is still here and target hasn't boarded, show 50% to give you an indicator that you are doing good
// return _emergencyShuttle.EmergencyShuttleArrived ? 0.5f : 0f;
// Clear the wasKilled list on round end
private void OnRoundEnd(RoundEndedEvent ev)
private void OnRoundEnd(RoundRestartCleanupEvent ev)

Check failure on line 132 in Content.Server/Objectives/Systems/KillPersonConditionSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The type or namespace name 'RoundRestartCleanupEvent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 132 in Content.Server/Objectives/Systems/KillPersonConditionSystem.cs

View workflow job for this annotation

GitHub Actions / Test Packaging

The type or namespace name 'RoundRestartCleanupEvent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 132 in Content.Server/Objectives/Systems/KillPersonConditionSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The type or namespace name 'RoundRestartCleanupEvent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 132 in Content.Server/Objectives/Systems/KillPersonConditionSystem.cs

View workflow job for this annotation

GitHub Actions / YAML Linter

The type or namespace name 'RoundRestartCleanupEvent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 132 in Content.Server/Objectives/Systems/KillPersonConditionSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'RoundRestartCleanupEvent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 132 in Content.Server/Objectives/Systems/KillPersonConditionSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'RoundRestartCleanupEvent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 132 in Content.Server/Objectives/Systems/KillPersonConditionSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'RoundRestartCleanupEvent' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 132 in Content.Server/Objectives/Systems/KillPersonConditionSystem.cs

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

The type or namespace name 'RoundRestartCleanupEvent' could not be found (are you missing a using directive or an assembly reference?)
=> _wasKilled.Clear();
// DeltaV - end making people only die once from EE
}

0 comments on commit e518dbe

Please sign in to comment.