mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Replaced codersprite for bloodpack with new ones.
Also now sprite changes depending on how filed bag is.
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
name = "BloodPack"
|
name = "BloodPack"
|
||||||
desc = "Contains blood used for transfusion."
|
desc = "Contains blood used for transfusion."
|
||||||
icon = 'icons/obj/bloodpack.dmi'
|
icon = 'icons/obj/bloodpack.dmi'
|
||||||
|
icon_state = "empty"
|
||||||
volume = 200
|
volume = 200
|
||||||
|
|
||||||
var/blood_type = null
|
var/blood_type = null
|
||||||
@@ -11,6 +12,17 @@
|
|||||||
if(blood_type != null)
|
if(blood_type != null)
|
||||||
name = "BloodPack [blood_type]"
|
name = "BloodPack [blood_type]"
|
||||||
reagents.add_reagent("blood", 200, list("donor"=null,"viruses"=null,"blood_DNA"=null,"blood_type"=blood_type,"resistances"=null,"trace_chem"=null))
|
reagents.add_reagent("blood", 200, list("donor"=null,"viruses"=null,"blood_DNA"=null,"blood_type"=blood_type,"resistances"=null,"trace_chem"=null))
|
||||||
|
update_icon()
|
||||||
|
|
||||||
|
on_reagent_change()
|
||||||
|
update_icon()
|
||||||
|
|
||||||
|
update_icon()
|
||||||
|
var/percent = round((reagents.total_volume / volume) * 100)
|
||||||
|
switch(percent)
|
||||||
|
if(0 to 9) icon_state = "empty"
|
||||||
|
if(10 to 50) icon_state = "half"
|
||||||
|
if(51 to INFINITY) icon_state = "full"
|
||||||
|
|
||||||
/obj/item/weapon/reagent_containers/blood/APlus
|
/obj/item/weapon/reagent_containers/blood/APlus
|
||||||
blood_type = "A+"
|
blood_type = "A+"
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 901 B After Width: | Height: | Size: 3.5 KiB |
Reference in New Issue
Block a user