mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
[MIRROR] Fixes the borg tablet being unusable without power, and borgs usually being unable to print pictures (#1288)
* Fixes some borg tablet bugs (#54339) fix: Borg tablets now correctly work when the borg is out of power (though you'll get no networking until you get that power issue sorted out). fix: Borgs that are synced to AIs can correctly view and print photos once more. * Fixes the borg tablet being unusable without power, and borgs usually being unable to print pictures Co-authored-by: zxaber <37497534+zxaber@users.noreply.github.com>
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
data["integrity"] = ((borgo.health + 100) / 2) //Borgo health, as percentage
|
||||
data["lampIntensity"] = borgo.lamp_intensity //Borgo lamp power setting
|
||||
data["sensors"] = "[borgo.sensors_on?"ACTIVE":"DISABLED"]"
|
||||
data["printerPictures"] = borgo.aicamera.stored.len //Number of pictures taken
|
||||
data["printerPictures"] = borgo.connected_ai? borgo.connected_ai.aicamera.stored.len : borgo.aicamera.stored.len //Number of pictures taken, synced to AI if available
|
||||
data["printerToner"] = borgo.toner //amount of toner
|
||||
data["printerTonerMax"] = borgo.tonermax //It's a variable, might as well use it
|
||||
data["thrustersInstalled"] = borgo.ionpulse //If we have a thruster uprade
|
||||
@@ -118,7 +118,10 @@
|
||||
borgo.toggle_sensors()
|
||||
|
||||
if("viewImage")
|
||||
borgo.aicamera?.viewpictures(usr)
|
||||
if(borgo.connected_ai)
|
||||
borgo.connected_ai.aicamera?.viewpictures(usr)
|
||||
else
|
||||
borgo.aicamera?.viewpictures(usr)
|
||||
|
||||
if("printImage")
|
||||
var/obj/item/camera/siliconcam/robot_camera/borgcam = borgo.aicamera
|
||||
|
||||
Reference in New Issue
Block a user