Virus timers

This commit is contained in:
Guti
2025-01-04 06:57:41 +01:00
parent c7a4f05bbf
commit 2d42fbc61b
14 changed files with 68 additions and 72 deletions
+13 -1
View File
@@ -119,7 +119,19 @@ SUBSYSTEM_DEF(supply)
EC.contents[EC.contents.len]["quantity"] = cashmoney.worth
EC.value += EC.contents[EC.contents.len]["value"]
if(istype(A, /obj/item/reagent_containers/glass/bottle/vaccine))
var/obj/item/reagent_containers/glass/bottle/vaccine/sale_bottle = A
if(istype(CR, /obj/structure/closet/crate/freezer))
EC.contents = list(
"error" = "Error: Product was improperly packaged. Send conents in freezer crate to preserver contents for transport."
)
else if(sale_bottle.reagents.reagent_list.len != 1 || sale_bottle.reagents.get_reagent_amount(REAGENT_ID_VACCINE) < sale_bottle.volume)
EC.contents = list(
"error" = "Error: Tainted product in batch. Was opened, contaminated, or was full. Payment rendered null under terms of agreement."
)
else
EC.contents[EC.contents.len]["value"] = 5
EC.value += EC.contents[EC.contents.len]["value"]
// Make a log of it, but it wasn't shipped properly, and so isn't worth anything
else