Make the chem guidebook show when chemicals adjust body temperature (again) (#42394)
Make chem guidebook show adjusttemperature effects
This commit is contained in:
parent
2a9b640fc6
commit
909f0e49ab
|
|
@ -1,5 +1,6 @@
|
|||
using Content.Shared.Temperature.Components;
|
||||
using Content.Shared.Temperature.Systems;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared.EntityEffects.Effects;
|
||||
|
||||
|
|
@ -27,4 +28,10 @@ public sealed partial class AdjustTemperature : EntityEffectBase<AdjustTemperatu
|
|||
/// </summary>
|
||||
[DataField]
|
||||
public float Amount;
|
||||
|
||||
public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
|
||||
=> Loc.GetString("entity-effect-guidebook-adjust-temperature",
|
||||
("chance", Probability),
|
||||
("deltasign", MathF.Sign(Amount)),
|
||||
("amount", Amount));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue