mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-15 04:32:42 +00:00
Adds missing R&D screens. Fixes the employee computer by cheating.
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
desc = "Used to view, edit and maintain employment records."
|
desc = "Used to view, edit and maintain employment records."
|
||||||
icon_keyboard = "laptop_key"
|
icon_keyboard = "laptop_key"
|
||||||
icon_screen = "medlaptop"
|
icon_screen = "medlaptop"
|
||||||
icon_state = "laptop"
|
|
||||||
light_color = "#00b000"
|
light_color = "#00b000"
|
||||||
req_one_access = list(access_heads)
|
req_one_access = list(access_heads)
|
||||||
circuit = /obj/item/weapon/circuitboard/skills
|
circuit = /obj/item/weapon/circuitboard/skills
|
||||||
@@ -24,6 +23,9 @@
|
|||||||
var/sortBy = "name"
|
var/sortBy = "name"
|
||||||
var/order = 1 // -1 = Descending - 1 = Ascending
|
var/order = 1 // -1 = Descending - 1 = Ascending
|
||||||
|
|
||||||
|
/obj/machinery/computer/skills/New()
|
||||||
|
..()
|
||||||
|
icon_state = "laptop"
|
||||||
|
|
||||||
/obj/machinery/computer/skills/attackby(obj/item/O as obj, user as mob)
|
/obj/machinery/computer/skills/attackby(obj/item/O as obj, user as mob)
|
||||||
if(istype(O, /obj/item/weapon/card/id) && !scan)
|
if(istype(O, /obj/item/weapon/card/id) && !scan)
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
|
|
||||||
/obj/machinery/mech_bay_recharge_port/proc/stop_charge()
|
/obj/machinery/mech_bay_recharge_port/proc/stop_charge()
|
||||||
if(recharge_console && !recharge_console.stat)
|
if(recharge_console && !recharge_console.stat)
|
||||||
recharge_console.icon_state = initial(recharge_console.icon_state)
|
recharge_console.icon_screen = initial(recharge_console.icon_screen)
|
||||||
pr_recharger.stop()
|
pr_recharger.stop()
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -137,8 +137,8 @@
|
|||||||
name = "Mech Bay Power Control Console"
|
name = "Mech Bay Power Control Console"
|
||||||
density = 1
|
density = 1
|
||||||
anchored = 1
|
anchored = 1
|
||||||
icon = 'icons/obj/computer.dmi'
|
icon_keyboard = "tech_key"
|
||||||
icon_state = "recharge_comp"
|
icon_screen = "recharge_comp"
|
||||||
light_color = "#a97faa"
|
light_color = "#a97faa"
|
||||||
circuit = /obj/item/weapon/circuitboard/mech_bay_power_console
|
circuit = /obj/item/weapon/circuitboard/mech_bay_power_console
|
||||||
var/autostart = 1
|
var/autostart = 1
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
var/answer = recharge_port.start_charge(mecha)
|
var/answer = recharge_port.start_charge(mecha)
|
||||||
if(answer)
|
if(answer)
|
||||||
recharge_port.set_voltage(voltage)
|
recharge_port.set_voltage(voltage)
|
||||||
src.icon_state = initial(src.icon_state)+"_on"
|
src.icon_screen = initial(src.icon_screen)+"_on"
|
||||||
return
|
return
|
||||||
|
|
||||||
/obj/machinery/computer/mech_bay_power_console/proc/mecha_out()
|
/obj/machinery/computer/mech_bay_power_console/proc/mecha_out()
|
||||||
@@ -162,28 +162,6 @@
|
|||||||
recharge_port.stop_charge()
|
recharge_port.stop_charge()
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
/obj/machinery/computer/mech_bay_power_console/power_change()
|
|
||||||
if(stat & BROKEN)
|
|
||||||
icon_state = initial(icon_state)+"_broken"
|
|
||||||
if(recharge_port)
|
|
||||||
recharge_port.stop_charge()
|
|
||||||
else if(powered())
|
|
||||||
icon_state = initial(icon_state)
|
|
||||||
stat &= ~NOPOWER
|
|
||||||
else
|
|
||||||
spawn(rand(0, 15))
|
|
||||||
icon_state = initial(icon_state)+"_nopower"
|
|
||||||
stat |= NOPOWER
|
|
||||||
if(recharge_port)
|
|
||||||
recharge_port.stop_charge()
|
|
||||||
|
|
||||||
/obj/machinery/computer/mech_bay_power_console/set_broken()
|
|
||||||
icon_state = initial(icon_state)+"_broken"
|
|
||||||
stat |= BROKEN
|
|
||||||
if(recharge_port)
|
|
||||||
recharge_port.stop_charge()
|
|
||||||
|
|
||||||
/obj/machinery/computer/mech_bay_power_console/attack_hand(mob/user as mob)
|
/obj/machinery/computer/mech_bay_power_console/attack_hand(mob/user as mob)
|
||||||
if(..())
|
if(..())
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ won't update every console in existence) but it's more of a hassle to do. Also,
|
|||||||
|
|
||||||
/obj/machinery/computer/rdconsole
|
/obj/machinery/computer/rdconsole
|
||||||
name = "R&D control console"
|
name = "R&D control console"
|
||||||
icon_state = "rdcomp"
|
icon_keyboard = "rd_key"
|
||||||
|
icon_screen = "rdcomp"
|
||||||
light_color = "#a97faa"
|
light_color = "#a97faa"
|
||||||
circuit = /obj/item/weapon/circuitboard/rdconsole
|
circuit = /obj/item/weapon/circuitboard/rdconsole
|
||||||
var/datum/research/files //Stores all the collected research data.
|
var/datum/research/files //Stores all the collected research data.
|
||||||
|
|||||||
@@ -155,7 +155,8 @@
|
|||||||
|
|
||||||
/obj/machinery/computer/rdservercontrol
|
/obj/machinery/computer/rdservercontrol
|
||||||
name = "R&D Server Controller"
|
name = "R&D Server Controller"
|
||||||
icon_state = "rdcomp"
|
icon_keyboard = "rd_key"
|
||||||
|
icon_screen = "rdcomp"
|
||||||
light_color = "#a97faa"
|
light_color = "#a97faa"
|
||||||
circuit = /obj/item/weapon/circuitboard/rdservercontrol
|
circuit = /obj/item/weapon/circuitboard/rdservercontrol
|
||||||
var/screen = 0
|
var/screen = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user