Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Adds nugget and corpse and lets nuggets move #851

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
33 changes: 0 additions & 33 deletions code/datums/traits/negative.dm
Original file line number Diff line number Diff line change
Expand Up @@ -424,39 +424,6 @@
to_chat(quirk_holder, "<span class='boldannounce'>Your [slot_string] has been replaced with a surplus prosthetic. It is fragile and will easily come apart under duress. Additionally, \
you need to use a welding tool and cables to repair it, instead of bruise packs and ointment.</span>")

/datum/quirk/nugget
name = "Nugget"
desc = "An accident caused you to lose ALL of your limbs. There's no way your insurance payed for all those prosthetics!"
value = -1
var/slot_string = "limb"

/datum/quirk/nugget/on_spawn()
var/mob/living/carbon/human/nuggeted = quirk_holder
for(var/X in nuggeted.bodyparts)
var/obj/item/bodypart/BP = X
if(BP.body_part != HEAD && BP.body_part != CHEST)
if(BP.dismemberable)
BP.dismember()
if(nuggeted.buckled)
nuggeted.buckled.unbuckle_mob(nuggeted)
nuggeted.suppress_bloodloss(1800) //stop them from bleeding out
nuggeted.update_body_parts(TRUE)

/datum/quirk/nugget/post_add()
to_chat(quirk_holder, "<span class='boldannounce'>What cruel twist of fate has led to you arriving aboard a space station with no limbs?")

/datum/quirk/corpse
name = "Corpse"
desc = "Something terrible happened on the shuttle to the station, you arrive dead as a doornail!"
value = -1

/datum/quirk/corpse/post_add()
to_chat(quirk_holder, pick("<span class='boldannounce'>F", "<span class='boldannounce'>RIP", "<span class='boldannounce'>RIP in peace", "<span class='boldannounce'>RIP in pepperoni", "<span class='boldannounce'>You were THIS close to surviving"))
quirk_holder.adjustFireLoss(200)
quirk_holder.adjustBruteLoss(200)
quirk_holder.adjustToxLoss(200)
quirk_holder.adjustCloneLoss(200)

/datum/quirk/pushover
name = "Pushover"
desc = "Your first instinct is always to let people push you around. Resisting out of grabs will take conscious effort."
Expand Down
29 changes: 29 additions & 0 deletions monkestation/code/datums/traits/negative.dm
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,32 @@
message = replacetext(message, "r", "w")
message = replacetext(message, "l", "w")
speech_args[SPEECH_MESSAGE] = message

/datum/quirk/nugget
name = "Nugget"
desc = "An accident caused you to lose ALL of your limbs. There's no way your insurance payed for all those prosthetics!"
value = -1
var/slot_string = "limb"

/datum/quirk/nugget/on_spawn()
var/mob/living/carbon/human/nuggeted = quirk_holder
for(var/obj/item/bodypart/BP in nuggeted.bodyparts)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd personally prefer if this was called something like bodypart and not BP, same reasoning as single letter variables

Copy link
Author

@KoboldCommando KoboldCommando Jan 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, fixed

if(BP.body_part != HEAD && BP.body_part != CHEST)
if(BP.dismemberable)
BP.dismember()
if(nuggeted.buckled)
nuggeted.buckled.unbuckle_mob(nuggeted)
nuggeted.suppress_bloodloss(1800) //stop them from bleeding out
nuggeted.update_body_parts(TRUE)

/datum/quirk/nugget/post_add()
to_chat(quirk_holder, "<span class='boldannounce'>What cruel twist of fate has led to you arriving aboard a space station with no limbs?")

/datum/quirk/corpse
name = "Corpse"
desc = "Something terrible happened on the shuttle to the station, you arrive dead as a doornail!"
value = -1

/datum/quirk/corpse/post_add()
to_chat(quirk_holder, pick("<span class='boldannounce'>F", "<span class='boldannounce'>RIP", "<span class='boldannounce'>RIP in peace", "<span class='boldannounce'>RIP in pepperoni", "<span class='boldannounce'>You were THIS close to surviving"))
quirk_holder.adjustBruteLoss(300)