mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-03 09:37:27 +00:00
* feat(star.yml): make throwable star damage stamina
* feat(Components): add new StaminaTresholdDamageOnEmbedComponent
* feat(SharedProjectileSystem): update system with new events to change
stamins treshold on embeed projectile remove / add
* feat(StaminaSystem): update system with new subscriptions
* feat(throwing_stars): update yml with new component
* feat(StaminaDamageOnEmbed): add stamina damage on embeed
* cleanup unused / ajust numbers
* fix(StaminaSystem / OnEmbedComponent ) apply requested changes
* Rest of the review
* another warning
---------
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
(cherry picked from commit b80f7eed6e)
18 lines
475 B
C#
18 lines
475 B
C#
using Content.Shared.Damage.Systems;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Damage.Components;
|
|
|
|
/// <summary>
|
|
/// Applies stamina damage when embeds in an entity.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
[NetworkedComponent]
|
|
[AutoGenerateComponentState]
|
|
[Access(typeof(StaminaSystem))]
|
|
public sealed partial class StaminaDamageOnEmbedComponent : Component
|
|
{
|
|
[ViewVariables(VVAccess.ReadWrite), DataField, AutoNetworkedField]
|
|
public float Damage = 10f;
|
|
}
|