Add dizziness as a symptom of bloodloss (#10172)

This commit is contained in:
Rane
2022-07-30 22:24:24 -04:00
committed by GitHub
parent 68a5fcb7f8
commit 95bf54af7a
3 changed files with 19 additions and 3 deletions

View File

@@ -11,9 +11,15 @@ public sealed class Drunk : ReagentEffect
[DataField("boozePower")]
public float BoozePower = 2f;
/// <summary>
/// Whether speech should be slurred.
/// </summary>
[DataField("slurSpeech")]
public bool SlurSpeech = true;
public override void Effect(ReagentEffectArgs args)
{
var drunkSys = args.EntityManager.EntitySysManager.GetEntitySystem<SharedDrunkSystem>();
drunkSys.TryApplyDrunkenness(args.SolutionEntity, BoozePower);
drunkSys.TryApplyDrunkenness(args.SolutionEntity, BoozePower, SlurSpeech);
}
}