mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-04 14:33:58 +00:00
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
59 lines
2.4 KiB
Plaintext
59 lines
2.4 KiB
Plaintext
/obj/item/reagent_containers/blood/attack_self(mob/living/user as mob)
|
|
if(user.a_intent == I_HURT)
|
|
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(REAGENT_ID_BLOOD)
|
|
user.show_message(span_warning("You sink your fangs into \the [src] and suck the blood out of it!"))
|
|
user.visible_message(span_red("[user] sinks their fangs into \the [src] and drains it!"))
|
|
user.adjust_nutrition(remove_volume*5)
|
|
reagents.remove_reagent(reagent_to_remove, remove_volume)
|
|
update_icon()
|
|
return
|
|
else
|
|
user.show_message(span_warning("You take a look at \the [src] and notice that it is not filled with blood!"))
|
|
return
|
|
else
|
|
user.show_message(span_warning("You take a look at \the [src] and notice it has nothing in it!"))
|
|
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/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-"
|