]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix chemical explosion scaling. (#41153)
authorPrincess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
Mon, 27 Oct 2025 22:43:28 +0000 (15:43 -0700)
committerGitHub <noreply@github.com>
Mon, 27 Oct 2025 22:43:28 +0000 (22:43 +0000)
Fix area reaction scaling

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Content.Shared/EntityEffects/Effects/Solution/AreaReactionEntityEffect.cs
Content.Shared/EntityEffects/Effects/Transform/EmpEntityEffectSystem.cs
Content.Shared/EntityEffects/Effects/Transform/ExplosionEntityEffect.cs
Content.Shared/EntityEffects/Effects/Transform/FlashEntityEffectSystem.cs

index 13175cfed1cb35ed4922dd3eefb39e311c7b80f1..9d3dc3822246d90ea61002806da86cfd7a048c1f 100644 (file)
@@ -28,6 +28,8 @@ public sealed partial class AreaReactionEffect : EntityEffectBase<AreaReactionEf
     /// </summary>
     [DataField(required: true)] public SoundSpecifier Sound = default!;
 
+    public override bool Scaling => true;
+
     public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
         => Loc.GetString("entity-effect-guidebook-area-reaction",
             ("duration", Duration)
index 2cbb6d6dad0ff4a66138fa0b7757e95a30beb897..334223686b45ba089123924575b73b4b4340e6ec 100644 (file)
@@ -49,6 +49,8 @@ public sealed partial class Emp : EntityEffectBase<Emp>
     [DataField]
     public TimeSpan Duration = TimeSpan.FromSeconds(15);
 
+    public override bool Scaling => true;
+
     public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
         => Loc.GetString("entity-effect-guidebook-emp-reaction-effect", ("chance", Probability));
 
index 907c4e321f9c137a36286486f3ee1b53b02ce397..2e32c434a3015f7418e39ac880e9468cc6a94a58 100644 (file)
@@ -50,6 +50,8 @@ public sealed partial class Explosion : EntityEffectBase<Explosion>
     [DataField]
     public float TileBreakScale = 1f;
 
+    public override bool Scaling => true;
+
     public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
         => Loc.GetString("entity-effect-guidebook-explosion", ("chance", Probability));
 
index df788e94d61b1f5ee5f081b85cab606afb003ef6..66d30945aa65eaf838c92d4e20b3b98e0435341d 100644 (file)
@@ -76,6 +76,8 @@ public sealed partial class Flash : EntityEffectBase<Flash>
     [DataField]
     public SoundSpecifier? Sound = new SoundPathSpecifier("/Audio/Weapons/flash.ogg");
 
+    public override bool Scaling => true;
+
     public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
         => Loc.GetString("entity-effect-guidebook-flash-reaction-effect", ("chance", Probability));
 }