* Add stamina damage resistance * Probably starting a civil war within the community. * Tweak some values, my chart was outdated. * Tone down the values * Allow a way to bypass the resistances, which forks downstream can use. * Apply suggestions from code review Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Comment out the changes to non-deathsquad suits. * minor text fix e * review --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> Co-authored-by: SlamBamActionman <slambamactionman@gmail.com> Co-authored-by: Milon <milonpl.git@proton.me>
13 lines
385 B
C#
13 lines
385 B
C#
using Content.Shared.Inventory;
|
|
|
|
namespace Content.Shared.Damage.Events;
|
|
|
|
/// <summary>
|
|
/// Raised before stamina damage is dealt to allow other systems to cancel or modify it.
|
|
/// </summary>
|
|
[ByRefEvent]
|
|
public record struct BeforeStaminaDamageEvent(float Value, bool Cancelled = false) : IInventoryRelayEvent
|
|
{
|
|
SlotFlags IInventoryRelayEvent.TargetSlots => ~SlotFlags.POCKET;
|
|
}
|