Fix chemical explosion scaling. (#41153)

Fix area reaction scaling

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
Princess Cheeseballs
2025-10-27 15:43:28 -07:00
committed by GitHub
parent abd9aec8bd
commit db05016fe0
4 changed files with 8 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ public sealed partial class AreaReactionEffect : EntityEffectBase<AreaReactionEf
/// </summary> /// </summary>
[DataField(required: true)] public SoundSpecifier Sound = default!; [DataField(required: true)] public SoundSpecifier Sound = default!;
public override bool Scaling => true;
public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
=> Loc.GetString("entity-effect-guidebook-area-reaction", => Loc.GetString("entity-effect-guidebook-area-reaction",
("duration", Duration) ("duration", Duration)

View File

@@ -49,6 +49,8 @@ public sealed partial class Emp : EntityEffectBase<Emp>
[DataField] [DataField]
public TimeSpan Duration = TimeSpan.FromSeconds(15); public TimeSpan Duration = TimeSpan.FromSeconds(15);
public override bool Scaling => true;
public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
=> Loc.GetString("entity-effect-guidebook-emp-reaction-effect", ("chance", Probability)); => Loc.GetString("entity-effect-guidebook-emp-reaction-effect", ("chance", Probability));

View File

@@ -50,6 +50,8 @@ public sealed partial class Explosion : EntityEffectBase<Explosion>
[DataField] [DataField]
public float TileBreakScale = 1f; public float TileBreakScale = 1f;
public override bool Scaling => true;
public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
=> Loc.GetString("entity-effect-guidebook-explosion", ("chance", Probability)); => Loc.GetString("entity-effect-guidebook-explosion", ("chance", Probability));

View File

@@ -76,6 +76,8 @@ public sealed partial class Flash : EntityEffectBase<Flash>
[DataField] [DataField]
public SoundSpecifier? Sound = new SoundPathSpecifier("/Audio/Weapons/flash.ogg"); public SoundSpecifier? Sound = new SoundPathSpecifier("/Audio/Weapons/flash.ogg");
public override bool Scaling => true;
public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
=> Loc.GetString("entity-effect-guidebook-flash-reaction-effect", ("chance", Probability)); => Loc.GetString("entity-effect-guidebook-flash-reaction-effect", ("chance", Probability));
} }