Bleeding edgy refresh (#303)
* not code stuff * other things * global vars, defines, helpers * onclick hud stuff, orphans, world.dm * controllers and datums * game folder * everything not client/mobs in modules * client folder * stage 1 mob stuff * simple animal things * silicons * carbon things * ayylmaos and monkeys * hyoomahn * icons n shit * sprite fixes * compile fixes * some fixes I cherrypicked. * qdel fixes * forgot brain refractors
This commit is contained in:
@@ -12,16 +12,18 @@
|
||||
max_hardware_size = 2
|
||||
w_class = WEIGHT_CLASS_NORMAL
|
||||
|
||||
flags = HANDSLOW // No running around with open laptops in hands.
|
||||
|
||||
screen_on = 0 // Starts closed
|
||||
var/start_open = 1 // unless this var is set to 1
|
||||
var/icon_state_closed = "laptop-closed"
|
||||
var/w_class_open = WEIGHT_CLASS_BULKY
|
||||
var/slowdown_open = 1
|
||||
|
||||
/obj/item/device/modular_computer/laptop/New()
|
||||
/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()
|
||||
|
||||
@@ -83,11 +85,11 @@
|
||||
|
||||
/obj/item/device/modular_computer/laptop/proc/toggle_open(mob/living/user=null)
|
||||
if(screen_on)
|
||||
user << "<span class='notice'>You close \the [src].</span>"
|
||||
to_chat(user, "<span class='notice'>You close \the [src].</span>")
|
||||
slowdown = initial(slowdown)
|
||||
w_class = initial(w_class)
|
||||
else
|
||||
user << "<span class='notice'>You open \the [src].</span>"
|
||||
to_chat(user, "<span class='notice'>You open \the [src].</span>")
|
||||
slowdown = slowdown_open
|
||||
w_class = w_class_open
|
||||
|
||||
|
||||
Reference in New Issue
Block a user