mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 02:57:48 +01:00
Merge branch 'master' of https://github.com/ParadiseSS13/Paradise into ContainerTypeRefactor
This commit is contained in:
@@ -594,6 +594,11 @@ var/const/INGEST = 2
|
||||
|
||||
return 1
|
||||
|
||||
/datum/reagents/proc/check_and_add(reagent, check, add)
|
||||
if(get_reagent_amount(reagent) < check)
|
||||
add_reagent(reagent, add)
|
||||
return TRUE
|
||||
|
||||
/datum/reagents/proc/remove_reagent(reagent, amount, safety)//Added a safety check for the trans_id_to
|
||||
|
||||
if(!isnum(amount))
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
/obj/machinery/chem_master/New()
|
||||
create_reagents(100)
|
||||
overlays += "waitlight"
|
||||
update_icon()
|
||||
|
||||
/obj/machinery/chem_master/ex_act(severity)
|
||||
switch(severity)
|
||||
@@ -32,6 +32,12 @@
|
||||
qdel(src)
|
||||
return
|
||||
|
||||
/obj/machinery/chem_master/update_icon()
|
||||
overlays.Cut()
|
||||
icon_state = "mixer[beaker ? "1" : "0"][powered() ? "" : "_nopower"]"
|
||||
if(powered())
|
||||
overlays += "waitlight"
|
||||
|
||||
/obj/machinery/chem_master/blob_act()
|
||||
if(prob(50))
|
||||
qdel(src)
|
||||
@@ -57,7 +63,7 @@
|
||||
B.forceMove(src)
|
||||
to_chat(user, "<span class='notice'>You add the beaker to the machine!</span>")
|
||||
SSnanoui.update_uis(src)
|
||||
icon_state = "mixer1"
|
||||
update_icon()
|
||||
|
||||
else if(istype(B, /obj/item/storage/pill_bottle))
|
||||
|
||||
@@ -184,7 +190,7 @@
|
||||
beaker.forceMove(get_turf(src))
|
||||
beaker = null
|
||||
reagents.clear_reagents()
|
||||
icon_state = "mixer0"
|
||||
update_icon()
|
||||
else if(href_list["createpill"] || href_list["createpill_multiple"])
|
||||
if(!condi)
|
||||
var/count = 1
|
||||
|
||||
Reference in New Issue
Block a user