sacid tanks (#30312)

This commit is contained in:
Apogee-dev
2021-08-23 17:44:52 -07:00
committed by GitHub
parent dc15daddea
commit fe350573c2
3 changed files with 37 additions and 0 deletions

View File

@@ -309,6 +309,15 @@ var/list/all_supply_groups = list("Supplies","Clothing","Security","Hospitality"
containername = "silicate tank crate"
group = "Supplies"
/datum/supply_packs/sacidtank
name = "Sulphuric acid tank"
contains = list(/obj/structure/reagent_dispensers/sacid)
cost = 8
containertype = /obj/structure/closet/crate/secure/large/reinforced/shard/empty
containername = "sulphuric acid tank crate"
group = "Supplies"
one_access = list(access_engine, access_science)
/datum/supply_packs/mining
name = "Mining equipment"
contains = list(/obj/item/weapon/pickaxe/drill,

View File

@@ -356,6 +356,34 @@
playsound(src, 'sound/effects/refill.ogg', 50, 1, -6)
return 1
/obj/structure/reagent_dispensers/sacid
name = "\improper Sulphuric Acid Dispenser"
desc = "A dispenser of sulphuric acid."
icon = 'icons/obj/objects.dmi'
icon_state = "sacidtank"
amount_per_transfer_from_this = 50
/obj/structure/reagent_dispensers/sacid/New()
. = ..()
reagents.add_reagent(SACID, 1000)
/obj/structure/reagent_dispensers/sacid/attackby(var/obj/item/W, var/mob/user)
. = ..()
if(.)
return
if(issolder(W))
var/obj/item/tool/solder/S = W
if(S.reagents.get_reagent_amount() >= S.max_fuel) // Already filled.
to_chat(user, "<span class='notice'>\The [S] is already full!</span>")
return
reagents.trans_to(S, S.max_fuel)
S.update_icon()
to_chat(user, "<span class='notice'>Solder refilled.</span>")
playsound(src, 'sound/effects/refill.ogg', 50, 1, -6)
return 1
/obj/structure/reagent_dispensers/degreaser
name = "ethanol tank"
desc = "A tank filled with ethanol, used in the degreasing of engines."

Binary file not shown.

Before

Width:  |  Height:  |  Size: 107 KiB

After

Width:  |  Height:  |  Size: 108 KiB