mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +01:00
[MIRROR] Bedsheet Directional Rotational Bigly Large Fix [MDB IGNORE] (#12816)
* Bedsheet Directional Rotational Bigly Large Fix (#66144) * Bedsheet Directional Rotational Bigly Large Fix Co-authored-by: san7890 <34697715+san7890@users.noreply.github.com>
This commit is contained in:
@@ -38,7 +38,7 @@ LINEN BINS
|
||||
stack_amount *= 2
|
||||
dying_key = DYE_REGISTRY_DOUBLE_BEDSHEET
|
||||
|
||||
/obj/item/bedsheet/attack_self(mob/user)
|
||||
/obj/item/bedsheet/attack_self(mob/living/user)
|
||||
if(!user.CanReach(src)) //No telekenetic grabbing.
|
||||
return
|
||||
if(!user.dropItemToGround(src))
|
||||
@@ -53,6 +53,13 @@ LINEN BINS
|
||||
layer = initial(layer)
|
||||
plane = initial(plane)
|
||||
to_chat(user, span_notice("You smooth [src] out beneath you."))
|
||||
if(user.body_position == LYING_DOWN) //The player isn't laying down currently
|
||||
dir = user.dir
|
||||
else
|
||||
if(user.dir & WEST) //The player is rotated to the right, lay the sheet left!
|
||||
dir = WEST
|
||||
else //The player is rotated to the left, lay the sheet right!
|
||||
dir = EAST
|
||||
add_fingerprint(user)
|
||||
return
|
||||
|
||||
@@ -312,7 +319,8 @@ LINEN BINS
|
||||
/obj/item/bedsheet/ian,
|
||||
/obj/item/bedsheet/cosmos,
|
||||
/obj/item/bedsheet/nanotrasen))
|
||||
new type(loc)
|
||||
var/obj/item/bedsheet = new type(loc)
|
||||
bedsheet.dir = dir
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
/obj/item/bedsheet/double
|
||||
@@ -492,7 +500,8 @@ LINEN BINS
|
||||
/obj/item/bedsheet/ian/double,
|
||||
/obj/item/bedsheet/cosmos/double,
|
||||
/obj/item/bedsheet/nanotrasen/double))
|
||||
new type(loc)
|
||||
var/obj/item/bedsheet = new type(loc)
|
||||
bedsheet.dir = dir
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
/obj/structure/bedsheetbin
|
||||
|
||||
Reference in New Issue
Block a user