FIXED: Chemistry JSON dump tool and companion GitHub Action (#6222)
Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com> Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Text.Json.Serialization;
|
||||
using Content.Server.Chemistry.Components.SolutionManager;
|
||||
using Content.Server.Explosion.EntitySystems;
|
||||
using Content.Shared.Administration.Logs;
|
||||
@@ -12,21 +13,36 @@ namespace Content.Server.Chemistry.ReactionEffects
|
||||
[DataDefinition]
|
||||
public class ExplosionReactionEffect : ReagentEffect
|
||||
{
|
||||
[DataField("devastationRange")] private float _devastationRange = 1;
|
||||
[DataField("heavyImpactRange")] private float _heavyImpactRange = 2;
|
||||
[DataField("lightImpactRange")] private float _lightImpactRange = 3;
|
||||
[DataField("flashRange")] private float _flashRange;
|
||||
[DataField("devastationRange")]
|
||||
[JsonIgnore]
|
||||
private float _devastationRange = 1;
|
||||
|
||||
[DataField("heavyImpactRange")]
|
||||
[JsonIgnore]
|
||||
private float _heavyImpactRange = 2;
|
||||
|
||||
[DataField("lightImpactRange")]
|
||||
[JsonIgnore]
|
||||
private float _lightImpactRange = 3;
|
||||
|
||||
[DataField("flashRange")]
|
||||
[JsonIgnore]
|
||||
private float _flashRange;
|
||||
|
||||
/// <summary>
|
||||
/// If true, then scale ranges by intensity. If not, the ranges are the same regardless of reactant amount.
|
||||
/// </summary>
|
||||
[DataField("scaled")] private bool _scaled;
|
||||
[DataField("scaled")]
|
||||
[JsonIgnore]
|
||||
private bool _scaled;
|
||||
|
||||
/// <summary>
|
||||
/// Maximum scaling on ranges. For example, if it equals 5, then it won't scaled anywhere past
|
||||
/// 5 times the minimum reactant amount.
|
||||
/// </summary>
|
||||
[DataField("maxScale")] private float _maxScale = 1;
|
||||
[DataField("maxScale")]
|
||||
[JsonIgnore]
|
||||
private float _maxScale = 1;
|
||||
|
||||
public override bool ShouldLog => true;
|
||||
public override LogImpact LogImpact => LogImpact.High;
|
||||
|
||||
Reference in New Issue
Block a user