Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IDB IGNORE] [MDB IGNORE] HUD datum cleanup. #3114

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
fc9ef41
Adding get_max_health() to mobs.
MistakeNot4892 Jul 24, 2023
74de147
Condensing updatehealth().
MistakeNot4892 Jul 24, 2023
1b02408
Removing unneeded health var setting.
MistakeNot4892 Jul 24, 2023
c2d4bf4
mob health > current_health.
MistakeNot4892 Jul 24, 2023
545294f
Post-rebase update.
MistakeNot4892 Aug 12, 2023
4eada00
updatehealth() => update_health()
MistakeNot4892 Aug 12, 2023
dead6e4
Adding update health skips to human organ init.
MistakeNot4892 Aug 12, 2023
97f8141
Reviewing calls to update_health().
MistakeNot4892 Aug 12, 2023
1fb2b67
Wrapping update_health() with adjustFooLoss() where possible.
MistakeNot4892 Aug 12, 2023
4b05e1a
Removing hivebot telebeacon and preventing drones from sparking in qdel.
MistakeNot4892 Aug 23, 2023
6b6aa24
Fixing runtimes in /mob/living creation/qdel.
MistakeNot4892 Aug 30, 2023
9623a75
Splitting up borer Life() proc.
MistakeNot4892 Jul 1, 2023
f725f56
Splitting up Ascent nymph Life() proc.
MistakeNot4892 Jul 1, 2023
f547224
Removing construct Life() overrides.
MistakeNot4892 Jul 2, 2023
da63fed
Collapsed deity life proc.
MistakeNot4892 Jul 2, 2023
0384393
Collapsing other Life() overrides.
MistakeNot4892 Jul 2, 2023
6384fed
Tweaking robot life() overrides.
MistakeNot4892 Jul 2, 2023
261f335
Collapsing more life overrides.
MistakeNot4892 Jul 2, 2023
ef668e9
Slime life override broken up.
MistakeNot4892 Jul 2, 2023
a7a75e8
Collapsing carbon/Life() into living/Life().
MistakeNot4892 Jul 2, 2023
cb2e54c
Dismantling simple_animal Life().
MistakeNot4892 Jul 2, 2023
2ff07e8
Dismantling exosuit Life().
MistakeNot4892 Jul 2, 2023
0b69a97
Further refinement of various life procs and processes.
MistakeNot4892 Jul 2, 2023
d7a3463
Cleaning up, condensing blinded status.
MistakeNot4892 Jul 2, 2023
0f33314
Dismantling human life().
MistakeNot4892 Jul 2, 2023
905a73d
Further refining status updates.
MistakeNot4892 Jul 2, 2023
a44a017
Dismantling pAI Life().
MistakeNot4892 Jul 2, 2023
817450b
Dismantling robot life().
MistakeNot4892 Jul 2, 2023
5640831
Dismantling AI life().
MistakeNot4892 Jul 2, 2023
a15e1be
Reverting some status changes.
MistakeNot4892 Jul 2, 2023
c536508
Post-rebase update.
MistakeNot4892 Jul 2, 2023
df08fd4
Condensed HUD rewrite commit, do not merge.
MistakeNot4892 Jun 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Dismantling human life().
  • Loading branch information
MistakeNot4892 committed Nov 3, 2023
commit 0f333145866e9dece61ae065edf8709279cda738
34 changes: 12 additions & 22 deletions code/modules/mob/living/carbon/human/life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,6 @@
handle_pain()
handle_stamina()

/mob/living/carbon/human/Life()

. = ..()
if(!.)
return

fire_alert = 0 //Reset this here, because both breathe() and handle_environment() have a chance to set it.

if(life_tick%30==15)
hud_updateflag = 1022

voice = GetVoice()

if(!handle_some_updates())
return //We go ahead and process them 5 times for HUD images and other stuff though.

//Update our name based on whether our face is obscured/disfigured
SetName(get_visible_name())

/mob/living/carbon/human/get_stamina()
return stamina

Expand Down Expand Up @@ -384,10 +365,16 @@
return TRUE

/mob/living/carbon/human/handle_regular_status_updates()
if(!handle_some_updates())
return 0

if(status_flags & GODMODE) return 0
voice = GetVoice()
SetName(get_visible_name())

. = ..()
if(!.)
return

if(status_flags & GODMODE)
return FALSE

update_health() // TODO: unify with parent call, Life() PR
//SSD check, if a logged player is awake put them back to sleep!
Expand Down Expand Up @@ -468,6 +455,9 @@
return 1

/mob/living/carbon/human/handle_regular_hud_updates()
fire_alert = 0 //Reset this here, because both breathe() and handle_environment() have a chance to set it.
if(life_tick%30==15)
hud_updateflag = 1022
if(hud_updateflag) // update our mob's hud overlays, AKA what others see flaoting above our head
handle_hud_list()
. = ..()
Expand Down
3 changes: 3 additions & 0 deletions code/modules/mob/living/life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@

SHOULD_CALL_PARENT(TRUE)

if(!handle_some_updates())
return FALSE

// Godmode just skips most of this processing.
if(status_flags & GODMODE)
set_stat(CONSCIOUS)
Expand Down