Bolas, Leather Drying Thing, Holster Crafting, and Lances

This commit is contained in:
Captain277
2022-02-16 20:06:32 -08:00
parent 4c3d96cc84
commit 1d71267d66
5 changed files with 97 additions and 18 deletions

View File

@@ -375,3 +375,79 @@
tools = list(TOOL_WIRECUTTER) tools = list(TOOL_WIRECUTTER)
time = 20 time = 20
*/ */
//Holsters
/datum/crafting_recipe/holster_shoulder
name = "Holster (Shoulder)"
result = /obj/item/clothing/accessory/holster
time = 35
tools = list(TOOL_WIRECUTTER,
TOOL_SCREWDRIVER)
reqs = list(/obj/item/stack/material/plastic = 2,
/obj/item/stack/material/cloth = 1,
/obj/item/stack/material/leather = 5)
category = CAT_CLOTHING
/datum/crafting_recipe/holster_armpit
name = "Holster (Armpit)"
result = /obj/item/clothing/accessory/holster/armpit
time = 35
tools = list(TOOL_WIRECUTTER,
TOOL_SCREWDRIVER)
reqs = list(/obj/item/stack/material/plastic = 2,
/obj/item/stack/material/cloth = 1,
/obj/item/stack/material/leather = 5)
category = CAT_CLOTHING
/datum/crafting_recipe/holster_waist
name = "Holster (Waist)"
result = /obj/item/clothing/accessory/holster/waist
time = 35
tools = list(TOOL_WIRECUTTER,
TOOL_SCREWDRIVER)
reqs = list(/obj/item/stack/material/plastic = 2,
/obj/item/stack/material/cloth = 1,
/obj/item/stack/material/leather = 5)
category = CAT_CLOTHING
/datum/crafting_recipe/holster_hip
name = "Holster (Hip)"
result = /obj/item/clothing/accessory/holster/hip
time = 35
tools = list(TOOL_WIRECUTTER,
TOOL_SCREWDRIVER)
reqs = list(/obj/item/stack/material/plastic = 2,
/obj/item/stack/material/cloth = 1,
/obj/item/stack/material/leather = 5)
category = CAT_CLOTHING
/datum/crafting_recipe/holster_leg
name = "Holster (Leg))"
result = /obj/item/clothing/accessory/holster/leg
time = 35
tools = list(TOOL_WIRECUTTER,
TOOL_SCREWDRIVER)
reqs = list(/obj/item/stack/material/plastic = 2,
/obj/item/stack/material/cloth = 1,
/obj/item/stack/material/leather = 5)
category = CAT_CLOTHING
/datum/crafting_recipe/holster_machete
name = "Holster (Machete)"
result = /obj/item/clothing/accessory/holster/machete
time = 35
tools = list(TOOL_WIRECUTTER,
TOOL_SCREWDRIVER)
reqs = list(/obj/item/stack/material/plastic = 4,
/obj/item/stack/material/leather = 6)
category = CAT_CLOTHING
/datum/crafting_recipe/holster_kineticaccel
name = "Holster (Kinetic Accelerator)"
result = /obj/item/clothing/accessory/holster/waist/kinetic_accelerator
time = 35
tools = list(TOOL_WIRECUTTER,
TOOL_SCREWDRIVER)
reqs = list(/obj/item/stack/material/steel = 3,
/obj/item/stack/material/leather = 8)
category = CAT_CLOTHING

View File

@@ -333,14 +333,9 @@ var/last_chew = 0
breakouttime = 30 breakouttime = 30
cuff_sound = 'sound/weapons/towelwipe.ogg' //Is there anything this sound can't do? cuff_sound = 'sound/weapons/towelwipe.ogg' //Is there anything this sound can't do?
/obj/item/handcuffs/legcuffs/bola/can_place(var/mob/target, var/mob/user) /obj/item/handcuffs/legcuffs/bola/throw_impact(var/mob/living/carbon/target)
if(user) //A ranged legcuff, until proper implementation as items it remains a projectile-only thing.
return 1
/obj/item/handcuffs/legcuffs/bola/dropped()
. = ..() . = ..()
visible_message("<span class='notice'>\The [src] falls apart!</span>") place_legcuffs()
qdel(src)
/obj/item/handcuffs/legcuffs/bola/place_legcuffs(var/mob/living/carbon/target, var/mob/user) /obj/item/handcuffs/legcuffs/bola/place_legcuffs(var/mob/living/carbon/target, var/mob/user)
playsound(src.loc, cuff_sound, 30, 1, -2) playsound(src.loc, cuff_sound, 30, 1, -2)

View File

@@ -214,9 +214,11 @@
user.say("[war_cry]") user.say("[war_cry]")
explosive.detonate() explosive.detonate()
/obj/item/material/twohanded/spear/proc/grenade_prime_react(obj/item/grenade/nade) //Citadel edit, removes throw_impact because memes /obj/item/material/twohanded/spear/throw_impact(atom/hit_atom)
nade.forceMove(get_turf(src)) . = ..()
qdel(src) if(explosive)
explosive.detonate()
qdel(src)
/obj/item/material/twohanded/spear/AltClick(mob/user) /obj/item/material/twohanded/spear/AltClick(mob/user)
. = ..() . = ..()

View File

@@ -150,7 +150,7 @@
if (S.dried_type) if (S.dried_type)
return 1 return 1
if(istype(O, /obj/item/stack/wetleather)) if(istype(O, /obj/item/stack/wetleather))
var/obj/item/stack/wetleather/WL = 0 var/obj/item/stack/wetleather/WL = O
if (WL.wetness == 30) if (WL.wetness == 30)
return 1 return 1
return 0 return 0
@@ -182,11 +182,15 @@
/obj/machinery/smartfridge/drying_rack/attackby(var/obj/item/O as obj, mob/user) /obj/machinery/smartfridge/drying_rack/attackby(var/obj/item/O as obj, mob/user)
. = ..() . = ..()
if(istype(O, /obj/item/stack/wetleather)) if(istype(O, /obj/item/stack/wetleather/))
var/obj/item/stack/wetleather/WL = O var/obj/item/stack/wetleather/WL = O
user.remove_from_mob(WL) if(WL.amount > 2)
stock(WL) to_chat("<span class='notice'>The rack can only fit one sheet at a time!</span>")
user.visible_message("<span class='notice'>[user] has added \the [WL] to \the [src].</span>", "<span class='notice'>You add \the [WL] to \the [src].</span>") return 1
else
user.remove_from_mob(WL)
stock(WL)
user.visible_message("<span class='notice'>[user] has added \the [WL] to \the [src].</span>", "<span class='notice'>You add \the [WL] to \the [src].</span>")
/obj/machinery/smartfridge/drying_rack/proc/dry() /obj/machinery/smartfridge/drying_rack/proc/dry()
for(var/datum/stored_item/I in item_records) for(var/datum/stored_item/I in item_records)
@@ -204,9 +208,11 @@
qdel(S) qdel(S)
return return
for(var/obj/item/stack/wetleather/WL in I.instances) for(var/obj/item/stack/wetleather/WL in I.instances)
WL.wetness = 0 WL.use(1)
WL.fire_act() I.instances -= WL
return var/L = /obj/item/stack/material/leather
new L(get_turf(src))
return
/obj/machinery/smartfridge/process(delta_time) /obj/machinery/smartfridge/process(delta_time)
if(stat & (BROKEN|NOPOWER)) if(stat & (BROKEN|NOPOWER))

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB