mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 15:42:35 +00:00
Modular Computer Quickfix (#8735)
This commit is contained in:
@@ -433,35 +433,21 @@
|
|||||||
|
|
||||||
//gets assignment from ID or ID inside PDA or PDA itself
|
//gets assignment from ID or ID inside PDA or PDA itself
|
||||||
//Useful when player do something with computers
|
//Useful when player do something with computers
|
||||||
/mob/living/carbon/human/proc/get_assignment(var/if_no_id = "No id", var/if_no_job = "No job")
|
/mob/living/carbon/human/proc/get_assignment(var/if_no_id = "No ID", var/if_no_job = "No Job")
|
||||||
var/obj/item/device/pda/pda = wear_id
|
var/obj/item/card/id/I = GetIdCard()
|
||||||
if (istype(pda))
|
if(istype(I))
|
||||||
if (pda.id)
|
return I.assignment ? I.assignment : if_no_job
|
||||||
return pda.id.assignment
|
|
||||||
else
|
|
||||||
return pda.ownjob
|
|
||||||
else
|
else
|
||||||
var/obj/item/card/id/id = get_idcard()
|
return if_no_id
|
||||||
if(id)
|
|
||||||
return id.assignment ? id.assignment : if_no_job
|
|
||||||
else
|
|
||||||
return if_no_id
|
|
||||||
|
|
||||||
//gets name from ID or ID inside PDA or PDA itself
|
//gets name from ID or ID inside PDA or PDA itself
|
||||||
//Useful when player do something with computers
|
//Useful when player do something with computers
|
||||||
/mob/living/carbon/human/proc/get_authentification_name(var/if_no_id = "Unknown")
|
/mob/living/carbon/human/proc/get_authentification_name(var/if_no_id = "Unknown")
|
||||||
var/obj/item/device/pda/pda = wear_id
|
var/obj/item/card/id/I = GetIdCard()
|
||||||
if (istype(pda))
|
if(istype(I))
|
||||||
if (pda.id)
|
return I.registered_name
|
||||||
return pda.id.registered_name
|
|
||||||
else
|
|
||||||
return pda.owner
|
|
||||||
else
|
else
|
||||||
var/obj/item/card/id/id = get_idcard()
|
return if_no_id
|
||||||
if(id)
|
|
||||||
return id.registered_name
|
|
||||||
else
|
|
||||||
return if_no_id
|
|
||||||
|
|
||||||
//repurposed proc. Now it combines get_id_name() and get_face_name() to determine a mob's name variable. Made into a seperate proc as it'll be useful elsewhere
|
//repurposed proc. Now it combines get_id_name() and get_face_name() to determine a mob's name variable. Made into a seperate proc as it'll be useful elsewhere
|
||||||
/mob/living/carbon/human/proc/get_visible_name()
|
/mob/living/carbon/human/proc/get_visible_name()
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
icon_state_screensaver = "standby"
|
icon_state_screensaver = "standby"
|
||||||
hardware_flag = PROGRAM_WRISTBOUND
|
hardware_flag = PROGRAM_WRISTBOUND
|
||||||
slot_flags = SLOT_GLOVES|SLOT_ID
|
slot_flags = SLOT_GLOVES|SLOT_ID
|
||||||
|
can_reset = TRUE
|
||||||
max_hardware_size = 1
|
max_hardware_size = 1
|
||||||
w_class = ITEMSIZE_NORMAL
|
w_class = ITEMSIZE_NORMAL
|
||||||
light_strength = 1
|
light_strength = 1
|
||||||
@@ -21,7 +22,7 @@
|
|||||||
/obj/item/modular_computer/wristbound/attack_hand(mob/user)
|
/obj/item/modular_computer/wristbound/attack_hand(mob/user)
|
||||||
if(ishuman(user))
|
if(ishuman(user))
|
||||||
var/mob/living/carbon/human/H = user
|
var/mob/living/carbon/human/H = user
|
||||||
if(H.gloves == src)
|
if(H.gloves == src || H.wear_id == src)
|
||||||
return attack_self(user)
|
return attack_self(user)
|
||||||
..()
|
..()
|
||||||
|
|
||||||
|
|||||||
@@ -119,7 +119,7 @@
|
|||||||
description = "Contains the most common research programs and command software."
|
description = "Contains the most common research programs and command software."
|
||||||
available = FALSE
|
available = FALSE
|
||||||
|
|
||||||
/datum/modular_computer_app_presets/research/return_install_programs()
|
/datum/modular_computer_app_presets/research/rd/return_install_programs()
|
||||||
var/list/_prg_list = list(
|
var/list/_prg_list = list(
|
||||||
new /datum/computer_file/program/filemanager(),
|
new /datum/computer_file/program/filemanager(),
|
||||||
new /datum/computer_file/program/chatclient(),
|
new /datum/computer_file/program/chatclient(),
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/datum/computer_file/program/card_mod
|
/datum/computer_file/program/card_mod
|
||||||
filename = "cardmod"
|
filename = "cardmod"
|
||||||
filedesc = "ID card modification program"
|
filedesc = "ID Card Modification Program"
|
||||||
nanomodule_path = /datum/nano_module/program/card_mod
|
nanomodule_path = /datum/nano_module/program/card_mod
|
||||||
program_icon_state = "id"
|
program_icon_state = "id"
|
||||||
extended_desc = "Program for programming employee ID cards to access parts of the station."
|
extended_desc = "Program for programming employee ID cards to access parts of the station."
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
/datum/computer_file/program/comm
|
/datum/computer_file/program/comm
|
||||||
filename = "comm"
|
filename = "comm"
|
||||||
filedesc = "Command and communications program."
|
filedesc = "Command and Communications Program"
|
||||||
program_icon_state = "comm"
|
program_icon_state = "comm"
|
||||||
nanomodule_path = /datum/nano_module/program/comm
|
nanomodule_path = /datum/nano_module/program/comm
|
||||||
extended_desc = "Used to command and control the station. Can relay long-range communications."
|
extended_desc = "Used to command and control the station. Can relay long-range communications."
|
||||||
|
|||||||
10
html/changelogs/geeves-modular_comp_fixes.yml
Normal file
10
html/changelogs/geeves-modular_comp_fixes.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
author: Geeves
|
||||||
|
|
||||||
|
delete-after: True
|
||||||
|
|
||||||
|
changes:
|
||||||
|
- bugfix: "Wristbound clicking is now more consistant when it's in the ID slot."
|
||||||
|
- bugfix: "Suit sensors now get your ID when it's in your glove slot, your ID slot, or in your hands."
|
||||||
|
- bugfix: "Command programs are now named better."
|
||||||
|
- bugfix: "Wristbound computers can now be reset by the Tech Support card."
|
||||||
|
- bugfix: "Research computers no longer get RD programs."
|
||||||
Reference in New Issue
Block a user