Adds missing R&D screens. Fixes the employee computer by cheating.

This commit is contained in:
PsiOmega
2015-07-07 17:24:10 +02:00
parent 87d4cf4f68
commit aeb15a85be
4 changed files with 16 additions and 34 deletions

View File

@@ -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)

View File

@@ -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

View File

@@ -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.
@@ -151,7 +152,7 @@ won't update every console in existence) but it's more of a hassle to do. Also,
src.updateUsrDialog() src.updateUsrDialog()
return return
/obj/machinery/computer/rdconsole/emp_act(var/remaining_charges, var/mob/user) /obj/machinery/computer/rdconsole/emp_act(var/remaining_charges, var/mob/user)
if(!emagged) if(!emagged)
playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1) playsound(src.loc, 'sound/effects/sparks4.ogg', 75, 1)
@@ -259,9 +260,9 @@ won't update every console in existence) but it's more of a hassle to do. Also,
linked_destroy.loaded_item = null linked_destroy.loaded_item = null
for(var/obj/I in linked_destroy.contents) for(var/obj/I in linked_destroy.contents)
for(var/mob/M in I.contents) for(var/mob/M in I.contents)
M.death() M.death()
if(istype(I,/obj/item/stack/material))//Only deconsturcts one sheet at a time instead of the entire stack if(istype(I,/obj/item/stack/material))//Only deconsturcts one sheet at a time instead of the entire stack
var/obj/item/stack/material/S = I var/obj/item/stack/material/S = I
if(S.get_amount() > 1) if(S.get_amount() > 1)
S.use(1) S.use(1)
linked_destroy.loaded_item = S linked_destroy.loaded_item = S

View File

@@ -119,8 +119,8 @@
if(default_deconstruction_screwdriver(user, O)) if(default_deconstruction_screwdriver(user, O))
return return
if(default_deconstruction_crowbar(user, O)) if(default_deconstruction_crowbar(user, O))
return return
if(default_part_replacement(user, O)) if(default_part_replacement(user, O))
return return
/obj/machinery/r_n_d/server/centcom /obj/machinery/r_n_d/server/centcom
@@ -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