mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 06:22:26 +01:00
Add hammers (#12505)
This commit is contained in:
@@ -76,6 +76,9 @@
|
||||
w_class = ITEMSIZE_NORMAL
|
||||
origin_tech = list(TECH_MATERIAL = 3, TECH_ILLEGAL = 2)
|
||||
|
||||
/obj/item/melee/hammer/ishammer()
|
||||
return TRUE
|
||||
|
||||
/obj/item/melee/hammer/powered
|
||||
name = "powered hammer"
|
||||
desc = "A heavily modified plasteel hammer, it seems to be powered by a robust hydraulic system."
|
||||
|
||||
@@ -100,6 +100,7 @@
|
||||
/obj/item/weldingtool,
|
||||
/obj/item/wirecutters,
|
||||
/obj/item/wrench,
|
||||
/obj/item/hammer,
|
||||
/obj/item/device/multitool,
|
||||
/obj/item/device/flashlight,
|
||||
/obj/item/stack/cable_coil,
|
||||
@@ -139,7 +140,8 @@
|
||||
/obj/item/crowbar = 1,
|
||||
/obj/item/wirecutters/toolbelt = 1,
|
||||
/obj/item/stack/cable_coil/random = 1,
|
||||
/obj/item/powerdrill = 1
|
||||
/obj/item/powerdrill = 1,
|
||||
/obj/item/hammer = 1
|
||||
)
|
||||
|
||||
/obj/item/storage/belt/utility/very_full
|
||||
|
||||
@@ -955,3 +955,36 @@
|
||||
|
||||
new /obj/effect/decal/cleanable/ash(get_turf(src))
|
||||
qdel(src)
|
||||
|
||||
|
||||
/obj/item/hammer
|
||||
name = "hammer"
|
||||
desc = "A tool with a weighted head used for striking."
|
||||
icon = 'icons/obj/tools.dmi'
|
||||
item_icons = list(
|
||||
slot_l_hand_str = 'icons/mob/items/lefthand_tools.dmi',
|
||||
slot_r_hand_str = 'icons/mob/items/righthand_tools.dmi',
|
||||
)
|
||||
icon_state = "hammer"
|
||||
item_state = "hammer"
|
||||
flags = CONDUCT
|
||||
slot_flags = SLOT_BELT
|
||||
force = 8
|
||||
throwforce = 5
|
||||
throw_speed = 3
|
||||
throw_range = 3
|
||||
w_class = ITEMSIZE_SMALL
|
||||
matter = list(DEFAULT_WALL_MATERIAL = 75)
|
||||
attack_verb = list("smashed", "hammered")
|
||||
drop_sound = 'sound/items/drop/crowbar.ogg'
|
||||
pickup_sound = 'sound/items/pickup/crowbar.ogg'
|
||||
usesound = /decl/sound_category/crowbar_sound
|
||||
|
||||
/obj/item/hammer/Initialize()
|
||||
. = ..()
|
||||
var/mutable_appearance/handle = mutable_appearance('icons/obj/tools.dmi', "hammer_handle")
|
||||
handle.color = pick(COLOR_BLUE, COLOR_RED, COLOR_PURPLE, COLOR_BROWN, COLOR_GREEN, COLOR_CYAN, COLOR_YELLOW)
|
||||
add_overlay(handle)
|
||||
|
||||
/obj/item/hammer/ishammer()
|
||||
return TRUE
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
/obj/item/weldingtool,
|
||||
/obj/item/crowbar,
|
||||
/obj/item/wrench,
|
||||
/obj/item/hammer,
|
||||
/obj/item/device/flashlight
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user