]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Make throwable star damage stamina (#23527)
authorDakamakat <52600490+dakamakat@users.noreply.github.com>
Sun, 14 Jan 2024 09:10:50 +0000 (12:10 +0300)
committerGitHub <noreply@github.com>
Sun, 14 Jan 2024 09:10:50 +0000 (20:10 +1100)
commitb80f7eed6ee05c9e4963477369cffaa44dda19e8
treec72d17d1e015cafe20164f72cf7339ab440d942e
parentd1d11d09c7a2698fa723c11a910258f69c3d7b9e
Make throwable star damage stamina (#23527)

* 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>
Content.Shared/Damage/Components/StaminaDamageOnEmbedComponent.cs [new file with mode: 0644]
Content.Shared/Damage/Systems/StaminaSystem.cs
Content.Shared/Projectiles/EmbedEvent.cs [new file with mode: 0644]
Content.Shared/Projectiles/ProjectileEmbedEvent.cs
Content.Shared/Projectiles/SharedProjectileSystem.cs
Resources/Prototypes/Entities/Objects/Weapons/Throwable/throwing_stars.yml