Fixes bed offset

This commit is contained in:
Vivalas
2017-06-19 20:45:20 -05:00
parent e8121cb72f
commit 88f32290fc
2 changed files with 12 additions and 1 deletions
@@ -17,10 +17,20 @@
burntime = 30
buildstackamount = 2
var/movable = 0 // For mobility checks
var/x_offset = 0
var/y_offset = -6
/obj/structure/stool/bed/MouseDrop(atom/over_object)
..(over_object, skip_fucking_stool_shit = 1)
/obj/structure/stool/bed/post_buckle_mob(mob/living/M)
if(M == buckled_mob)
M.pixel_y = y_offset
M.pixel_x = x_offset
else
M.pixel_y = M.get_standard_pixel_y_offset()
M.pixel_x = M.get_standard_pixel_x_offset()
/obj/structure/stool/psychbed
name = "psych bed"
desc = "For prime comfort during psychiatric evaluations."
@@ -36,6 +46,7 @@
anchored = 0
buildstackamount = 10
buildstacktype = /obj/item/stack/sheet/wood
y_offset = 0
/obj/structure/stool/bed/dogbed/ian
name = "Ian's bed"
@@ -5,7 +5,7 @@
buckle_lying = 0 //you sit in a chair, not lay
burn_state = FIRE_PROOF
buildstackamount = 1
y_offset = 0
var/propelled = 0 // Check for fire-extinguisher-driven chairs
/obj/structure/stool/bed/chair/New()