mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 08:08:49 +01:00
Remove calls to a private NanoUI proc from Chemistry-Machinery
Also mark procs as private (because they should have been private the whole time). Get off my lawn!
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
else
|
||||
return null // We couldn't find a UI.
|
||||
/**
|
||||
* public
|
||||
* private
|
||||
*
|
||||
* Get a open NanoUI given a user, src_object, and ui_key.
|
||||
*
|
||||
@@ -64,7 +64,7 @@
|
||||
return null // Couldn't find a UI!
|
||||
|
||||
/**
|
||||
* public
|
||||
* private
|
||||
*
|
||||
* Update all NanoUIs attached to src_object.
|
||||
*
|
||||
@@ -86,7 +86,7 @@
|
||||
return update_count
|
||||
|
||||
/**
|
||||
* public
|
||||
* private
|
||||
*
|
||||
* Close all NanoUIs attached to src_object.
|
||||
*
|
||||
@@ -108,7 +108,7 @@
|
||||
return close_count
|
||||
|
||||
/**
|
||||
* public
|
||||
* private
|
||||
*
|
||||
* Update all NanoUIs belonging to a user.
|
||||
*
|
||||
@@ -130,7 +130,7 @@
|
||||
return update_count
|
||||
|
||||
/**
|
||||
* public
|
||||
* private
|
||||
*
|
||||
* Close all NanoUIs belonging to a user.
|
||||
*
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
energy = min(energy + addenergy, max_energy)
|
||||
if(energy != oldenergy)
|
||||
use_power(1500) // This thing uses up alot of power (this is still low as shit for creating reagents from thin air)
|
||||
SSnano.update_uis(src) // update all UIs attached to src
|
||||
|
||||
/obj/machinery/chem_dispenser/power_change()
|
||||
if(powered())
|
||||
@@ -37,7 +36,6 @@
|
||||
else
|
||||
spawn(rand(0, 15))
|
||||
stat |= NOPOWER
|
||||
SSnano.update_uis(src) // update all UIs attached to src
|
||||
|
||||
/obj/machinery/chem_dispenser/process()
|
||||
|
||||
@@ -146,7 +144,6 @@
|
||||
src.beaker = B
|
||||
B.loc = src
|
||||
user << "<span class='notice'>You add the beaker to the machine.</span>"
|
||||
SSnano.update_uis(src) // update all UIs attached to src
|
||||
|
||||
if(!icon_beaker)
|
||||
icon_beaker = image('icons/obj/chemical.dmi', src, "disp_beaker") //randomize beaker overlay position.
|
||||
@@ -1413,16 +1410,12 @@
|
||||
beaker.reagents.handle_reactions()
|
||||
state_change = 1
|
||||
|
||||
if(state_change)
|
||||
SSnano.update_uis(src)
|
||||
|
||||
/obj/machinery/chem_heater/proc/eject_beaker()
|
||||
if(beaker)
|
||||
beaker.loc = get_turf(src)
|
||||
beaker.reagents.handle_reactions()
|
||||
beaker = null
|
||||
icon_state = "mixer0b"
|
||||
SSnano.update_uis(src)
|
||||
|
||||
/obj/machinery/chem_heater/power_change()
|
||||
if(powered())
|
||||
@@ -1430,7 +1423,6 @@
|
||||
else
|
||||
spawn(rand(0, 15))
|
||||
stat |= NOPOWER
|
||||
SSnano.update_uis(src)
|
||||
|
||||
/obj/machinery/chem_heater/attackby(obj/item/I, mob/user, params)
|
||||
if(isrobot(user))
|
||||
@@ -1446,7 +1438,6 @@
|
||||
I.loc = src
|
||||
user << "<span class='notice'>You add the beaker to the machine.</span>"
|
||||
icon_state = "mixer1b"
|
||||
SSnano.update_uis(src)
|
||||
|
||||
if(default_deconstruction_screwdriver(user, "mixer0b", "mixer0b", I))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user