Skip to content

Commit

Permalink
рождественская резня
Browse files Browse the repository at this point in the history
  • Loading branch information
RedFoxIV committed Dec 24, 2024
1 parent 9d4c644 commit 5b99858
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private void OnChristmasLightsVerbs(EntityUid uid, ChristmasLightsComponent comp



// Funny shitcode game: everything that gets called in FrameUpdate() must be coded as if it's from a shader.
// Funny shitcode game: everything that gets called in FrameUpdate() must be coded as if it's in a shader.



Expand Down
3 changes: 2 additions & 1 deletion Content.Server/_White/Misc/ChristmasLightsSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ private void OnChristmasLightsModerateTrolling(EntityUid uid, ChristmasLightsCom
int GetNextModeIndex(ChristmasLightsComponent comp) // cycles modes as usual, but also handles the -1 case
{
if (comp.CurrentModeIndex == -1) return -1;
return (comp.CurrentModeIndex + 1) % comp.modes.Count;
comp.CurrentModeIndex = (comp.CurrentModeIndex + 1) % comp.modes.Count;
return comp.CurrentModeIndex;
}

private void OnModeChangeAttempt(ChangeChristmasLightsModeAttemptEvent args, EntitySessionEventArgs sessionArgs)
Expand Down

0 comments on commit 5b99858

Please sign in to comment.