mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] Overhauls borg hypos to work like chem dispensers (#11931)
Co-authored-by: Ryumi <ghosttehspychecka@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e13cfbc71c
commit
38f998779a
@@ -63,7 +63,7 @@
|
||||
if(C.brute_damage == 0 && C.electronics_damage == 0)
|
||||
to_chat(R, span_notice("Repair of [C] completed."))
|
||||
return
|
||||
if(!R.use_direct_power(power_tick, 500)) //We don't want to drain ourselves too far down during exploration
|
||||
if(!R.use_direct_power(power_tick, 500)) //We don't want to drain ourselves too far down during exploration
|
||||
to_chat(R, span_warning("Not enough power to initialize the repair system."))
|
||||
return
|
||||
if(do_after(R, tick_delay, target = R))
|
||||
|
||||
@@ -249,9 +249,7 @@
|
||||
UNTYPED_LIST_ADD(robot_chems, list("id" = possible_reagent.id, "name" = possible_reagent.name))
|
||||
|
||||
data["name"] = name
|
||||
var/robot_theme = robot_user.get_ui_theme()
|
||||
if(robot_theme)
|
||||
data["theme"] = robot_theme
|
||||
data["theme"] = robot_user.get_ui_theme()
|
||||
data["chems"] = robot_chems
|
||||
return data
|
||||
|
||||
|
||||
@@ -1217,7 +1217,7 @@
|
||||
if(cell.charge - (amount + lower_limit) <= 0)
|
||||
return FALSE
|
||||
|
||||
cell.charge -= amount
|
||||
cell.use(amount)
|
||||
return TRUE
|
||||
|
||||
/mob/living/silicon/robot/binarycheck()
|
||||
|
||||
@@ -49,10 +49,8 @@
|
||||
var/mob/living/silicon/robot/R = host
|
||||
|
||||
data["module_name"] = R.module ? "[R.module]" : null
|
||||
if(R.emagged)
|
||||
data["theme"] = "syndicate"
|
||||
else if (R.ui_theme)
|
||||
data["theme"] = R.ui_theme
|
||||
|
||||
data["theme"] = R.get_ui_theme()
|
||||
|
||||
if(!R.module)
|
||||
return data
|
||||
|
||||
@@ -25,9 +25,7 @@
|
||||
var/mob/living/silicon/robot/R = host
|
||||
data["active_decals"] = R.robotdecal_on
|
||||
|
||||
var/robot_theme = R.get_ui_theme()
|
||||
if(robot_theme)
|
||||
data["theme"] = robot_theme
|
||||
data["theme"] = R.get_ui_theme()
|
||||
|
||||
return data
|
||||
|
||||
|
||||
@@ -57,10 +57,7 @@
|
||||
modules |= module_name
|
||||
data["possible_modules"] = modules
|
||||
data["mind_name"] = R.mind.name
|
||||
if(R.emagged)
|
||||
data["theme"] = "syndicate"
|
||||
else if (R.ui_theme)
|
||||
data["theme"] = R.ui_theme
|
||||
data["theme"] = R.get_ui_theme()
|
||||
|
||||
return data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user