Revert "[MIRROR] Replace all secondary flags with bitflags stored in the flags_2 var" (#2457)
ok you know what yeah i think i'll properly mirror https://github.com/Citadel-Station-13/Citadel-Station-13/pull/2411
This commit is contained in:
@@ -12,9 +12,6 @@
|
||||
max_hardware_size = 2
|
||||
w_class = WEIGHT_CLASS_NORMAL
|
||||
|
||||
// No running around with open laptops in hands.
|
||||
flags_2 = SLOWS_WHILE_IN_HAND_2
|
||||
|
||||
screen_on = 0 // Starts closed
|
||||
var/start_open = TRUE // unless this var is set to 1
|
||||
var/icon_state_closed = "laptop-closed"
|
||||
@@ -24,6 +21,9 @@
|
||||
/obj/item/device/modular_computer/laptop/Initialize()
|
||||
. = ..()
|
||||
|
||||
// No running around with open laptops in hands.
|
||||
SET_SECONDARY_FLAG(src, SLOWS_WHILE_IN_HAND)
|
||||
|
||||
if(start_open && !screen_on)
|
||||
toggle_open()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user