Skip to content

Commit

Permalink
Merge pull request #6 from Weuyn/research-machine-fix
Browse files Browse the repository at this point in the history
Research machine fix
  • Loading branch information
Weuyn authored Jan 17, 2025
2 parents 247bd77 + 6460477 commit 9ae8cf1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/reagents/chemistry_machinery/autodispenser.dm
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@

var/space = container.reagents.maximum_volume - container.reagents.total_volume
if(!space || cycle >= cycle_limit) //We done boys
stop_program(1)
stop_program(2)
update_icon()
return

Expand Down
4 changes: 4 additions & 0 deletions code/modules/reagents/chemistry_machinery/chem_simulator.dm
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
to_chat(usr, SPAN_WARNING("The [src] makes a suspicious wail."))
return
if("select_reference_property")
update_costs()
if(!reference)
return
for(var/datum/chem_property/reference_prop in reference.data.properties)
Expand Down Expand Up @@ -556,6 +557,9 @@
if(target_property.level >= GLOB.chemical_data.clearance_level*TECHTREE_LEVEL_MULTIPLIER + 2 && GLOB.chemical_data.clearance_level < 5)
status_bar = "CLEARANCE INSUFFICIENT FOR AMPLIFICATION"
return FALSE
if(target_property.level >= target_property.max_level)
status_bar = "PROPERTY CANNOT BE AMPLIFIED FURTHER"
return FALSE
else
status_bar = "TARGET NOT SELECTED"
return FALSE
Expand Down

0 comments on commit 9ae8cf1

Please sign in to comment.