Skip to content

Commit

Permalink
Update chem_simulator.dm
Browse files Browse the repository at this point in the history
bugfixes
  • Loading branch information
Weuyn authored Jan 17, 2025
1 parent 083b6e4 commit 6460477
Showing 1 changed file with 4 additions and 0 deletions.
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 6460477

Please sign in to comment.