[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:
CHOMPStation2StaffMirrorBot
2025-11-07 09:17:21 -07:00
committed by GitHub
parent e13cfbc71c
commit 38f998779a
31 changed files with 761 additions and 180 deletions

View File

@@ -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))

View File

@@ -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

View File

@@ -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()

View File

@@ -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

View File

@@ -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

View File

@@ -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