storage rewrite (#6284)

Co-authored-by: silicons <no@you.cat>
This commit is contained in:
silicons
2024-02-17 10:08:35 +01:00
committed by GitHub
co-authored by silicons
parent f073efbc88
commit 383308a1d1
585 changed files with 4819 additions and 3881 deletions
@@ -13,7 +13,7 @@
light_strength = 3
max_damage = 200
broken_damage = 100
w_class = ITEMSIZE_NORMAL
w_class = WEIGHT_CLASS_NORMAL
var/icon_state_closed = "laptop-closed"
/obj/item/modular_computer/laptop/AltClick(mob/living/carbon/user)
@@ -7,7 +7,7 @@
icon_state_menu = "menu"
hardware_flag = PROGRAM_TABLET
max_hardware_size = 1
w_class = ITEMSIZE_SMALL
w_class = WEIGHT_CLASS_SMALL
light_strength = 2 // Same as PDAs
/obj/item/modular_computer/tablet/lease
@@ -16,7 +16,7 @@
light_strength = 4
max_damage = 300
broken_damage = 150
w_class = ITEMSIZE_HUGE
w_class = WEIGHT_CLASS_HUGE
/obj/item/modular_computer/telescreen/Initialize(mapload)
. = ..()
@@ -56,7 +56,7 @@
to_chat(user, "Hardware Integrity Test... (Corruption: [damage]/[max_damage]) [damage > damage_failure ? "FAIL" : damage > damage_malfunction ? "WARN" : "PASS"]")
/obj/item/computer_hardware/Initialize(mapload)
w_class = hardware_size
set_weight_class(hardware_size)
if(istype(loc, /obj/item/modular_computer))
holder2 = loc
return ..()