Sleepers now use NanoUI

Also cuts out a few points of weirdness; No dialysis on bloodless races
like IPCs, and dialysis on simple_animals is no longer possible through
the interface or through href twiddling, as that caused a runtime.

Also, prevents href tweaking to dispense chemicals the sleeper doesn't
have.
This commit is contained in:
Crazylemon64
2015-10-25 10:35:39 -07:00
parent 24bc5aadde
commit 9e0e68a8b6
5 changed files with 140 additions and 52 deletions
@@ -73,6 +73,7 @@
var/mob/remoteview_target = null
var/meatleft = 3 //For chef item
var/decaylevel = 0 // For rotting bodies
var/max_blood = 560 // For stuff in the vessel
var/slime_color = "blue" //For slime people this defines their color, it's blue by default to pay tribute to the old icons
var/check_mutations=0 // Check mutations on next life tick
@@ -98,6 +98,9 @@ About the Holder:
Returns the amount of the matching reagent inside the
holder. Returns 0 if the reagent is missing.
overdose_list()
Returns a list of all the chemical IDs in the reagent holder that are overdosing
Important variables:
total_volume
@@ -82,6 +82,14 @@ datum/reagents/proc/metabolize(var/mob/M)
addiction_tick++
update_total()
/datum/reagents/proc/overdose_list()
var/od_chems[0]
for(var/datum/reagent/R in reagent_list)
if(R.overdosed)
od_chems.Add(R.id)
return od_chems
datum/reagents/proc/reagent_on_tick()
for(var/datum/reagent/R in reagent_list)
R.on_tick()