Fixed some more missed softcrit cases #1008
No reviewers
Labels
No labels
Area/Accessibility
Area/Admin Tooling
Area/Art
Area/Atmospherics
Area/Cargo
Area/Character / Species
Area/Chat
Area/Combat
Area/Command
Area/Database
Area/Engineering
Area/Graphics
Area/Guidebook
Area/Mapping
Area/Medical
Area/Preferences / Options
Area/Roleplay / Lore
Area/Roundflow / Antag
Area/Rules
Area/Salvage
Area/Science
Area/Security
Area/Service
Area/Silicons
bug
Changes: Audio
Changes: Map
Changes: No C#
Changes: Sprites
Changes: UI
documentation
DON'T MERGE
duplicate
good first issue
help wanted
holding to vote
Note/Port
Note/Upstream
Priority
Critical
Priority
High
Priority
Low
Priority
Normal
size/L
size/M
size/S
size/XL
size/XS
State/Approved
State/invalid
State/Merge Conflict
State/Needs Changes
State/Needs Discussion
State/Untriaged
Type/Balance Change
Type/Bugfix
Type/Documentation
Type/Enhancement
Type/Feature
Type/Question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Byrd-Station/Byrd!1008
Loading…
Reference in a new issue
No description provided.
Delete branch "QuillTheCreature/Byrd:entities/crewmon/softcritfix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Short description
This PR fixes a couple softcrit related issues where things haven't been upgraded form checking
MobState.CriticaltoMobState.SoftCritical:Crew (and command) monitors showing bad values.
The monitor hasn't been updated to work with soft crits, so the damage threshold was calculated incorrectly and was set way too high, resulting in the monitor showing "Poor" instead of "Crit".
This PR adjusts the damage threshold calculation to first check for soft crit and if that doesn't check then it falls back to normal crit values.
(Yes I'm also aware that when a creature just fell into critical the monitor still shows "Bad" until they get a couple more damage points. This is the same in upstream.)
BSOs trackers didn't notify the BSO if someone goes from alive to soft critical.
Auto Injectors did not trigger when going from alive to soft critical.
Berserker implant now prevents the user from going into soft critical while it is active.
Changeling statis now uses soft critical as critical time value.
Jumpstart heart now uses soft critical and critical checks.
Sprinting system stops sprinting when going into soft crits.
Why we need to add this
Bugfix
Media (Video/Screenshots)
Checklist
Ingame Changelog
🆑 Quill
Fixed crew monitors not calculating critical state properly for creatures with soft critto Fixed some more missed softcrit cases967d4e1bd33b609a41c296c72fa250feb932c82e268833fb3c91d48a596c@ -71,3 +71,3 @@private void OnInject(EntityUid uid, ClothingAutoInjectComponent comp, InventoryRelayedEvent<ClothingAutoInjectRelayedEvent> args){if (args.Args.NewState != MobState.Criticalif (args.Args.NewState != MobState.Critical && args.Args.NewState != MobState.SoftCritical // Byrd - Soft criticalThis (and other places) doesn't inject on change to
HardCriticalon purpose or?Oh I was under the impression that a mob always goes through all states doesn't matter how much damage they receive.
So it'd always go from alive -> soft -> hard -> dead.
But I just tested it and got from alive -> dead via the gib stick so I'll update all of those to also take hard crit into account.
LGTM. Thank you for your contribution!