mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-20 06:58:55 +03:00
# Description Added stamina damage resistance, acts the same way as armor does. Call this shock resistance if you wish :trollface: Just attach StaminaDamageResistance component to an entity with a set multiplier and have fun. Made all hardsuits 25% stun resistant by default. With some variety, e.g. nukie, ERT, captain, HoS suits are 50%, DS are 90%, etc. etc. This will not remove stuneta but it will make it more difficult to stamcrit a traitor or such. Some armor/batong ratios that you need to hit before the target is stamcritted: 0% - 3 batong hits 25% - 4 batong hits 50% - 6 batong hits 75% - 12 batong hits 90% - 28 batong hits :trollface: 100% -  # Changelog 🆑 - add: Added different stamina damage resistance to hardsuits. --------- Co-authored-by: whateverusername0 <whateveremail>
13 lines
319 B
C#
13 lines
319 B
C#
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Stunnable;
|
|
|
|
[RegisterComponent, NetworkedComponent]
|
|
public sealed partial class StaminaDamageResistanceComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// 1 - no reduction, 0 - full reduction
|
|
/// </summary>
|
|
[DataField] public float Coefficient = 1;
|
|
}
|