Merge remote-tracking branch 'upstream/master' into ed-08-09-2024-upstream
# Conflicts: # .github/PULL_REQUEST_TEMPLATE.md # Content.Server/Station/Systems/StationSpawningSystem.cs # Resources/Prototypes/Entities/Mobs/Customization/Markings/human_hair.yml # Resources/Prototypes/Maps/box.yml # Resources/Prototypes/Maps/marathon.yml # Resources/Prototypes/Maps/meta.yml
This commit is contained in:
@@ -303,7 +303,11 @@ public sealed class TemperatureSystem : EntitySystem
|
||||
private void OnTemperatureChangeAttempt(EntityUid uid, TemperatureProtectionComponent component,
|
||||
InventoryRelayedEvent<ModifyChangedTemperatureEvent> args)
|
||||
{
|
||||
var ev = new GetTemperatureProtectionEvent(component.Coefficient);
|
||||
var coefficient = args.Args.TemperatureDelta < 0
|
||||
? component.CoolingCoefficient
|
||||
: component.HeatingCoefficient;
|
||||
|
||||
var ev = new GetTemperatureProtectionEvent(coefficient);
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
|
||||
args.Args.TemperatureDelta *= ev.Coefficient;
|
||||
|
||||
Reference in New Issue
Block a user