mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
106 lines
3.9 KiB
Plaintext
106 lines
3.9 KiB
Plaintext
/*
|
|
* Wrench
|
|
*/
|
|
/obj/item/weapon/tool/wrench
|
|
name = "wrench"
|
|
desc = "A wrench with many common uses. Can be usually found in your hand."
|
|
icon = 'icons/obj/tools.dmi'
|
|
icon_state = "wrench"
|
|
slot_flags = SLOT_BELT
|
|
force = 6
|
|
throwforce = 7
|
|
w_class = ITEMSIZE_SMALL
|
|
origin_tech = list(TECH_MATERIAL = 1, TECH_ENGINEERING = 1)
|
|
matter = list(DEFAULT_WALL_MATERIAL = 150)
|
|
attack_verb = list("bashed", "battered", "bludgeoned", "whacked")
|
|
usesound = 'sound/items/ratchet.ogg'
|
|
toolspeed = 1
|
|
drop_sound = 'sound/items/drop/wrench.ogg'
|
|
pickup_sound = 'sound/items/pickup/wrench.ogg'
|
|
|
|
/obj/item/weapon/tool/wrench/is_wrench()
|
|
return TRUE
|
|
|
|
/obj/item/weapon/tool/wrench/cyborg
|
|
name = "automatic wrench"
|
|
desc = "An advanced robotic wrench. Can be found in industrial synthetic shells."
|
|
usesound = 'sound/items/drill_use.ogg'
|
|
toolspeed = 0.5
|
|
|
|
/obj/item/weapon/tool/wrench/hybrid // Slower and bulkier than normal power tools, but it has the power of reach. If reach even worked half the time.
|
|
name = "strange wrench"
|
|
desc = "A wrench with many common uses. Can be usually found in your hand."
|
|
icon = 'icons/obj/tools.dmi'
|
|
icon_state = "hybwrench"
|
|
slot_flags = SLOT_BELT
|
|
force = 8
|
|
throwforce = 10
|
|
w_class = ITEMSIZE_NORMAL
|
|
slowdown = 0.1
|
|
origin_tech = list(TECH_MATERIAL = 3, TECH_ENGINEERING = 3, TECH_PHORON = 2)
|
|
attack_verb = list("bashed", "battered", "bludgeoned", "whacked", "warped", "blasted")
|
|
usesound = 'sound/effects/stealthoff.ogg'
|
|
toolspeed = 0.5
|
|
reach = 2
|
|
|
|
|
|
/datum/category_item/catalogue/anomalous/precursor_a/alien_wrench
|
|
name = "Precursor Alpha Object - Fastener Torque Tool"
|
|
desc = "This is an object that has a distinctive tool shape. \
|
|
It has a handle on one end, with a simple mechanism attached to it. \
|
|
On the other end is the head of the tool, with two sides each glowing \
|
|
a different color. The head opens up towards the top, in a similar shape \
|
|
as a conventional wrench.\
|
|
<br><br>\
|
|
When an object is placed into the head section of the tool, the tool appears \
|
|
to force the object to be turned in a specific direction. The direction can be \
|
|
inverted by pressing down on the mechanism on the handle. It is not known if \
|
|
this tool was intended by its creators to tighten fasteners or if it has a less obvious \
|
|
purpose, however it is very well suited to act in a wrench's capacity regardless."
|
|
value = CATALOGUER_REWARD_EASY
|
|
|
|
/obj/item/weapon/tool/wrench/alien
|
|
name = "alien wrench"
|
|
desc = "A polarized wrench. It causes anything placed between the jaws to turn."
|
|
catalogue_data = list(/datum/category_item/catalogue/anomalous/precursor_a/alien_wrench)
|
|
icon = 'icons/obj/abductor.dmi'
|
|
icon_state = "wrench"
|
|
usesound = 'sound/effects/empulse.ogg'
|
|
toolspeed = 0.1
|
|
origin_tech = list(TECH_MATERIAL = 5, TECH_ENGINEERING = 5)
|
|
|
|
/obj/item/weapon/tool/wrench/power
|
|
name = "hand drill"
|
|
desc = "A simple powered hand drill. It's fitted with a bolt bit."
|
|
icon_state = "drill_bolt"
|
|
item_state = "drill"
|
|
usesound = 'sound/items/drill_use.ogg'
|
|
matter = list(DEFAULT_WALL_MATERIAL = 150, MAT_SILVER = 50)
|
|
origin_tech = list(TECH_MATERIAL = 2, TECH_ENGINEERING = 2)
|
|
force = 8
|
|
w_class = ITEMSIZE_SMALL
|
|
throwforce = 8
|
|
attack_verb = list("drilled", "screwed", "jabbed")
|
|
toolspeed = 0.25
|
|
var/obj/item/weapon/tool/screwdriver/power/counterpart = null
|
|
|
|
/obj/item/weapon/tool/wrench/power/New(newloc, no_counterpart = TRUE)
|
|
..(newloc)
|
|
if(!counterpart && no_counterpart)
|
|
counterpart = new(src, FALSE)
|
|
counterpart.counterpart = src
|
|
|
|
/obj/item/weapon/tool/wrench/power/Destroy()
|
|
if(counterpart)
|
|
counterpart.counterpart = null // So it can qdel cleanly.
|
|
QDEL_NULL(counterpart)
|
|
return ..()
|
|
|
|
/obj/item/weapon/tool/wrench/power/attack_self(mob/user)
|
|
playsound(src,'sound/items/change_drill.ogg',50,1)
|
|
user.drop_item(src)
|
|
counterpart.forceMove(get_turf(src))
|
|
src.forceMove(counterpart)
|
|
user.put_in_active_hand(counterpart)
|
|
to_chat(user, "<span class='notice'>You attach the screw driver bit to [src].</span>")
|