Skip to content

Commit 9e6ac92

Browse files
Merge pull request #5293 from MistakeNot4892/dev
Pulling splint fix into dev.
2 parents c521912 + 8c52909 commit 9e6ac92

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

code/game/objects/items/weapons/material/stick.dm

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
if(!sharp && (istype(used_item, /obj/item/stack/material/bolt) || istype(used_item, /obj/item/stack/material/bundle)))
2828

2929
var/choice = input(user, "Do you want to make a torch, or a splint?", "Stick Crafting") as null|anything in list("Torch", "Splint")
30-
if(!choice || QDELETED(user) || user.get_active_held_item() != used_item || QDELETED(used_item) || !QDELETED(src) || (loc != user && !Adjacent(user)) || sharp)
30+
if(!choice || QDELETED(user) || user.get_active_held_item() != used_item || QDELETED(used_item) || QDELETED(src) || (loc != user && !Adjacent(user)) || sharp)
3131
return TRUE
3232

3333
var/obj/item/stack/material/cloth = used_item
@@ -54,7 +54,11 @@
5454
var/was_held = (loc == user)
5555
cloth.use(cloth_cost)
5656
if(!was_held || user.try_unequip(src))
57-
var/obj/item/thing = new product_type(get_turf(src), material?.type, used_item.material?.type)
57+
var/obj/item/thing
58+
if(ispath(product_type, /obj/item/stack))
59+
thing = new product_type(get_turf(src), 1, material?.type, used_item.material?.type)
60+
else
61+
thing = new product_type(get_turf(src), material?.type, used_item.material?.type)
5862
if(was_held)
5963
user.put_in_hands(thing)
6064
to_chat(user, SPAN_NOTICE("You fashion \the [src] into \a [thing]."))
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
/datum/map/shaded_hills
2-
apc_test_exempt_areas = list(
3-
/area/space = NO_SCRUBBER|NO_VENT|NO_APC,
4-
/area/shaded_hills = NO_SCRUBBER|NO_VENT|NO_APC
5-
)
1+
/datum/map/shaded_hills/New()
2+
LAZYDISTINCTADD(area_coherency_test_exempted_root_areas, /area/shaded_hills/outside)
3+
LAZYSET(apc_test_exempt_areas, /area/shaded_hills, (NO_SCRUBBER|NO_VENT|NO_APC))
4+
..()

0 commit comments

Comments
 (0)