Make the chem guidebook show when chemicals adjust body temperature (again) (#42394)

Make chem guidebook show adjusttemperature effects
This commit is contained in:
ConstantlyConfused 2026-03-17 13:32:10 -04:00 committed by Coryler
parent 2a9b640fc6
commit 909f0e49ab
1 changed files with 7 additions and 0 deletions

View File

@ -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));
}