Skip to content

Commit

Permalink
Update bed.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
AndroBetel committed Aug 5, 2024
1 parent eff5a94 commit f05e5ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/game/objects/structures/stool_bed_chair_nest/bed.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
var/buildstackamount = 1
var/foldabletype //To fold into an item (e.g. roller bed item)
var/buckling_y = 0 //pixel y shift to give to the buckled mob.
var/buckling_x = 0 //pixel x shift to give to the buckled mob.
var/obj/structure/closet/bodybag/buckled_bodybag
var/accepts_bodybag = FALSE //Whether you can buckle bodybags to this bed
var/base_bed_icon //Used by beds that change sprite when something is buckled to them
Expand Down Expand Up @@ -60,11 +61,15 @@
if(. && buckled_mob == M)
M.pixel_y = buckling_y
M.old_y = buckling_y
M.pixel_x = buckling_x
M.old_x = buckling_x
if(base_bed_icon)
density = TRUE
else
M.pixel_y = initial(buckled_mob.pixel_y)
M.old_y = initial(buckled_mob.pixel_y)
M.pixel_x = initial(buckled_mob.pixel_x)
M.old_x = initial(buckled_mob.pixel_x)
if(base_bed_icon)
density = FALSE

Expand Down

0 comments on commit f05e5ae

Please sign in to comment.