Makes try_install_component a function of the hardware.

This commit is contained in:
Shadowlight213
2016-08-15 22:44:58 -07:00
parent 5f80110244
commit 2f607d1392
11 changed files with 85 additions and 73 deletions
@@ -38,4 +38,12 @@
hardware_size = 1
power_usage = 75
max_idle_programs = 2
origin_tech = list("programming" = 4, "engineering" = 3)
origin_tech = list("programming" = 4, "engineering" = 3)
/obj/item/weapon/computer_hardware/processor_unit/try_install_component(mob/living/user, obj/item/modular_computer/M, found = 0)
if(M.processor_unit)
user << "This computer's processor slot is already occupied by \the [M.processor_unit]."
return
found = 1
M.processor_unit = src
..(user, M, found)