Skip to content

Commit

Permalink
Gorlex Sledgehammer (#3718)
Browse files Browse the repository at this point in the history
## About The Pull Request

Adds the Breaching Sledgehammer, a melee weapon utilized by the Gorlex
Marauder splinters both for combat and as a powerful demolition / mining
implement.

Sprites by @Imaginos16 


![image](https://github.com/user-attachments/assets/c9382aa2-8831-42ee-994f-4acbc6d8b22d)

Originally was going to make them do increased damage to structures but
its already 30 force it'll crack open most things with no issue

## Why It's Good For The Game

Gorlex uses mining tools like this sledgehammer in lore, its reflective
of their origins and is also cool as hell.

## Changelog

:cl:
add: Adds the Gorlex Marauder Breaching Sledgehammer, for both utility
and combat. Available in the black market.
add: Sledgehammers are mapped in on the Kali and Derecho-class
/:cl:
  • Loading branch information
generalthrax authored Nov 28, 2024
1 parent 936998a commit 288bf8e
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 2 deletions.
4 changes: 4 additions & 0 deletions _maps/shuttles/syndicate/syndicate_ngr_derecho.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -3529,6 +3529,10 @@
/obj/machinery/light/small/directional/south,
/obj/machinery/firealarm/directional/east,
/obj/effect/decal/cleanable/dirt/dust,
/obj/item/melee/axe/sledgehammer,
/obj/item/melee/axe/sledgehammer{
pixel_x = 5
},
/turf/open/floor/pod,
/area/ship/storage/equip)
"DD" = (
Expand Down
2 changes: 1 addition & 1 deletion _maps/shuttles/syndicate/syndicate_ngr_kaliandhi.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -6125,8 +6125,8 @@
/area/ship/security/armory)
"Ol" = (
/obj/structure/rack,
/obj/item/pickaxe,
/obj/machinery/airalarm/directional/south,
/obj/item/melee/axe/sledgehammer,
/turf/open/floor/plasteel/dark,
/area/ship/hallway/fore)
"On" = (
Expand Down
48 changes: 47 additions & 1 deletion code/game/objects/items/melee/fireaxe.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
icon = 'icons/obj/weapon/axe.dmi'
lefthand_file = 'icons/mob/inhands/weapons/axes_lefthand.dmi'
righthand_file = 'icons/mob/inhands/weapons/axes_righthand.dmi'
mob_overlay_icon = 'icons/mob/clothing/back.dmi'
force = 5
throwforce = 15
w_class = WEIGHT_CLASS_BULKY
Expand All @@ -12,7 +13,6 @@
max_integrity = 200
armor = list("melee" = 0, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 100, "acid" = 30)
resistance_flags = FIRE_PROOF
species_exception = list(/datum/species/kepori)

/obj/item/melee/axe/ComponentInitialize()
. = ..()
Expand Down Expand Up @@ -52,3 +52,49 @@
/obj/item/melee/axe/scrap/ComponentInitialize()
. = ..()
AddComponent(/datum/component/two_handed, force_unwielded=5, force_wielded=22, icon_wielded="[base_icon_state]_w")

/*
Blunt
*/
/obj/item/melee/axe/sledgehammer
icon_state = "sledgehammer"
base_icon_state = "sledgehammer"
name = "breaching sledgehammer"
desc = "A large hammer used by the Gorlex Marauder splinters. As powerful as a weapon as it is a shipbreaking and mining tool."
force = 5
armour_penetration = 40
attack_verb = list("bashed", "smashed", "crushed", "smacked")
hitsound = list('sound/weapons/genhit1.ogg', 'sound/weapons/genhit2.ogg', 'sound/weapons/genhit3.ogg')
slot_flags = ITEM_SLOT_BACK
sharpness = IS_BLUNT
toolspeed = 0.5
wall_decon_damage = MINERAL_WALL_INTEGRITY
usesound = list('sound/effects/picaxe1.ogg', 'sound/effects/picaxe2.ogg', 'sound/effects/picaxe3.ogg')
var/wielded = FALSE

/obj/item/melee/axe/sledgehammer/ComponentInitialize()
. = ..()
AddComponent(/datum/component/two_handed, force_unwielded=5, force_wielded=30, icon_wielded="[base_icon_state]_w")

/obj/item/melee/axe/sledgehammer/Initialize()
. = ..()
RegisterSignal(src, COMSIG_TWOHANDED_WIELD, PROC_REF(on_wield))
RegisterSignal(src, COMSIG_TWOHANDED_UNWIELD, PROC_REF(on_unwield))

/obj/item/melee/axe/sledgehammer/proc/on_wield(obj/item/source, mob/user)
SIGNAL_HANDLER

tool_behaviour = TOOL_MINING
wielded = TRUE

/obj/item/melee/axe/sledgehammer/proc/on_unwield(obj/item/source, mob/user)
SIGNAL_HANDLER

tool_behaviour = null
wielded = FALSE

/obj/item/melee/axe/sledgehammer/attack(mob/living/target, mob/living/user)
. = ..()
var/atom/throw_target = get_edge_target_turf(target, user.dir)
if(!target.anchored)
target.throw_at(throw_target, rand(1,2), 2, user, gentle = TRUE)
10 changes: 10 additions & 0 deletions code/modules/cargo/blackmarket/blackmarket_items/weapons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@
stock_max = 3
availability_prob = 40

/datum/blackmarket_item/weapon/sledgehammer
name = "Breaching Sledgehammer"
desc = "A Clique outfit had to ditch a lot of equipment to evade a Gezenan assault. This little piece breaks legs and walls like no other. You want in?"
item = /obj/item/melee/axe/sledgehammer

price_min = 2000
price_max = 3000
stock_max = 3
availability_prob = 30

/datum/blackmarket_item/weapon/powerfist
name = "Powerfist"
desc = "Need a bit more... omph in your right hook? This gas operated powerfist will put you in the heavyweight."
Expand Down
Binary file modified icons/mob/clothing/back.dmi
Binary file not shown.
Binary file modified icons/mob/inhands/weapons/axes_lefthand.dmi
Binary file not shown.
Binary file modified icons/mob/inhands/weapons/axes_righthand.dmi
Binary file not shown.
Binary file modified icons/obj/weapon/axe.dmi
Binary file not shown.

0 comments on commit 288bf8e

Please sign in to comment.