Add stamina and mob damage playtest modifiers (#35599)

* Add stamina and mob damage playtest modifiers

* Fix typo

* Add FTL

* Review fixes

* Update Content.Shared/Mobs/Systems/MobStateSystem.Subscribers.cs

---------

Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
SlamBamActionman
2025-03-21 00:01:35 +01:00
committed by GitHub
parent 09901e6551
commit 85a6ac90ba
6 changed files with 38 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
using Content.Shared.Bed.Sleep;
using Content.Shared.Buckle.Components;
using Content.Shared.CombatMode.Pacification;
using Content.Shared.Damage;
using Content.Shared.Damage.ForceSay;
using Content.Shared.Emoting;
using Content.Shared.Hands;
@@ -44,6 +45,7 @@ public partial class MobStateSystem
SubscribeLocalEvent<MobStateComponent, TryingToSleepEvent>(OnSleepAttempt);
SubscribeLocalEvent<MobStateComponent, CombatModeShouldHandInteractEvent>(OnCombatModeShouldHandInteract);
SubscribeLocalEvent<MobStateComponent, AttemptPacifiedAttackEvent>(OnAttemptPacifiedAttack);
SubscribeLocalEvent<MobStateComponent, DamageModifyEvent>(OnDamageModify);
SubscribeLocalEvent<MobStateComponent, UnbuckleAttemptEvent>(OnUnbuckleAttempt);
}
@@ -186,5 +188,10 @@ public partial class MobStateSystem
args.Cancelled = true;
}
private void OnDamageModify(Entity<MobStateComponent> ent, ref DamageModifyEvent args)
{
args.Damage *= _damageable.UniversalMobDamageModifier;
}
#endregion
}