mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
Makes try_install_component a function of the hardware.
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user