mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
Reagent sleepers!
This commit is contained in:
@@ -28,11 +28,11 @@
|
||||
|
||||
/obj/machinery/reagent_sleeper/Initialize()
|
||||
. = ..()
|
||||
create_reagents(300)
|
||||
create_reagents(300, NO_REACT)
|
||||
occupant_typecache = GLOB.typecache_living
|
||||
update_icon()
|
||||
reset_chem_buttons()
|
||||
add_inital_chems()
|
||||
//add_inital_chems()
|
||||
|
||||
/obj/machinery/reagent_sleeper/Destroy()
|
||||
var/buffer = new /obj/item/reagent_containers/sleeper_buffer(loc)
|
||||
@@ -106,7 +106,7 @@
|
||||
else
|
||||
SB.reagents.trans_to(reagents, SB.reagents.total_volume)
|
||||
visible_message("[user] adds as much as they can to the [src] from the [SB].")
|
||||
return
|
||||
return
|
||||
|
||||
/obj/machinery/reagent_sleeper/MouseDrop_T(mob/target, mob/user)
|
||||
if(user.stat || user.lying || !Adjacent(user) || !user.Adjacent(target) || !iscarbon(target) || !user.IsAdvancedToolUser())
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
name = "Sleeper buffer container"
|
||||
desc = "A closed container for insertion in the Medical Sleepers."
|
||||
volume = 1200
|
||||
reagent_flags = OPENCONTAINER
|
||||
reagent_flags = NO_REACT
|
||||
spillable = TRUE
|
||||
resistance_flags = ACID_PROOF
|
||||
amount_per_transfer_from_this = 0
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -46,24 +46,29 @@
|
||||
</ui-section>
|
||||
<ui-section label='Inject'>
|
||||
{{#each data.synthchems}}
|
||||
<span>{{name}} </span>
|
||||
{{if data.efficiency >= 3}}
|
||||
<span>{{name}}: {{vol}} </span>
|
||||
{{#if data.efficiency >= 3}}
|
||||
<ui-button icon='transfer' state='{{data.occupied && allowed ? null : "disabled"}}' action='inject' params='{"chem": "{{id}}", "volume": 1}'>1</ui-button>
|
||||
{{if adata.efficiency >= 2}}
|
||||
{{/if}}
|
||||
{{#if data.efficiency >= 2}}
|
||||
<ui-button icon='transfer' state='{{data.occupied && allowed ? null : "disabled"}}' action='inject' params='{"chem": "{{id}}", "volume": 5}'>5</ui-button>
|
||||
{{/if}}
|
||||
<ui-button icon='transfer' state='{{data.occupied && allowed ? null : "disabled"}}' action='inject' params='{"chem": "{{id}}", "volume": 10}'>10</ui-button>
|
||||
<ui-button icon='flask' state='{{data.occupied && allowed ? null : "disabled"}}' action='synth' params='{"chem": "{{id}}"}'>Synthesize</ui-button><br/>
|
||||
{{/each}}
|
||||
{{#each data.chems}}
|
||||
<span>{{name}}: {{}} </span>
|
||||
{{if data.efficiency >= 3}}
|
||||
<span>{{name}}: {{vol}} </span>
|
||||
{{#if data.efficiency >= 3}}
|
||||
<ui-button icon='transfer' state='{{data.occupied && allowed ? null : "disabled"}}' action='inject' params='{"chem": "{{id}}", "volume": 1}'>1</ui-button>
|
||||
{{if adata.efficiency >= 2}}
|
||||
{{/if}}
|
||||
{{#if adata.efficiency >= 2}}
|
||||
<ui-button icon='transfer' state='{{data.occupied && allowed ? null : "disabled"}}' action='inject' params='{"chem": "{{id}}", "volume": 5}'>5</ui-button>
|
||||
{{/if}}
|
||||
<ui-button icon='transfer' state='{{data.occupied && allowed ? null : "disabled"}}' action='inject' params='{"chem": "{{id}}", "volume": 10}'>10</ui-button><br/>
|
||||
{{/each}}
|
||||
</ui-section>
|
||||
</ui-section>
|
||||
<ui-section label='Capacity'>
|
||||
<ui-bar min=0 max='{{data.tot_capacity}}' value='{{data.current_vol}}'
|
||||
<ui-bar min=0 max='{{data.tot_capacity}}' value='{{data.current_vol}}'
|
||||
state='{{data.current_vol}}'>{{data.current_vol}}</ui-bar>
|
||||
</ui-section>
|
||||
</ui-display>
|
||||
|
||||
Reference in New Issue
Block a user