mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Merge pull request #5871 from PsiOmegaDelta/PhotoAI
Fixes runtime error when borgs attempt to sync photos with master AI
This commit is contained in:
@@ -62,7 +62,10 @@
|
|||||||
updateicon()
|
updateicon()
|
||||||
|
|
||||||
/mob/living/silicon/robot/drone/init()
|
/mob/living/silicon/robot/drone/init()
|
||||||
new/obj/item/device/camera/siliconcam/drone_camera(src)
|
laws = new /datum/ai_laws/drone()
|
||||||
|
connected_ai = null
|
||||||
|
|
||||||
|
aiCamera = new/obj/item/device/camera/siliconcam/drone_camera(src)
|
||||||
playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 0)
|
playsound(src.loc, 'sound/machines/twobeep.ogg', 50, 0)
|
||||||
|
|
||||||
//Redefining some robot procs...
|
//Redefining some robot procs...
|
||||||
|
|||||||
@@ -88,19 +88,7 @@
|
|||||||
hands.icon_state = "standard"
|
hands.icon_state = "standard"
|
||||||
icon_state = "secborg"
|
icon_state = "secborg"
|
||||||
modtype = "Security"
|
modtype = "Security"
|
||||||
else if(istype(src,/mob/living/silicon/robot/drone))
|
init()
|
||||||
laws = new /datum/ai_laws/drone()
|
|
||||||
connected_ai = null
|
|
||||||
else
|
|
||||||
laws = new /datum/ai_laws/nanotrasen()
|
|
||||||
connected_ai = select_active_ai_with_fewest_borgs()
|
|
||||||
if(connected_ai)
|
|
||||||
connected_ai.connected_robots += src
|
|
||||||
lawsync()
|
|
||||||
photosync()
|
|
||||||
lawupdate = 1
|
|
||||||
else
|
|
||||||
lawupdate = 0
|
|
||||||
|
|
||||||
radio = new /obj/item/device/radio/borg(src)
|
radio = new /obj/item/device/radio/borg(src)
|
||||||
if(!scrambledcodes && !camera)
|
if(!scrambledcodes && !camera)
|
||||||
@@ -138,10 +126,19 @@
|
|||||||
hud_list[IMPCHEM_HUD] = image('icons/mob/hud.dmi', src, "hudblank")
|
hud_list[IMPCHEM_HUD] = image('icons/mob/hud.dmi', src, "hudblank")
|
||||||
hud_list[IMPTRACK_HUD] = image('icons/mob/hud.dmi', src, "hudblank")
|
hud_list[IMPTRACK_HUD] = image('icons/mob/hud.dmi', src, "hudblank")
|
||||||
hud_list[SPECIALROLE_HUD] = image('icons/mob/hud.dmi', src, "hudblank")
|
hud_list[SPECIALROLE_HUD] = image('icons/mob/hud.dmi', src, "hudblank")
|
||||||
init()
|
|
||||||
|
|
||||||
/mob/living/silicon/robot/proc/init()
|
/mob/living/silicon/robot/proc/init()
|
||||||
new/obj/item/device/camera/siliconcam/robot_camera(src)
|
aiCamera = new/obj/item/device/camera/siliconcam/robot_camera(src)
|
||||||
|
laws = new /datum/ai_laws/nanotrasen()
|
||||||
|
connected_ai = select_active_ai_with_fewest_borgs()
|
||||||
|
if(connected_ai)
|
||||||
|
connected_ai.connected_robots += src
|
||||||
|
lawsync()
|
||||||
|
photosync()
|
||||||
|
lawupdate = 1
|
||||||
|
else
|
||||||
|
lawupdate = 0
|
||||||
|
|
||||||
playsound(loc, 'sound/voice/liveagain.ogg', 75, 1)
|
playsound(loc, 'sound/voice/liveagain.ogg', 75, 1)
|
||||||
|
|
||||||
// setup the PDA and its name
|
// setup the PDA and its name
|
||||||
|
|||||||
Reference in New Issue
Block a user