Fixes cyborg pdas

This commit is contained in:
Tastyfish
2016-04-08 14:25:31 -04:00
parent 18cdc6ffb1
commit b00a8bf95a
5 changed files with 30 additions and 23 deletions
+2 -2
View File
@@ -51,7 +51,7 @@ var/list/ai_verbs_default = list(
var/viewalerts = 0
var/icon/holo_icon//Default is assigned when AI is created.
var/obj/mecha/controlled_mech //For controlled_mech a mech, to determine whether to relaymove or use the AI eye.
var/obj/item/device/pda/ai/aiPDA = null
var/obj/item/device/pda/silicon/ai/aiPDA = null
var/obj/item/device/multitool/aiMulti = null
var/custom_sprite = 0 //For our custom sprites
@@ -126,7 +126,7 @@ var/list/ai_verbs_default = list(
possibleNames -= pickedName
pickedName = null
aiPDA = new/obj/item/device/pda/ai(src)
aiPDA = new/obj/item/device/pda/silicon/ai(src)
rename_character(null, pickedName)
anchored = 1
canmove = 0
+1 -1
View File
@@ -59,7 +59,7 @@
var/screen // Which screen our main window displays
var/subscreen // Which specific function of the main screen is being displayed
var/obj/item/device/pda/pai/pda = null
var/obj/item/device/pda/silicon/pai/pda = null
var/secHUD = 0 // Toggles whether the Security HUD is active or not
var/medHUD = 0 // Toggles whether the Medical HUD is active or not
@@ -43,7 +43,7 @@ var/list/robot_verbs_default = list(
var/obj/item/device/mmi/mmi = null
var/obj/item/device/pda/ai/rbPDA = null
var/obj/item/device/pda/silicon/robot/rbPDA = null
var/datum/wires/robot/wires = null
@@ -223,7 +223,7 @@ var/list/robot_verbs_default = list(
// setup the PDA and its name
/mob/living/silicon/robot/proc/setup_PDA()
if (!rbPDA)
rbPDA = new/obj/item/device/pda/ai(src)
rbPDA = new(src)
rbPDA.set_name_and_job(real_name, braintype)
if(scrambledcodes)
var/datum/data/pda/app/messenger/M = rbPDA.find_program(/datum/data/pda/app/messenger)