Skip to content

Commit

Permalink
boberthastofindnewstufftocomplain
Browse files Browse the repository at this point in the history
  • Loading branch information
Merrgear committed Aug 14, 2024
1 parent 69cf9c2 commit 23a6b58
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions code/modules/cm_marines/overwatch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@
if(DEAD)
mob_state = "Dead"

if(mob_state == "Conscious" && (locate(/datum/effects/crit) in marine_human.effects_list))
mob_state = "Incapacitated"

if(!istype(marine_human.head, /obj/item/clothing/head/helmet/marine))
has_helmet = FALSE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

if(stat != DEAD) //the dead get zero fullscreens

if(stat == UNCONSCIOUS)
if(stat == UNCONSCIOUS || (locate(/datum/effects/crit) in effects_list))
var/severity = 0
switch(health)
if(-20 to -10) severity = 1
Expand Down
3 changes: 2 additions & 1 deletion tgui/packages/tgui/interfaces/OverwatchConsole.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -370,12 +370,13 @@ const SquadMonitor = (props) => {

let determine_status_color = (status) => {
let conscious = status.includes('Conscious');
let incapacitated = status.includes('Incapacitated');
let unconscious = status.includes('Unconscious');

let state_color = 'red';
if (conscious) {
state_color = 'green';
} else if (unconscious) {
} else if (incapacitated || unconscious) {
state_color = 'yellow';
}
return state_color;
Expand Down

0 comments on commit 23a6b58

Please sign in to comment.