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

Do Not Revive #4012

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
24 changes: 24 additions & 0 deletions monkestation/code/datums/components/donotrevive.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* donotrevive.dm: For when they need to STAY dead.
*
* When someone dies with this, it calls ghostize with can_reenter_body false, so theyre out of their body for good. as if they ghosted/went DNR automatically.
* Medbay hates him! See how he wastes doctors time with this one simple trick!
*
*/
/datum/component/donotrevive
dupe_mode = COMPONENT_DUPE_UNIQUE

/datum/component/donotrevive/Initialize()
if(!isliving(parent))
return COMPONENT_INCOMPATIBLE

/datum/component/donotrevive/RegisterWithParent()
RegisterSignal(parent, COMSIG_LIVING_DEATH, PROC_REF(check_death))

/datum/component/donotrevive/UnregisterFromParent(datum/target)
UnregisterSignal(parent, COMSIG_LIVING_DEATH)

/datum/component/donotrevive/proc/check_death(mob/living/source)
source.ghostize(FALSE) //Get em outta here! FALSE sets can_reenter_corpse false, so this, does it SO MUCH simpler than i expected.
source.mind = null //And get em outta here forever!
source.med_hud_set_status() //And let them know hes outta here!
14 changes: 14 additions & 0 deletions monkestation/code/datums/quirks/negative_quirks.dm
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,17 @@
*/
/datum/quirk/tunnel_vision/remove()
quirk_holder.remove_fov_trait("tunnel vision quirk")

/datum/quirk/dnr
name = "Do Not Revive"
desc = "You instantly become soulless upon death. Make your only shot count."
value = -8
icon = FA_ICON_HEART
gain_text = span_danger("You have one chance left.")
lose_text = span_notice("Your connection to this mortal plane strengthens!")
medical_record_text = "The connection between the patient's soul and body is incredibly weak, and attempts to resuscitate after death will fail. Ensure hightened care."

/datum/quirk/dnr/add()
quirk_holder.AddComponent(/datum/component/donotrevive)

// no remove for you, RemoveComponent doesnt exist
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -5854,6 +5854,7 @@
#include "monkestation\code\datums\components\carbon_sprint.dm"
#include "monkestation\code\datums\components\charge_adjuster.dm"
#include "monkestation\code\datums\components\crafting.dm"
#include "monkestation\code\datums\components\donotrevive.dm"
#include "monkestation\code\datums\components\irradiated.dm"
#include "monkestation\code\datums\components\lock_on_cursor.dm"
#include "monkestation\code\datums\components\multi_hit.dm"
Expand Down
Loading