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

Gives everyone to drink from blood bags(blood is still toxic to non-v… #6889

Merged
merged 2 commits into from
Nov 28, 2024
Merged
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
1 change: 0 additions & 1 deletion citadel.dme
Original file line number Diff line number Diff line change
Expand Up @@ -4688,7 +4688,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 @@ -79,6 +79,8 @@
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)
TheLordME marked this conversation as resolved.
Show resolved Hide resolved
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
87 changes: 87 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,81 @@
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)
var/remove_volume = volume* 0.1 //10% of what the bloodpack can hold.
var/reagent_to_remove = reagents.get_master_reagent_id()
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>")
user.nutrition += remove_volume*4
reagents.remove_reagent(reagent_to_remove, remove_volume)
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.

Loading