Skip to content

Commit

Permalink
TGS Test Merge (#6889)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordme authored and lordme committed Nov 27, 2024
2 parents 175cce8 + 5a0248a commit 9c4a553
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 80 deletions.
1 change: 0 additions & 1 deletion citadel.dme
Original file line number Diff line number Diff line change
Expand Up @@ -4695,7 +4695,6 @@
#include "code\modules\reagents\machinery\reagent_dispenser\water.dm"
#include "code\modules\reagents\machinery\reagent_dispenser\watercooler.dm"
#include "code\modules\reagents\reagent_containers\blood_pack.dm"
#include "code\modules\reagents\reagent_containers\blood_pack_vr.dm"
#include "code\modules\reagents\reagent_containers\borghydro.dm"
#include "code\modules\reagents\reagent_containers\cartridge.dm"
#include "code\modules\reagents\reagent_containers\dropper.dm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/datum/reagent/blood/affect_ingest(mob/living/carbon/M, alien, removed)

var/effective_dose = dose
if(issmall(M))
if(issmall(M))
effective_dose *= 2

var/nutritionvalue = 10 //for reference, normal nutrition has a value of about 30.
Expand Down Expand Up @@ -76,9 +76,10 @@
M.add_chemical_effect(CE_BLOODRESTORE, 8 * removed) // Same rating as taking iron
else
M.adjust_nutrition(nutritionvalue * removed * volume_mod)
M.heal_organ_damage(0.2 * removed * volume_mod, 0) // Heal brute slightly like normal nutrition. More 'effective' blood means more usable material.
M.adjust_hydration(2 * removed) // Still has some water in the form of plasma. Hydrates less than a normal drink.
M.add_chemical_effect(CE_BLOODRESTORE, 4 * removed) //same rating as eating nutriment
if(effective_dose >= 20 && prob(10))
M.vomit(FALSE, FALSE) //Drinking blood makes you vomit, due to the high iron content and unpleasant consistency

if(data && data["virus2"])
var/list/vlist = data["virus2"]
Expand Down
84 changes: 84 additions & 0 deletions code/modules/reagents/reagent_containers/blood_pack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@
name = "[base_name] ([label_text])"
desc = "[base_desc] It is labeled \"[label_text]\"."

/obj/item/reagent_containers/blood/attack_mob(mob/target, mob/user, clickchain_flags, list/params, mult, target_zone, intent)
if(user.a_intent == INTENT_HARM)
return ..()
. = CLICKCHAIN_DO_NOT_PROPAGATE
standard_feed_mob(user, target)

/obj/item/reagent_containers/blood/self_feed_message(var/mob/user)
to_chat(user, "<span class='notice'>You drink from \the [src]</span>")

/obj/item/reagent_containers/blood/APlus
blood_type = "A+"

Expand Down Expand Up @@ -107,3 +116,78 @@
desc = "Seems pretty useless... Maybe if there were a way to fill it?"
icon_state = "empty"
item_state = "bloodpack_empty"

/obj/item/reagent_containers/blood/attack_self(mob/user, datum/event_args/actor/actor)
. = ..()
if(.)
return
if(istype(user, /mob/living/carbon/human))
var/mob/living/carbon/human/human_user = user
if(human_user.species.is_vampire)
if(user.a_intent == INTENT_HARM)
if(reagents.total_volume && volume)
switch(reagents.get_master_reagent_id())
if("blood")
user.show_message("<span class='warning'>You sink your fangs into \the [src] and suck the blood out of it!</span>")
user.visible_message("<font color='red'>[user] sinks their fangs into \the [src] and drains it!</font>")
standard_feed_mob(user, user)
update_icon()
if(!bitten_state)
desc += "<font color='red'> It has two circular puncture marks in it.</font>"
bitten_state = TRUE
return
else
user.show_message("<span class='warning'>You take a look at \the [src] and notice that it is not filled with blood!</span>")
return
else
user.show_message("<span class='warning'>You take a look at \the [src] and notice it has nothing in it!</span>")
return
else
return

/obj/item/reagent_containers/blood/prelabeled
name = "IV Pack"
desc = "Holds liquids used for transfusion. This one's label seems to be hardprinted."

/obj/item/reagent_containers/blood/prelabeled/update_iv_label()
return

/obj/item/reagent_containers/blood/prelabeled/APlus
name = "IV Pack (A+)"
desc = "Holds liquids used for transfusion. This one's label seems to be hardprinted. This one is labeled A+."
blood_type = "A+"

/obj/item/reagent_containers/blood/prelabeled/AMinus
name = "IV Pack (A-)"
desc = "Holds liquids used for transfusion. This one's label seems to be hardprinted. This one is labeled A-."
blood_type = "A-"

/obj/item/reagent_containers/blood/prelabeled/BPlus
name = "IV Pack (B+)"
desc = "Holds liquids used for transfusion. This one's label seems to be hardprinted. This one is labeled B+."
blood_type = "B+"

/obj/item/reagent_containers/blood/prelabeled/BMinus
name = "IV Pack (B-)"
desc = "Holds liquids used for transfusion. This one's label seems to be hardprinted. This one is labeled B-."
blood_type = "B-"

/obj/item/reagent_containers/blood/prelabeled/ABPlus
name = "IV Pack (AB+)"
desc = "Holds liquids used for transfusion. This one's label seems to be hardprinted. This one is labeled AB+."
blood_type = "AB+"

/obj/item/reagent_containers/blood/prelabeled/ABMinus
name = "IV Pack (AB-)"
desc = "Holds liquids used for transfusion. This one's label seems to be hardprinted. This one is labeled AB-."
blood_type = "AB-"

/obj/item/reagent_containers/blood/prelabeled/OPlus
name = "IV Pack (O+)"
desc = "Holds liquids used for transfusion. This one's label seems to be hardprinted. This one is labeled O+."
blood_type = "O+"

/obj/item/reagent_containers/blood/prelabeled/OMinus
name = "IV Pack (O-)"
desc = "Holds liquids used for transfusion. This one's label seems to be hardprinted. This one is labeled O-."
blood_type = "O-"
77 changes: 0 additions & 77 deletions code/modules/reagents/reagent_containers/blood_pack_vr.dm

This file was deleted.

0 comments on commit 9c4a553

Please sign in to comment.