Adds new PDA sprites.

This commit is contained in:
SinTwo
2015-12-31 15:19:11 -05:00
parent f1e73456b2
commit b0916167c0
8 changed files with 26 additions and 2 deletions
+8 -1
View File
@@ -13,6 +13,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
slot_flags = SLOT_ID | SLOT_BELT
//Main variables
var/pdachoice = 1
var/owner = null
var/default_cartridge = 0 // Access level defined by cartridge
var/obj/item/weapon/cartridge/cartridge = null //current cartridge
@@ -316,6 +317,12 @@ var/global/list/obj/item/device/pda/PDAs = list()
if(default_cartridge)
cartridge = new default_cartridge(src)
new /obj/item/weapon/pen(src)
var/mob/living/carbon/human/H
pdachoice = isnull(H) ? 1 : H.pdachoice
switch(pdachoice)
if(2) icon = 'icons/obj/pda_slim.dmi'
if(3) icon = 'icons/obj/pda_old.dmi'
else icon = 'icons/obj/pda.dmi'
/obj/item/device/pda/proc/can_use()
@@ -869,7 +876,7 @@ var/global/list/obj/item/device/pda/PDAs = list()
overlays.Cut()
if(new_message || new_news)
overlays += image('icons/obj/pda.dmi', "pda-r")
overlays += image(icon, "pda-r")
/obj/item/device/pda/proc/detonate_act(var/obj/item/device/pda/P)
//TODO: sometimes these attacks show up on the message server