Skip to content

Commit

Permalink
Finally got it to actually compile
Browse files Browse the repository at this point in the history
  • Loading branch information
boniondev committed May 7, 2024
1 parent ccb190c commit c16df7d
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions code/game/objects/items/melee/concussive_hammer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,27 @@
inhand_icon_state = "default"
attack_verb_continuous = list("strikes")
attack_verb_simple = list("strike")
actions = list(/datum/action/cooldown/spell/concuss)

slot_flags = ITEM_SLOT_BELT + ITEM_SLOT_BACK
w_class = WEIGHT_CLASS_HUGE
var/datum/action/cooldown/spell/touch/concuss = new

/datum/action/cooldown/spell/touch/concuss
name = "Concuss"
desc = "TBD"
background_icon_state = ACTION_BUTTON_DEFAULT_BACKGROUND
overlay_icon_state = "bg_default_border"

/obj/item/melee/concuhammer/Initialize(mapload)
. = ..()
AddComponent(/datum/component/two_handed)

/datum/action/cooldown/spell/concuss
name = "Concuss"
desc = "TBD"
/obj/item/melee/concuhammer/equipped(mob/living/owner, slot)
. = ..()
if(slot & ITEM_SLOT_HANDS)
concuss.Grant(owner)

/obj/item/melee/concuhammer/dropped(mob/living/owner, slot)
. = ..()
if(owner.get_item_by_slot(ITEM_SLOT_HANDS) == src)
concuss.Remove(owner)

0 comments on commit c16df7d

Please sign in to comment.