Add dizziness as a symptom of bloodloss (#10172)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user