/obj/item/reagent_containers/chem_pack name = "intravenous medicine bag" desc = "A plastic pressure bag, or 'chem pack', for IV administration of drugs. It is fitted with a thermosealing strip." icon = 'icons/obj/bloodpack.dmi' icon_state = "chempack" volume = 100 reagent_flags = OPENCONTAINER spillable = TRUE obj_flags = UNIQUE_RENAME resistance_flags = ACID_PROOF var/sealed = FALSE /obj/item/reagent_containers/chem_pack/on_reagent_change(changetype) update_icon() /obj/item/reagent_containers/chem_pack/update_icon() cut_overlays() var/v = min(round(reagents.total_volume / volume * 10), 10) if(v > 0) var/mutable_appearance/filling = mutable_appearance('icons/obj/reagentfillings.dmi', "chempack1") filling.icon_state = "chempack[v]" filling.color = mix_color_from_reagents(reagents.reagent_list) add_overlay(filling) /obj/item/reagent_containers/chem_pack/AltClick(mob/living/user) if(user.canUseTopic(src, BE_CLOSE, NO_DEXTERY) && !sealed) if(iscarbon(user) && (HAS_TRAIT(user, TRAIT_CLUMSY) && prob(50))) to_chat(user, "Uh... whoops! You accidentally spill the content of the bag onto yourself.") SplashReagents(user) return else reagents.reagents_holder_flags &= ~(OPENCONTAINER) reagents.reagents_holder_flags |= (DRAWABLE|INJECTABLE) spillable = FALSE sealed = TRUE to_chat(user, "You seal the bag.") /obj/item/reagent_containers/chem_pack/examine() . = ..() if(sealed) . += "The bag is sealed shut." else . += "Alt-click to seal it." /obj/item/reagent_containers/chem_pack/attack_self(mob/user) if(sealed) return ..()