Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream Merge 08/16/2024 #114

Merged
merged 142 commits into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
142 commits
Select commit Hold shift + click to select a range
1141f26
Adds PKA & Jetpack Module for Salvage Cyborgs (#550)
gluesniffler Aug 6, 2024
e352057
Automatic Changelog Update (#550)
SimpleStation14 Aug 6, 2024
981b7dd
Rebase Blood Drinker System, Arachne, Oneirophage (#438)
VMSolidus Aug 6, 2024
c2d83e4
Automatic Changelog Update (#438)
SimpleStation14 Aug 6, 2024
aed3bab
CPR Remake (#487)
VMSolidus Aug 6, 2024
b1674d1
Automatic Changelog Update (#487)
SimpleStation14 Aug 6, 2024
22ff27c
New Trait: Self-Aware (#680)
angelofallars Aug 6, 2024
5fcec47
Automatic Changelog Update (#680)
SimpleStation14 Aug 6, 2024
498d070
Remove Overlay Restrict From Vulps (#683)
TadJohnson00 Aug 6, 2024
cb3ddd4
Automatic Changelog Update (#683)
SimpleStation14 Aug 6, 2024
55aa822
Stamina Damage Resistance Real (#679)
whateverusername0 Aug 6, 2024
b7d3080
Automatic Changelog Update (#679)
SimpleStation14 Aug 6, 2024
6ab1797
New Trait: Blood Deficiency (#686)
angelofallars Aug 6, 2024
bc3ffaf
Automatic Changelog Update (#686)
SimpleStation14 Aug 6, 2024
6574893
New Trait: Oni Damage Bonuses (#676)
angelofallars Aug 6, 2024
0e29373
Automatic Changelog Update (#676)
SimpleStation14 Aug 6, 2024
32b08b0
Port Justice Department From DeltaV (#675)
VMSolidus Aug 6, 2024
da3956b
New Trait: Parkour Training (#670)
angelofallars Aug 6, 2024
8400f6c
Automatic Changelog Update (#670)
SimpleStation14 Aug 6, 2024
93ece39
Cherry-Pick "EMP Grenade Actually Sabotages Power" From Wizden (#516)
WarMechanic Aug 6, 2024
b6b21da
Automatic Changelog Update (#516)
SimpleStation14 Aug 6, 2024
81ad859
Admeme Language Commands (Attempt 2) (#565)
Mnemotechnician Aug 6, 2024
48c0770
Automatic Changelog Update (#565)
SimpleStation14 Aug 6, 2024
04d01f6
Added Penlights (#567)
SleepyScarecrow Aug 6, 2024
5779039
Automatic Changelog Update (#567)
SimpleStation14 Aug 6, 2024
8768df7
Unique Glove Fibers (#642)
angelofallars Aug 6, 2024
24a5f92
Automatic Changelog Update (#642)
SimpleStation14 Aug 6, 2024
bd11307
Alphabetized physical-desc.ftl (Fr This Time) (#648)
SleepyScarecrow Aug 6, 2024
ab2947b
Fix No Blood Regeneration (#689)
angelofallars Aug 7, 2024
cf310f3
Automatic Changelog Update (#689)
SimpleStation14 Aug 7, 2024
69946f8
Fix BarotraumaSystem (#694)
Fansana Aug 7, 2024
1b2c946
Automatic Changelog Update (#694)
SimpleStation14 Aug 7, 2024
a0f3f31
Butlergone (Cherry-Pick From Delta-V) (#678)
Mnemotechnician Aug 7, 2024
732b8e8
Automatic Changelog Update (#678)
SimpleStation14 Aug 7, 2024
2a6790b
White Dream Harpy Markings (#696)
VMSolidus Aug 7, 2024
07325fc
Automatic Changelog Update (#696)
SimpleStation14 Aug 7, 2024
020e90a
Add Le Psionic Orb From Nyanotrasen (#685)
DangerRevolution Aug 7, 2024
9e83f66
Automatic Changelog Update (#685)
SimpleStation14 Aug 7, 2024
dfe5c2c
Psionic Refactor Part 1: Respacing To Keep Files Changed Down (#698)
VMSolidus Aug 7, 2024
f79c6db
New Trait: Sluggish / Snail-Paced (#692)
angelofallars Aug 7, 2024
04330a4
Automatic Changelog Update (#692)
SimpleStation14 Aug 7, 2024
54e5982
New Trait: Hemophilia (#690)
angelofallars Aug 7, 2024
0fc4051
Automatic Changelog Update (#690)
SimpleStation14 Aug 7, 2024
c469961
Aloe Cream Recipe Fix, Now 15 Seconds (#688)
SleepyScarecrow Aug 7, 2024
7ef43ac
Automatic Changelog Update (#688)
SimpleStation14 Aug 7, 2024
f2e6d1a
New Plant Trait : Bluespace Slips (#674)
dootythefrooty Aug 7, 2024
a243fca
Automatic Changelog Update (#674)
SimpleStation14 Aug 7, 2024
4c4b37a
1984 Dresser Arbitrage 2, Electric Boogaloo (#682)
VMSolidus Aug 8, 2024
9b11260
Respace Psionics Audio & Localization Files (#700)
VMSolidus Aug 8, 2024
e9e10f2
Updates WelderRefinable Component (#687)
BlueHNT Aug 8, 2024
844218c
Automatic Changelog Update (#687)
SimpleStation14 Aug 8, 2024
75d2ea8
1984 Shit Colored Moths (#681)
VMSolidus Aug 8, 2024
ba9a937
Automatic Changelog Update (#681)
SimpleStation14 Aug 8, 2024
d1c8bf1
Tweak Skeleton Description (#707)
Mnemotechnician Aug 9, 2024
892f1e0
Automatic Changelog Update (#707)
SimpleStation14 Aug 9, 2024
7d92c3e
Soft-Refactor Geiger Counters (#615)
VMSolidus Aug 9, 2024
f034031
Automatic Changelog Update (#615)
SimpleStation14 Aug 9, 2024
f4d2e35
Make Dionas Slow And Steady (#704)
angelofallars Aug 9, 2024
3657ad4
Automatic Changelog Update (#704)
SimpleStation14 Aug 9, 2024
31e3c02
Psionic System Cleanup (#703)
VMSolidus Aug 9, 2024
05364c5
Minor Glimmer System Cleanup (#702)
VMSolidus Aug 9, 2024
c8c859a
Melee Pt2 (#693)
OldDanceJacket Aug 10, 2024
c5fb202
Automatic Changelog Update (#693)
SimpleStation14 Aug 10, 2024
cb6e6ae
Rename Mantis (#709)
Elijahrane Aug 10, 2024
07c8eba
Automatic Changelog Update (#709)
SimpleStation14 Aug 10, 2024
6a12eab
New Trait: Liquor Lifeline 🍺🩹 (#706)
angelofallars Aug 10, 2024
643df55
Automatic Changelog Update (#706)
SimpleStation14 Aug 10, 2024
b9bf6e6
NyanoCombat 2, Part 1: Simple Melee Refactor (#605)
VMSolidus Aug 10, 2024
e617342
Automatic Changelog Update (#605)
SimpleStation14 Aug 10, 2024
80c3d63
Remove Hugging Interaction Popup From Humanoids (#710)
Elijahrane Aug 10, 2024
c006ec8
Automatic Changelog Update (#710)
SimpleStation14 Aug 10, 2024
79b3190
NyanoCombat 2, Part 3: Physical Traits (#607)
VMSolidus Aug 10, 2024
9869330
Automatic Changelog Update (#607)
SimpleStation14 Aug 10, 2024
e4b925b
Adds BeardTag (#608)
BlueHNT Aug 10, 2024
9c74822
Automatic Changelog Update (#608)
SimpleStation14 Aug 10, 2024
eb64404
Update Credits (#719)
github-actions[bot] Aug 11, 2024
09a8b91
Increase Trait Limit From 5 To 10 (#720)
angelofallars Aug 11, 2024
3931167
Automatic Changelog Update (#720)
SimpleStation14 Aug 11, 2024
8b0c754
Make Security Dripped Out Again (#660)
Tmanzxd Aug 11, 2024
84c338a
Ports 78 From Floofstation - Fix Crew Monitor (#717)
DangerRevolution Aug 12, 2024
572123e
Automatic Changelog Update (#717)
SimpleStation14 Aug 12, 2024
feb5529
Various Floofstation Ports. (#716)
DangerRevolution Aug 12, 2024
a425aeb
Automatic Changelog Update (#716)
SimpleStation14 Aug 12, 2024
e0f18e8
Add Home Run Bat (Traitor Item) (#722)
angelofallars Aug 12, 2024
f57327e
Automatic Changelog Update (#722)
SimpleStation14 Aug 12, 2024
376b8f1
Added Showers (#661)
SleepyScarecrow Aug 12, 2024
e14bea6
Automatic Changelog Update (#661)
SimpleStation14 Aug 12, 2024
6df564a
Hardsuit MRP Descriptions (#725)
gluesniffler Aug 12, 2024
e23114c
Automatic Changelog Update (#725)
SimpleStation14 Aug 12, 2024
2ae464e
Nix Version Bump (#721)
stellar-novas Aug 12, 2024
eb98bc8
Fix Whitelist Requirements (#729)
DEATHB4DEFEAT Aug 13, 2024
42a5793
Automatic Changelog Update (#729)
SimpleStation14 Aug 13, 2024
90f56f4
Oni Speech Update (#724)
angelofallars Aug 13, 2024
079e978
Automatic Changelog Update (#724)
SimpleStation14 Aug 13, 2024
666e820
Plushie Update! (#654)
FoxxoTrystan Aug 13, 2024
794b8eb
Automatic Changelog Update (#654)
SimpleStation14 Aug 13, 2024
bebe435
Revert "Early-Merge Psionic Refactor Changes"
FoxxoTrystan Aug 13, 2024
ecfed3e
Oni Pointy Ears And Tusks (#727)
angelofallars Aug 13, 2024
6615d83
Automatic Changelog Update (#727)
SimpleStation14 Aug 13, 2024
2067f85
Hotfix Psionic Regeneration (#730)
VMSolidus Aug 14, 2024
d2ff5b1
Automatic Changelog Update (#730)
SimpleStation14 Aug 14, 2024
a9280bb
Vulpkanin Rework: Number Changes (#713)
angelofallars Aug 14, 2024
66a7260
Automatic Changelog Update (#713)
SimpleStation14 Aug 14, 2024
5f25d1b
Oni Horn Markings (#726)
dootythefrooty Aug 14, 2024
934a096
Automatic Changelog Update (#726)
SimpleStation14 Aug 14, 2024
441dee2
Convert Harpy Singing Into a Trait (#714)
Mnemotechnician Aug 15, 2024
037065a
Automatic Changelog Update (#714)
SimpleStation14 Aug 15, 2024
df73a1c
Xenowears (#519)
FoxxoTrystan Aug 15, 2024
6aa2545
Automatic Changelog Update (#519)
SimpleStation14 Aug 15, 2024
d9a0469
Vulpkanin Update (#715)
FoxxoTrystan Aug 15, 2024
f93b8dc
Automatic Changelog Update (#715)
SimpleStation14 Aug 15, 2024
63ca2e5
Merge branch 'Fansana:master' into revert-6-latest-experimental-psychics
ShatteredSwords Aug 15, 2024
9d5dfbd
Commit all files without any conflicts
ShatteredSwords Aug 15, 2024
79ad4c6
Merge the files marked as conflicts
ShatteredSwords Aug 15, 2024
4b77327
Revert "Merge the files marked as conflicts"
ShatteredSwords Aug 15, 2024
08822e3
Cherry-Pick Antag Refactor (#734)
VMSolidus Aug 15, 2024
c8e4ce8
Merge branch 'Fansana:master' into revert-6-latest-experimental-psychics
ShatteredSwords Aug 16, 2024
b14719b
Reverting the specific line
ShatteredSwords Aug 16, 2024
a213abd
Line Reversions, Guidance from VM
ShatteredSwords Aug 16, 2024
c4e95ab
:blunt:
ShatteredSwords Aug 16, 2024
f481bfb
I thought I fixed you!
ShatteredSwords Aug 16, 2024
16d69a5
Delete the line
ShatteredSwords Aug 16, 2024
1c9f299
Editing via VM Guidance
ShatteredSwords Aug 16, 2024
a4db652
Deletion
ShatteredSwords Aug 16, 2024
4677146
Merge branch 'Fansana:master' into revert-6-latest-experimental-psychics
ShatteredSwords Aug 16, 2024
ecc0da2
Adds Fake Blindfold (#718)
DangerRevolution Aug 16, 2024
9dd3113
Automatic Changelog Update (#718)
SimpleStation14 Aug 16, 2024
a164b9a
Merge remote-tracking branch 'EE/master' into Upstream-Merge-08/16/2024
FoxxoTrystan Aug 16, 2024
b3aa98a
yeeps
FoxxoTrystan Aug 16, 2024
7203a0e
fixes
FoxxoTrystan Aug 16, 2024
48503b0
oops
FoxxoTrystan Aug 16, 2024
2324d84
Remove Duplicates
FoxxoTrystan Aug 16, 2024
cea9699
Update Credits (#746)
github-actions[bot] Aug 18, 2024
e552b84
Merge branch 'Fansana:master' into Upstream-Merge-08/16/2024
FoxxoTrystan Aug 18, 2024
f9451d8
Update arachne.yml
FoxxoTrystan Aug 18, 2024
9d1dada
[S] Onis: Get A Boatload Of Troll Horns. (#741)
angelofallars Aug 18, 2024
5931965
Automatic Changelog Update (#741)
SimpleStation14 Aug 18, 2024
b7fe64c
Remove the Stupid Station Records Check From News (#739)
Mnemotechnician Aug 18, 2024
b501bf2
Automatic Changelog Update (#739)
SimpleStation14 Aug 18, 2024
009d45a
Revert "Cherry-Pick Antag Refactor (#734)" (#749)
VMSolidus Aug 19, 2024
2503a65
Merge branch 'Fansana:master' into Upstream-Merge-08/16/2024
FoxxoTrystan Aug 20, 2024
8ac15a2
Merge remote-tracking branch 'EE/master' into Upstream-Merge-08/16/2024
FoxxoTrystan Aug 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using Robust.Client.GameObjects;
using Robust.Client.UserInterface;
using Content.Client.Psionics.UI;
using Robust.Client.UserInterface;
using Content.Client.UserInterface.Fragments;
using Content.Shared.CartridgeLoader.Cartridges;
using Content.Shared.CartridgeLoader;

namespace Content.Client.Psionics.GlimmerMonitor;
namespace Content.Client.CartridgeLoader.Cartridges;

public sealed partial class GlimmerMonitorUi : UIFragment
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<cartridges:GlimmerMonitorUiFragment xmlns:cartridges="clr-namespace:Content.Client.Psionics.GlimmerMonitor"
<cartridges:GlimmerMonitorUiFragment xmlns:cartridges="clr-namespace:Content.Client.CartridgeLoader.Cartridges"
xmlns="https://spacestation14.io" Margin="1 0 2 0">
<PanelContainer StyleClasses="BackgroundDark"></PanelContainer>
<BoxContainer Name="SettingsBox" Orientation="Horizontal" HorizontalExpand="True" VerticalExpand="False">
<Label Text="{Loc 'glimmer-monitor-interval'}"/>
<Button Name="IntervalButton6s" Access="Public" Text="6s" StyleClasses="OpenRight"/>
<Button Name="IntervalButton1" Access="Public" Text="1m" StyleClasses="OpenRight"/>
<Button Name="IntervalButton5" Access="Public" Text="5m" StyleClasses="OpenBoth"/>
<Button Name="IntervalButton10" Access="Public" Text="10m" StyleClasses="OpenLeft"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Linq;
using System.Numerics;
using Content.Client.Psionics.UI;
using Content.Client.UserInterface;
using Robust.Client.AutoGenerated;
using Robust.Client.ResourceManagement;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;

namespace Content.Client.Psionics.GlimmerMonitor;
namespace Content.Client.CartridgeLoader.Cartridges;

[GenerateTypedNameReferences]
public sealed partial class GlimmerMonitorUiFragment : BoxContainer
Expand All @@ -26,14 +26,12 @@ public GlimmerMonitorUiFragment()
VerticalExpand = true;

var intervalGroup = new ButtonGroup();
IntervalButton6s.Group = intervalGroup;
IntervalButton1.Group = intervalGroup;
IntervalButton5.Group = intervalGroup;
IntervalButton10.Group = intervalGroup;

IntervalButton6s.Pressed = true;
IntervalButton1.Pressed = true;

IntervalButton6s.OnPressed += _ => UpdateState(_cachedValues);
IntervalButton1.OnPressed += _ => UpdateState(_cachedValues);
IntervalButton5.OnPressed += _ => UpdateState(_cachedValues);
IntervalButton10.OnPressed += _ => UpdateState(_cachedValues);
Expand Down Expand Up @@ -64,12 +62,14 @@ private List<int> FormatGlimmerValues(List<int> glimmerValues)
{
var returnList = glimmerValues;

if (IntervalButton1.Pressed)
returnList = GetAveragedList(glimmerValues, 10);
else if (IntervalButton5.Pressed)
returnList = GetAveragedList(glimmerValues, 50);
if (IntervalButton5.Pressed)
{
returnList = GetAveragedList(glimmerValues, 5);
}
else if (IntervalButton10.Pressed)
returnList = GetAveragedList(glimmerValues, 100);
{
returnList = GetAveragedList(glimmerValues, 10);
}

return ClipToFifteen(returnList);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Content.Shared.Psionics.Abilities;
using Content.Shared.Abilities.Psionics;
using Content.Client.Chat.Managers;
using Robust.Client.Player;

namespace Content.Client.Psionics.Chat
namespace Content.Client.Chat
{
public sealed class PsionicChatUpdateSystem : EntitySystem
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ public override Control GetUIFragmentRoot()
public override void Setup(BoundUserInterface userInterface, EntityUid? fragmentOwner)
{
_fragment = new CrimeAssistUiFragment();

_fragment.OnSync += _ => SendSyncMessage(userInterface);
}

private void SendSyncMessage(BoundUserInterface userInterface)
{
var syncMessage = new CrimeAssistSyncMessageEvent();
var message = new CartridgeUiMessage(syncMessage);
userInterface.SendMessage(message);
}

public override void UpdateState(BoundUserInterfaceState state)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Content.Client.Message;
using Content.Shared.DeltaV.CartridgeLoader.Cartridges;
using Robust.Client.AutoGenerated;
using Robust.Client.ResourceManagement;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Prototypes;
Expand All @@ -12,7 +13,9 @@ namespace Content.Client.DeltaV.CartridgeLoader.Cartridges;
public sealed partial class CrimeAssistUiFragment : BoxContainer
{
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
[Dependency] private readonly IResourceCache _resourceCache = default!;

public event Action<bool>? OnSync;
private CrimeAssistPage _currentPage;
private List<CrimeAssistPage>? _pages;

Expand Down

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions Content.Client/DeltaV/CartridgeLoader/Cartridges/SecWatchUi.cs

This file was deleted.

This file was deleted.

This file was deleted.

47 changes: 47 additions & 0 deletions Content.Client/Eye/PenLight/UI/PenLightBoundUserInterface.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
using Content.Shared.Medical;
using JetBrains.Annotations;
using Robust.Client.GameObjects;

namespace Content.Client.Eye.PenLight.UI
{
[UsedImplicitly]
public sealed class PenLightBoundUserInterface : BoundUserInterface
{
[ViewVariables]
private PenLightWindow? _window;

public PenLightBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey) { }

protected override void Open()
{
base.Open();
_window = new PenLightWindow
{
Title = EntMan.GetComponent<MetaDataComponent>(Owner).EntityName,
};
_window.OnClose += Close;
_window.OpenCentered();
}

protected override void ReceiveMessage(BoundUserInterfaceMessage message)
{
if (_window == null
|| message is not PenLightUserMessage cast)
return;

_window.Diagnose(cast);
}

protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
if (!disposing)
return;

if (_window != null)
_window.OnClose -= Close;

_window?.Dispose();
}
}
}
11 changes: 11 additions & 0 deletions Content.Client/Eye/PenLight/UI/PenLightWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<controls:FancyWindow xmlns="https://spacestation14.io"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
Title="{Loc 'pen-light-exam-title'}"
SetSize="0 -300">
<ScrollContainer VerticalExpand="True">
<BoxContainer Name="RootContainer" Orientation="Vertical" HorizontalExpand="True">
<Label Name="NoPatientDataText" Text="{Loc 'pen-light-window-no-patient-data-text'}" Visible="False"/>
<Label Name="ExamDataLabel"/>
</BoxContainer>
</ScrollContainer>
</controls:FancyWindow>
78 changes: 78 additions & 0 deletions Content.Client/Eye/PenLight/UI/PenLightWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
using Content.Client.UserInterface.Controls;
using Content.Shared.Damage;
using Content.Shared.IdentityManagement;
using Content.Shared.Medical;
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.XAML;
using System.Text;


namespace Content.Client.Eye.PenLight.UI
{
[GenerateTypedNameReferences]
public sealed partial class PenLightWindow : FancyWindow
{
private readonly IEntityManager _entityManager;
private const int LightHeight = 150;
private const int LightWidth = 900;

public PenLightWindow()
{
RobustXamlLoader.Load(this);

var dependencies = IoCManager.Instance!;
_entityManager = dependencies.Resolve<IEntityManager>();
}
public void Diagnose(PenLightUserMessage msg)
{
var target = _entityManager.GetEntity(msg.TargetEntity);

if (target == null || !_entityManager.TryGetComponent<DamageableComponent>(target, out var damageable))
{
NoPatientDataText.Visible = true;
ExamDataLabel.Text = string.Empty;
return;
}

NoPatientDataText.Visible = false;


string entityName = Loc.GetString("pen-light-window-entity-unknown-text");
if (_entityManager.HasComponent<MetaDataComponent>(target.Value))
entityName = Identity.Name(target.Value, _entityManager);

var sb = new StringBuilder();
sb.AppendLine(Loc.GetString("pen-light-window-entity-eyes-text", ("entityName", entityName)));

// Check if Blind and return early if true
if (msg.Blind == true)
{
sb.AppendLine(Loc.GetString("pen-light-exam-blind-text"));
ExamDataLabel.Text = sb.ToString();
SetHeight = LightHeight;
SetWidth = LightWidth;
return;
}
// EyeDamage
if (msg.EyeDamage == true)
sb.AppendLine(Loc.GetString("pen-light-exam-eyedamage-text"));

// Drunk
if (msg.Drunk == true)
sb.AppendLine(Loc.GetString("pen-light-exam-drunk-text"));

// Hallucinating
if (msg.SeeingRainbows == true)
sb.AppendLine(Loc.GetString("pen-light-exam-hallucinating-text"));

// Healthy
if (msg.Healthy == true)
sb.AppendLine(Loc.GetString("pen-light-exam-healthy-text"));

ExamDataLabel.Text = sb.ToString();

SetHeight = LightHeight;
SetWidth = LightWidth;
}
}
}
6 changes: 4 additions & 2 deletions Content.Client/Flash/FlashSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ private void OnFlashableHandleState(EntityUid uid, FlashableComponent component,
// Few things here:
// 1. If a shorter duration flash is applied then don't do anything
// 2. If the client-side time is later than when the flash should've ended don't do anything
var calculatedStateDuration = state.Duration * state.DurationMultiplier;

var currentTime = _gameTiming.CurTime.TotalSeconds;
var newEndTime = state.Time.TotalSeconds + state.Duration;
var newEndTime = state.Time.TotalSeconds + calculatedStateDuration;
var currentEndTime = component.LastFlash.TotalSeconds + component.Duration;

if (currentEndTime > newEndTime)
Expand All @@ -53,7 +55,7 @@ private void OnFlashableHandleState(EntityUid uid, FlashableComponent component,
}

component.LastFlash = state.Time;
component.Duration = state.Duration;
component.Duration = calculatedStateDuration;

var overlay = _overlayManager.GetOverlay<FlashOverlay>();
overlay.ReceiveFlash(component.Duration);
Expand Down
Loading
Loading