mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 01:49:19 +00:00
Reagent sleepers!
This commit is contained in:
@@ -28,11 +28,11 @@
|
|||||||
|
|
||||||
/obj/machinery/reagent_sleeper/Initialize()
|
/obj/machinery/reagent_sleeper/Initialize()
|
||||||
. = ..()
|
. = ..()
|
||||||
create_reagents(300)
|
create_reagents(300, NO_REACT)
|
||||||
occupant_typecache = GLOB.typecache_living
|
occupant_typecache = GLOB.typecache_living
|
||||||
update_icon()
|
update_icon()
|
||||||
reset_chem_buttons()
|
reset_chem_buttons()
|
||||||
add_inital_chems()
|
//add_inital_chems()
|
||||||
|
|
||||||
/obj/machinery/reagent_sleeper/Destroy()
|
/obj/machinery/reagent_sleeper/Destroy()
|
||||||
var/buffer = new /obj/item/reagent_containers/sleeper_buffer(loc)
|
var/buffer = new /obj/item/reagent_containers/sleeper_buffer(loc)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
name = "Sleeper buffer container"
|
name = "Sleeper buffer container"
|
||||||
desc = "A closed container for insertion in the Medical Sleepers."
|
desc = "A closed container for insertion in the Medical Sleepers."
|
||||||
volume = 1200
|
volume = 1200
|
||||||
reagent_flags = OPENCONTAINER
|
reagent_flags = NO_REACT
|
||||||
spillable = TRUE
|
spillable = TRUE
|
||||||
resistance_flags = ACID_PROOF
|
resistance_flags = ACID_PROOF
|
||||||
amount_per_transfer_from_this = 0
|
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>
|
||||||
<ui-section label='Inject'>
|
<ui-section label='Inject'>
|
||||||
{{#each data.synthchems}}
|
{{#each data.synthchems}}
|
||||||
<span>{{name}} </span>
|
<span>{{name}}: {{vol}} </span>
|
||||||
{{if data.efficiency >= 3}}
|
{{#if data.efficiency >= 3}}
|
||||||
<ui-button icon='transfer' state='{{data.occupied && allowed ? null : "disabled"}}' action='inject' params='{"chem": "{{id}}", "volume": 1}'>1</ui-button>
|
<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>
|
<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='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/>
|
<ui-button icon='flask' state='{{data.occupied && allowed ? null : "disabled"}}' action='synth' params='{"chem": "{{id}}"}'>Synthesize</ui-button><br/>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{#each data.chems}}
|
{{#each data.chems}}
|
||||||
<span>{{name}}: {{}} </span>
|
<span>{{name}}: {{vol}} </span>
|
||||||
{{if data.efficiency >= 3}}
|
{{#if data.efficiency >= 3}}
|
||||||
<ui-button icon='transfer' state='{{data.occupied && allowed ? null : "disabled"}}' action='inject' params='{"chem": "{{id}}", "volume": 1}'>1</ui-button>
|
<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>
|
<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/>
|
<ui-button icon='transfer' state='{{data.occupied && allowed ? null : "disabled"}}' action='inject' params='{"chem": "{{id}}", "volume": 10}'>10</ui-button><br/>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</ui-section>
|
</ui-section>
|
||||||
<ui-section label='Capacity'>
|
<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>
|
state='{{data.current_vol}}'>{{data.current_vol}}</ui-bar>
|
||||||
|
</ui-section>
|
||||||
</ui-display>
|
</ui-display>
|
||||||
|
|||||||
Reference in New Issue
Block a user