Alien beds no longer pretend they can be deconstructed with a wrench (#85883)

## About The Pull Request
Closes #85826

## Changelog
🆑
fix: Alien beds no longer pretend they can be deconstructed with a
wrench
/🆑
This commit is contained in:
SmArtKar
2024-08-17 16:34:50 +02:00
committed by GitHub
parent 69e3c0eaf1
commit 369e09fcb6
2 changed files with 7 additions and 5 deletions
@@ -13,6 +13,7 @@
canSmoothWith = SMOOTH_GROUP_ALIEN_NEST
build_stack_type = null
elevation = 0
can_deconstruct = FALSE
var/static/mutable_appearance/nest_overlay = mutable_appearance('icons/mob/nonhuman-player/alien.dmi', "nestoverlay", LYING_MOB_LAYER)
/obj/structure/bed/nest/add_context(atom/source, list/context, obj/item/held_item, mob/living/user)
@@ -21,10 +22,6 @@
return ..()
/obj/structure/bed/nest/wrench_act_secondary(mob/living/user, obj/item/weapon)
return ITEM_INTERACT_BLOCKING
/obj/structure/bed/nest/user_unbuckle_mob(mob/living/captive, mob/living/hero)
if(!length(buckled_mobs))
return
@@ -25,6 +25,8 @@
var/build_stack_amount = 2
/// Mobs standing on it are nudged up by this amount. Also used to align the person back when buckled to it after init.
var/elevation = 8
/// If this bed can be deconstructed using a wrench
var/can_deconstruct = TRUE
/obj/structure/bed/Initialize(mapload)
. = ..()
@@ -35,7 +37,8 @@
/obj/structure/bed/examine(mob/user)
. = ..()
. += span_notice("It's held together by a couple of <b>bolts</b>.")
if (can_deconstruct)
. += span_notice("It's held together by a couple of <b>bolts</b>.")
/obj/structure/bed/add_context(atom/source, list/context, obj/item/held_item, mob/living/user)
if(held_item)
@@ -57,6 +60,8 @@
return attack_hand(user, modifiers)
/obj/structure/bed/wrench_act_secondary(mob/living/user, obj/item/weapon)
if (!can_deconstruct)
return NONE
..()
weapon.play_tool_sound(src)
deconstruct(disassembled = TRUE)