adds blindness, coldblooded, flimsy, tough

see title
This commit is contained in:
Burns-The-Potatos
2020-09-16 17:40:17 -07:00
parent 456f1f4482
commit 3db4913b12
3 changed files with 67 additions and 2 deletions

View File

@@ -162,7 +162,9 @@
#define TRAIT_THERMAL_VISION "thermal_vision"
#define TRAIT_CUM_PLUS "cum_plus"
#define TRAIT_NEVER_CLONE "donotclone"
#define TRAIT_COLDBLOODED "coldblooded" // Your body is literal room temperature. Does not make you immune to the temp.
#define TRAIT_FLIMSY "flimsy" //you have 20% less maxhealth
#define TRAIT_TOUGH "tough" //you have 10% more maxhealth
// common trait sources
#define TRAIT_GENERIC "generic"

View File

@@ -204,6 +204,25 @@
var/mob/living/M = quirk_holder
M.blood_ratio = 1
/datum/quirk/tough
name = "Tough"
desc = "Your body is abnormally enduring and can take 10% more damage."
value = 2
mob_trait = TRAIT_TOUGH
medical_record_text = "Patient has an abnormally high capacity for injury."
gain_text = "<span class='notice'>You feel very sturdy.</span>"
lose_text = "<span class='notice'>You feel less sturdy.</span>"
var/healthchange = 0
/datum/quirk/tough/add()
var/mob/living/carbon/human/H = quirk_holder
healthchange = H.maxHealth * 0.1
H.maxHealth = H.maxHealth * 1.1
/datum/quirk/tough/remove()
var/mob/living/carbon/human/H = quirk_holder
H.maxHealth += healthchange
/datum/quirk/draconicspeaker
name = "Draconic speaker"
desc = "Due to your time spent around lizards, you can speak Draconic!"

View File

@@ -373,4 +373,48 @@
desc = "You have filed a Do Not Clone order, stating that you do not wish to be cloned. You can still be revived by other means."
value = -2
mob_trait = TRAIT_NEVER_CLONE
medical_record_text = "Patient has a DNC (Do not clone) order on file, and cannot be cloned as a result."
medical_record_text = "Patient has a DNC (Do not clone) order on file, and cannot be cloned as a result."
//Port from Citadel
/datum/quirk/blindness
name = "Blind"
desc = "You are completely blind, nothing can counteract this."
value = -4
gain_text = "<span class='danger'>You can't see anything.</span>"
lose_text = "<span class='notice'>You miraculously gain back your vision.</span>"
medical_record_text = "Patient has permanent blindness."
/datum/quirk/blindness/add()
quirk_holder.become_blind(ROUNDSTART_TRAIT)
/datum/quirk/blindness/remove()
quirk_holder?.cure_blind(ROUNDSTART_TRAIT)
//Port from Citadel
/datum/quirk/coldblooded
name = "Cold-blooded"
desc = "Your body doesn't create its own internal heat, requiring external heat regulation."
value = -2
medical_record_text = "Patient is ectothermic."
mob_trait = TRAIT_COLDBLOODED
gain_text = "<span class='notice'>You feel cold-blooded.</span>"
lose_text = "<span class='notice'>You feel more warm-blooded.</span>"
/datum/quirk/flimsy
name = "Flimsy"
desc = "Your body is a little more fragile then most, decreasing total health by 20%."
value = -2
medical_record_text = "Patient has abnormally low capacity for injury."
mob_trait = TRAIT_FLIMSY
gain_text = "<span class='notice'>You feel like you could break with a single hit."
lose_text = "<span class='notice'>You feel more durable."
var/healthchange = 0
/datum/quirk/flimsy/add()
var/mob/living/carbon/human/H = quirk_holder
healthchange = H.maxHealth * 0.2
H.maxHealth = H.maxHealth * 0.8
/datum/quirk/flimsy/remove() //how do admins even remove traits?
var/mob/living/carbon/human/H = quirk_holder
H.maxHealth += healthchange