Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 21 additions & 8 deletions code/modules/clothing/rogueclothes/shoes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,28 @@
bloody_icon_state = "shoeblood"
equip_delay_self = 30
w_class = WEIGHT_CLASS_SMALL

/obj/item/clothing/shoes/roguetown/boots/ComponentInitialize()
var/atom/movable/holdingknife = null

/obj/item/clothing/shoes/roguetown/attackby(obj/item/W, mob/living/carbon/user, params)
if(istype(W, /obj/item/rogueweapon/huntingknife))
if(holdingknife == null)
for(var/obj/item/clothing/shoes/roguetown/B in user.get_equipped_items(TRUE))
to_chat(loc, span_warning("I quickly slot [W] into [B]!"))
user.transferItemToLoc(W, holdingknife)
holdingknife = W
playsound(loc, 'sound/foley/equip/swordsmall1.ogg')
else
to_chat(loc, span_warning("My boot already holds a throwing knife."))
return
. = ..()
AddComponent(/datum/component/storage/concrete)
var/datum/component/storage/STR = GetComponent(/datum/component/storage)
if(STR)
STR.max_combined_w_class = 3
STR.max_w_class = WEIGHT_CLASS_NORMAL
STR.max_items = 1

/obj/item/clothing/shoes/roguetown/attack_right(mob/user)
if(holdingknife != null)
if(!user.get_active_held_item())
user.put_in_active_hand(holdingknife, user.active_hand_index)
holdingknife = null
playsound(loc, 'sound/foley/equip/swordsmall1.ogg')
return TRUE

/obj/item/clothing/shoes/roguetown/boots
name = "dark boots"
Expand Down