mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
[MIRROR] Reworks blood deficiency backend, & some adjustments to slime blood deficiency [MDB IGNORE] (#20037)
* Reworks blood deficiency backend, & some adjustments to slime blood deficiency * Update jellypeople.dm * e * wew * https://github.com/tgstation/tgstation/pull/74246 Co-Authored-By: san7890 <the@san7890.com> * https://github.com/tgstation/tgstation/pull/74189 I was looking over https://github.com/tgstation/tgstation/pull/74143 one last time as I tend to do with merged PR's and noticed a couple of nitpicky comment formatting things that will grate on me. Sorry about this @san7890 Edit: Then even worse I found a bug. Roundstart species with blood deficiency should now get the appropriate blood pack mail goodies sent to them. I had completely forgotten about ethereals. Code is a bit cleaner too. Fixes bug, dmdoc formatting 🆑 fix: fixed blood deficiency quirk sending the wrong blood pack to roundstart species who have exotic blood /🆑 Co-Authored-By: san7890 <the@san7890.com> * https://github.com/tgstation/tgstation/pull/74229 Followup to #74189 What it says on the tin. This is the last time I will ping you on a blood-deficiency related PR, I swear! @san7890 About lizards--they have a special bloodtype that isn't compatible with the generic O- that gets sent to everyone else, which I am just now realizing. I also realized that there is never a situation when `on_species_loss` gets called without `on_species_gain` so there is no reason to call `update_mail_goodies` in each of those. I deleted the extra proc calls in `on_species_loss` to save on performance. Also cleans up some single letter vars in the lizard species file. Fixes an oversight, cleans up some code. 🆑 qol: lizards with blood deficiency now receive the type 'L' blood packs instead of an unhelpful type 'O-' one. /🆑 Co-Authored-By: san7890 <the@san7890.com> --------- Co-authored-by: Bloop <vinylspiders@gmail.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com> Co-authored-by: san7890 <the@san7890.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
var/labelled = FALSE
|
||||
fill_icon_thresholds = list(10, 20, 30, 40, 50, 60, 70, 80, 90, 100)
|
||||
|
||||
/obj/item/reagent_containers/blood/Initialize(mapload)
|
||||
/obj/item/reagent_containers/blood/Initialize(mapload, vol)
|
||||
. = ..()
|
||||
if(blood_type != null)
|
||||
reagents.add_reagent(unique_blood ? unique_blood : /datum/reagent/blood, 200, list("viruses"=null,"blood_DNA"=null,"blood_type"=blood_type,"resistances"=null,"trace_chem"=null))
|
||||
@@ -22,6 +22,12 @@
|
||||
blood_type = new_reagent.data["blood_type"]
|
||||
else if(holder.has_reagent(/datum/reagent/consumable/liquidelectricity))
|
||||
blood_type = "LE"
|
||||
else if(holder.has_reagent(/datum/reagent/lube))
|
||||
blood_type = "S"
|
||||
else if(holder.has_reagent(/datum/reagent/water))
|
||||
blood_type = "H2O"
|
||||
else if(holder.has_reagent(/datum/reagent/toxin/slimejelly))
|
||||
blood_type = "TOX"
|
||||
else
|
||||
blood_type = null
|
||||
return ..()
|
||||
@@ -35,7 +41,7 @@
|
||||
/obj/item/reagent_containers/blood/random
|
||||
icon_state = "random_bloodpack"
|
||||
|
||||
/obj/item/reagent_containers/blood/random/Initialize(mapload)
|
||||
/obj/item/reagent_containers/blood/random/Initialize(mapload, vol)
|
||||
icon_state = "bloodpack"
|
||||
blood_type = pick("A+", "A-", "B+", "B-", "O+", "O-", "L")
|
||||
return ..()
|
||||
@@ -65,6 +71,31 @@
|
||||
blood_type = "LE"
|
||||
unique_blood = /datum/reagent/consumable/liquidelectricity
|
||||
|
||||
/obj/item/reagent_containers/blood/snail
|
||||
blood_type = "S"
|
||||
unique_blood = /datum/reagent/lube
|
||||
|
||||
/obj/item/reagent_containers/blood/snail/examine()
|
||||
. = ..()
|
||||
. += span_notice("It's a bit slimy... The label indicates that this is meant for snails.")
|
||||
|
||||
/obj/item/reagent_containers/blood/podperson
|
||||
blood_type = "H2O"
|
||||
unique_blood = /datum/reagent/water
|
||||
|
||||
/obj/item/reagent_containers/blood/podperson/examine()
|
||||
. = ..()
|
||||
. += span_notice("This appears to be some very overpriced water.")
|
||||
|
||||
// for slimepeople
|
||||
/obj/item/reagent_containers/blood/toxin
|
||||
blood_type = "TOX"
|
||||
unique_blood = /datum/reagent/toxin/slimejelly
|
||||
|
||||
/obj/item/reagent_containers/blood/toxin/examine()
|
||||
. = ..()
|
||||
. += span_notice("There is a toxin warning on the label. This is for slimepeople.")
|
||||
|
||||
/obj/item/reagent_containers/blood/universal
|
||||
blood_type = "U"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user