Assorted bugfixes and tweaks + changelog

- Adds codersprites for tablet programs that are currently required.
- Adds computer icons to some programs that missed them.
- Temporarily removes separate keyboard icon states for consoles. They may be reimplemented in the future in a bit better way.
- Rebalanced sizes of programs a bit
- File manager is no longer downloadable, as it is part of each hard drive's ROM.
- Fixed runtime error when vending a laptop
- Adjusted some code segments as per Techhead's suggestions on github
- Adds changelog.
This commit is contained in:
Atlantis
2015-12-30 03:18:56 +01:00
parent 605b78d377
commit 9e1168ae9c
20 changed files with 61 additions and 80 deletions
@@ -1,7 +1,6 @@
// Modular microcomputer, currently only for tablets.
// This is mostly modified copypaste of modular_computer.dm. It is necessary as
// modular_computer MUST stay as machinery subtype, while this must be an item subtype
// as it's portable.
// This is the base type that does all the hardware stuff.
// Other types expand it - tablets use a direct subtypes, and
// consoles and laptops use "procssor" item that is held inside machinery piece
/obj/item/modular_computer
name = "Modular Microcomputer"
desc = "A small portable microcomputer"
@@ -77,16 +76,8 @@
/obj/item/modular_computer/Destroy()
kill_program(1)
processing_objects.Remove(src)
if(network_card)
qdel(network_card)
if(hard_drive)
qdel(hard_drive)
if(battery_module)
qdel(battery_module)
if(nano_printer)
qdel(nano_printer)
if(card_slot)
qdel(card_slot)
for(var/obj/item/weapon/computer_hardware/CH in src.get_all_components())
qdel(CH)
..()
/obj/item/modular_computer/update_icon()
@@ -345,6 +336,9 @@
return
new /obj/item/stack/material/steel( get_turf(src.loc), steel_sheet_cost )
src.visible_message("\The [src] has been disassembled by [user].")
relay_qdel()
qdel(src)
return
if(istype(W, /obj/item/weapon/screwdriver))
var/list/all_components = get_all_components()
@@ -374,6 +368,10 @@
..()
// Used by processor to relay qdel() to machinery type.
/obj/item/modular_computer/proc/relay_qdel()
return
// Attempts to install the hardware into apropriate slot.
/obj/item/modular_computer/proc/try_install_component(var/mob/living/user, var/obj/item/weapon/computer_hardware/H, var/found = 0)
// "USB" flash drive.
@@ -35,6 +35,9 @@
max_hardware_size = machinery_computer.max_hardware_size
steel_sheet_cost = machinery_computer.steel_sheet_cost
/obj/item/modular_computer/processor/relay_qdel()
qdel(machinery_computer)
/obj/item/modular_computer/processor/find_hardware_by_name(var/N)
var/obj/item/weapon/computer_hardware/H = machinery_computer.find_hardware_by_name(N)
if(H)