mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-06 07:22:42 +00:00
Merge pull request #7297 from Greenjoe12345/wrist-PDA
Wrist-bound PDAs!
This commit is contained in:
@@ -43,7 +43,7 @@ var/datum/category_collection/underwear/global_underwear = new()
|
||||
|
||||
//Backpacks
|
||||
var/global/list/backbaglist = list("Nothing", "Backpack", "Satchel", "Satchel Alt", "Messenger Bag")
|
||||
var/global/list/pdachoicelist = list("Default", "Slim", "Old", "Rugged", "Holographic")
|
||||
var/global/list/pdachoicelist = list("Default", "Slim", "Old", "Rugged", "Holographic", "Wrist-Bound")
|
||||
var/global/list/exclude_jobs = list(/datum/job/ai,/datum/job/cyborg)
|
||||
|
||||
// Visual nets
|
||||
|
||||
@@ -609,7 +609,7 @@ GLOBAL_LIST_EMPTY(blood_overlays_by_type)
|
||||
// Already got one
|
||||
if(blood_overlay)
|
||||
return
|
||||
|
||||
|
||||
// Already cached
|
||||
if(GLOB.blood_overlays_by_type[type])
|
||||
blood_overlay = GLOB.blood_overlays_by_type[type]
|
||||
@@ -619,7 +619,7 @@ GLOBAL_LIST_EMPTY(blood_overlays_by_type)
|
||||
var/image/blood = image(icon = 'icons/effects/blood.dmi', icon_state = "itemblood") // Needs to be a new one each time since we're slicing it up with filters.
|
||||
blood.filters += filter(type = "alpha", icon = icon(icon, icon_state)) // Same, this filter is unique for each blood overlay per type
|
||||
GLOB.blood_overlays_by_type[type] = blood
|
||||
|
||||
|
||||
// And finally
|
||||
blood_overlay = blood
|
||||
|
||||
|
||||
@@ -452,6 +452,20 @@ var/global/list/obj/item/device/pda/PDAs = list()
|
||||
if(3) icon = 'icons/obj/pda_old.dmi'
|
||||
if(4) icon = 'icons/obj/pda_rugged.dmi'
|
||||
if(5) icon = 'icons/obj/pda_holo.dmi'
|
||||
if(6)
|
||||
icon = 'icons/obj/pda_wrist.dmi'
|
||||
item_state = icon_state
|
||||
item_icons = list(
|
||||
slot_belt_str = 'icons/mob/pda_wrist.dmi',
|
||||
slot_wear_id_str = 'icons/mob/pda_wrist.dmi',
|
||||
slot_gloves_str = 'icons/mob/pda_wrist.dmi'
|
||||
)
|
||||
desc = "A portable microcomputer by Thinktronic Systems, LTD. This model is a wrist-bound version."
|
||||
slot_flags = SLOT_ID | SLOT_BELT | SLOT_GLOVES
|
||||
sprite_sheets = list(
|
||||
SPECIES_TESHARI = 'icons/mob/species/seromi/pda_wrist.dmi',
|
||||
SPECIES_VR_TESHARI = 'icons/mob/species/seromi/pda_wrist.dmi',
|
||||
)
|
||||
else
|
||||
icon = 'icons/obj/pda_old.dmi'
|
||||
log_debug("Invalid switch for PDA, defaulting to old PDA icons. [pdachoice] chosen.")
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
pref.backbag = 1 //Same as above
|
||||
character.backbag = pref.backbag
|
||||
|
||||
if(pref.pdachoice > 5 || pref.pdachoice < 1)
|
||||
if(pref.pdachoice > 6 || pref.pdachoice < 1)
|
||||
pref.pdachoice = 1
|
||||
character.pdachoice = pref.pdachoice
|
||||
|
||||
|
||||
Reference in New Issue
Block a user