Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Fixes #34153 #1052

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions code/game/objects/structures/bedsheet_bin.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@ LINEN BINS
throw_range = 2
w_class = ITEM_SIZE_SMALL

/obj/item/bedsheet/attackby(obj/item/I, mob/user)
if(is_sharp(I))
user.visible_message(SPAN_NOTICE("\The [user] begins cutting up \the [src] with \a [I]."), SPAN_NOTICE("You begin cutting up \the [src] with \the [I]."))
if(do_after(user, 5 SECONDS, src, DO_REPAIR_CONSTRUCT))
/obj/item/bedsheet/use_tool(obj/item/tool, mob/living/user, list/click_params)
if (is_sharp(tool))
user.visible_message(SPAN_NOTICE("\The [user] begins cutting up \the [src] with \a [tool]."), SPAN_NOTICE("You begin cutting up \the [src] with \the [tool]."))
if (do_after(user, 5 SECONDS, src, DO_REPAIR_CONSTRUCT))
to_chat(user, SPAN_NOTICE("You cut \the [src] into pieces!"))
for(var/i in 1 to rand(2,5))
new /obj/item/reagent_containers/glass/rag(get_turf(src))
qdel(src)
return
..()
return TRUE

/obj/item/bedsheet/blue
icon_state = "sheetblue"
Expand Down
4 changes: 2 additions & 2 deletions code/game/objects/structures/stool_bed_chair_nest/bed.dm
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
add_padding(padding_type)
return TRUE

// Wirecutters - Remove padding
if (isWirecutter(tool))
// Sharp items - Remove padding
if (is_sharp(tool))
if (!padding_material)
USE_FEEDBACK_FAILURE("\The [src] has no padding to remove.")
return TRUE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ var/global/list/stool_cache = list() //haha stool
to_chat(user, "You add padding to \the [src].")
add_padding(padding_type)
return
else if(isWirecutter(W))
else if (is_sharp(W))
if(!padding_material)
to_chat(user, "\The [src] has no padding to remove.")
return
Expand Down
4 changes: 2 additions & 2 deletions code/modules/materials/definitions/materials_organic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
flags = MATERIAL_PADDING
brute_armor = 1
conductive = 0
stack_type = null
stack_type = /obj/item/stack/material/cloth
hidden_from_codex = TRUE
construction_difficulty = MATERIAL_NORMAL_DIY

Expand Down Expand Up @@ -133,7 +133,7 @@
sheet_singular_name = "tile"
sheet_plural_name = "tiles"
conductive = 0
stack_type = null
stack_type = /obj/item/stack/tile/carpet
construction_difficulty = MATERIAL_NORMAL_DIY

/material/skin
Expand Down
2 changes: 1 addition & 1 deletion test/check-paths.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ exactly 0 "simulated = 0/1" 'simulated\s*=\s*\d' -P
exactly 2 "var/ in proc arguments" '(^/[^/].+/.+?\(.*?)var/' -P
exactly 0 "tmp/ vars" 'var.*/tmp/' -P
exactly 6 "uses of .len" '\.len\b' -P
exactly 389 "attackby() override" '\/attackby\((.*)\)' -P
exactly 388 "attackby() override" '\/attackby\((.*)\)' -P
exactly 15 "uses of examine()" '[.|\s]examine\(' -P # If this fails it's likely because you used '/atom/proc/examine(mob)' instead of '/proc/examinate(mob, atom)' - Exception: An examine()-proc may call other examine()-procs
exactly 7 "direct modifications of overlays list" '\boverlays((\s*[|^=+&-])|(\.(Cut)|(Add)|(Copy)|(Remove)|(Remove)))' -P
# With the potential exception of << if you increase any of these numbers you're probably doing it wrong
Expand Down