Add events for TemperatureProtection and PressureProtection (#25165)
This commit is contained in:
@@ -293,7 +293,10 @@ public sealed class TemperatureSystem : EntitySystem
|
||||
private void OnTemperatureChangeAttempt(EntityUid uid, TemperatureProtectionComponent component,
|
||||
InventoryRelayedEvent<ModifyChangedTemperatureEvent> args)
|
||||
{
|
||||
args.Args.TemperatureDelta *= component.Coefficient;
|
||||
var ev = new GetTemperatureProtectionEvent(component.Coefficient);
|
||||
RaiseLocalEvent(uid, ref ev);
|
||||
|
||||
args.Args.TemperatureDelta *= ev.Coefficient;
|
||||
}
|
||||
|
||||
private void OnParentChange(EntityUid uid, TemperatureComponent component,
|
||||
|
||||
Reference in New Issue
Block a user