mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Add comments to final file
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
idle_power_usage = 20
|
idle_power_usage = 20
|
||||||
var/obj/item/weapon/reagent_containers/beaker = null
|
var/obj/item/weapon/reagent_containers/beaker = null
|
||||||
var/obj/item/weapon/storage/pill_bottle/loaded_pill_bottle = null
|
var/obj/item/weapon/storage/pill_bottle/loaded_pill_bottle = null
|
||||||
var/list/pill_bottle_wrappers = null
|
var/list/pill_bottle_wrappers = null //CHOMPEdit - Enable customizing pill bottle type
|
||||||
var/mode = 0
|
var/mode = 0
|
||||||
var/condi = 0
|
var/condi = 0
|
||||||
var/useramount = 15 // Last used amount
|
var/useramount = 15 // Last used amount
|
||||||
@@ -161,6 +161,7 @@
|
|||||||
|
|
||||||
arguments["analysis"] = result
|
arguments["analysis"] = result
|
||||||
tgui_modal_message(src, id, "", null, arguments)
|
tgui_modal_message(src, id, "", null, arguments)
|
||||||
|
// CHOMPEdit Start - Enable changing pill bottle style
|
||||||
if("change_pill_bottle_style")
|
if("change_pill_bottle_style")
|
||||||
if(!loaded_pill_bottle)
|
if(!loaded_pill_bottle)
|
||||||
return
|
return
|
||||||
@@ -180,6 +181,7 @@
|
|||||||
)
|
)
|
||||||
var/current = pill_bottle_wrappers[loaded_pill_bottle.wrapper_color] || "Default"
|
var/current = pill_bottle_wrappers[loaded_pill_bottle.wrapper_color] || "Default"
|
||||||
tgui_modal_choice(src, id, "Please select a pill bottle wrapper:", null, arguments, current, pill_bottle_wrappers)
|
tgui_modal_choice(src, id, "Please select a pill bottle wrapper:", null, arguments, current, pill_bottle_wrappers)
|
||||||
|
// CHOMPEdit End
|
||||||
if("addcustom")
|
if("addcustom")
|
||||||
if(!beaker || !beaker.reagents.total_volume)
|
if(!beaker || !beaker.reagents.total_volume)
|
||||||
return
|
return
|
||||||
@@ -252,6 +254,7 @@
|
|||||||
if(TGUI_MODAL_ANSWER)
|
if(TGUI_MODAL_ANSWER)
|
||||||
var/answer = params["answer"]
|
var/answer = params["answer"]
|
||||||
switch(id)
|
switch(id)
|
||||||
|
// CHOMPEdit Start - Enable changing pill bottle style
|
||||||
if("change_pill_bottle_style")
|
if("change_pill_bottle_style")
|
||||||
if(!pill_bottle_wrappers || !loaded_pill_bottle) // wat?
|
if(!pill_bottle_wrappers || !loaded_pill_bottle) // wat?
|
||||||
return
|
return
|
||||||
@@ -267,6 +270,7 @@
|
|||||||
else
|
else
|
||||||
loaded_pill_bottle.wrapper_color = null
|
loaded_pill_bottle.wrapper_color = null
|
||||||
loaded_pill_bottle.cut_overlays()
|
loaded_pill_bottle.cut_overlays()
|
||||||
|
// CHOMPEdit End
|
||||||
if("addcustom")
|
if("addcustom")
|
||||||
var/amount = isgoodnumber(text2num(answer))
|
var/amount = isgoodnumber(text2num(answer))
|
||||||
if(!amount || !arguments["id"])
|
if(!amount || !arguments["id"])
|
||||||
|
|||||||
Reference in New Issue
Block a user