Updates chemmaster

This commit is contained in:
Thalpy
2019-10-15 11:21:05 +01:00
parent 9f5b228bfe
commit 23743c8630
3 changed files with 15 additions and 1 deletions

View File

@@ -390,6 +390,11 @@
if(reagents.total_volume == 0)
return
for(var/datum/reagent/R in beaker.reagents.reagent_list)
if(!(istype(R, /datum/reagent/medicine)))
visible_message("<b>The [src]</b> beeps, \"<span class='warning'>SmartDarts are insoluble with non-medicinal compounds.\"</span>")
return
var/amount_full = 0
var/vol_part = min(reagents.total_volume, 20)
if(text2num(many))
@@ -405,12 +410,16 @@
P.name = trim("[name] SmartDart")
adjust_item_drop_location(P)
reagents.trans_to(P, 20)
P.mode=!mode
P.update_icon()
if(vol_part)
P = new /obj/item/reagent_containers/syringe/dart(drop_location())
P.name = trim("[name] SmartDart")
adjust_item_drop_location(P)
reagents.trans_to(P, vol_part)
P.mode=!mode
P.update_icon()
. = TRUE
//END CITADEL ADDITIONS

View File

@@ -307,7 +307,7 @@
var/trans = target.reagents.trans_to(src, amount_per_transfer_from_this)
to_chat(user, "<span class='notice'>You soak the [src] with [trans] units of the solution. It now contains [reagents.total_volume] units.</span>")
if (reagents.total_volume >= reagents.maximum_volume)
if (round(reagents.total_volume,1) >= reagents.maximum_volume)
mode=!mode
update_icon()

View File

@@ -81,6 +81,11 @@
<br/>
<ui-button action='createVial' params='{"many": 1}' state='{{data.bufferContents ? null : "disabled"}}' >Dispense Buffer to Hypo vials </ui-button>
<br/>
<br/>
<ui-button action='createDart' params='{"many": 0}' state='{{data.bufferContents ? null : "disabled"}}' >Create SmartDart (max 20µ)</ui-button>
<br/>
<ui-button action='createVial' params='{"many": 1}' state='{{data.bufferContents ? null : "disabled"}}' >Dispense Buffer to SmartDarts </ui-button>
<br/>
</ui-display>