mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-18 04:41:27 +01:00
d5849910e5
* Begin clickcode attack_self fix Begins the work to make everything call back to parent for attack_self so that signals are sacred. * Makes MORE things call the attack_self() parent Yes, I could make special_handling a var on obj/item HOWEVER i want it to be specific so it can be tracked down later and ONLY the objects that use it can be refactored instead of sitting there literally forever and it just becoming 'a thing'. * Finishes making the rest of attack_self call parent. As mentioned, things such as 'specialty_goggles' 'special_handling' and the such are only there to help with attack_self until the attack_self is recoded for those items. * begone foul demon * some more cleanup * These * GOD this was annoying * yeh * Fix this * fLARES * Thesee too * toys! * Even more! * More fixes * Even more * rest of em * these too * Update syndie.dm * hardref clear * Update code/game/gamemodes/nuclear/pinpointer.dm * Update code/game/objects/effects/mines.dm * Update code/game/objects/items/blueprints_vr.dm * Update code/game/objects/items/blueprints_vr.dm * Update code/game/objects/items/contraband_vr.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/gunbox.dm * Update code/game/objects/items/gunbox.dm * Update code/game/objects/items/gunbox_vr.dm * Update code/game/objects/items/gunbox_vr.dm * Update code/game/objects/items/weapons/gift_wrappaper.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/crayons.dm * Update code/game/objects/items/gunbox.dm * these too * Update maintpanel_stack.dm * angry warning * Fixes packaged snacks. Fixes improper var default. * Special handling for these * proper poly types * Fixes magclaws Makes the 'features' it had just part of base magboots that can be adjusted via varswap. * Fixes jackets Fixes https://github.com/VOREStation/VOREStation/issues/18941 * Small bugfix Makes p_Theyre properly capitialize Makes examine show proper wording * Update gift_wrappaper.dm
106 lines
3.3 KiB
Plaintext
106 lines
3.3 KiB
Plaintext
/obj/item/clothing/accessory/storage
|
|
name = "load bearing equipment"
|
|
desc = "Used to hold things when you don't have enough hands."
|
|
icon_state = "webbing"
|
|
slot = ACCESSORY_SLOT_UTILITY
|
|
show_messages = 1
|
|
|
|
var/slots = 5
|
|
var/obj/item/storage/internal/hold
|
|
w_class = ITEMSIZE_NORMAL
|
|
on_rolled = list("down" = "none")
|
|
var/hide_on_roll = FALSE
|
|
special_handling = TRUE
|
|
|
|
/obj/item/clothing/accessory/storage/Initialize(mapload)
|
|
. = ..()
|
|
hold = new/obj/item/storage/internal(src)
|
|
hold.max_storage_space = slots * 2
|
|
hold.max_w_class = ITEMSIZE_SMALL
|
|
if (!hide_on_roll)
|
|
on_rolled["down"] = icon_state
|
|
|
|
/obj/item/clothing/accessory/storage/attack_hand(mob/user)
|
|
if (has_suit) //if we are part of a suit
|
|
hold.open(user)
|
|
return
|
|
|
|
if (hold.handle_attack_hand(user)) //otherwise interact as a regular storage item
|
|
..(user)
|
|
|
|
/obj/item/clothing/accessory/storage/MouseDrop(obj/over_object)
|
|
if (has_suit)
|
|
return
|
|
|
|
if (hold.handle_mousedrop(usr, over_object))
|
|
..(over_object)
|
|
|
|
/obj/item/clothing/accessory/storage/attackby(obj/item/W, mob/user)
|
|
return hold.attackby(W, user)
|
|
|
|
/obj/item/clothing/accessory/storage/attack_self(mob/user)
|
|
. = ..(user)
|
|
if(.)
|
|
return TRUE
|
|
to_chat(user, span_notice("You empty [src]."))
|
|
var/turf/T = get_turf(src)
|
|
hold.hide_from(user)
|
|
for(var/obj/item/I in hold.contents)
|
|
hold.remove_from_storage(I, T)
|
|
add_fingerprint(user)
|
|
|
|
/obj/item/clothing/accessory/storage/webbing
|
|
name = "webbing"
|
|
desc = "Sturdy mess of synthcotton belts and buckles, ready to share your burden."
|
|
icon_state = "webbing"
|
|
slots = 3
|
|
|
|
/obj/item/clothing/accessory/storage/black_vest
|
|
name = "black webbing vest"
|
|
desc = "Robust black synthcotton vest with lots of pockets to hold whatever you need, but cannot hold in hands."
|
|
icon_state = "vest_black"
|
|
|
|
/obj/item/clothing/accessory/storage/brown_vest
|
|
name = "brown webbing vest"
|
|
desc = "Worn brownish synthcotton vest with lots of pockets to unload your hands."
|
|
icon_state = "vest_brown"
|
|
|
|
/obj/item/clothing/accessory/storage/white_vest
|
|
name = "white webbing vest"
|
|
desc = "Durable white synthcotton vest with lots of pockets to carry essentials."
|
|
icon_state = "vest_white"
|
|
|
|
/obj/item/clothing/accessory/storage/black_drop_pouches
|
|
name = "black drop pouches"
|
|
gender = PLURAL
|
|
desc = "Robust black synthcotton bags to hold whatever you need, but cannot hold in hands."
|
|
icon_state = "thigh_black"
|
|
|
|
/obj/item/clothing/accessory/storage/brown_drop_pouches
|
|
name = "brown drop pouches"
|
|
gender = PLURAL
|
|
desc = "Worn brownish synthcotton bags to hold whatever you need, but cannot hold in hands."
|
|
icon_state = "thigh_brown"
|
|
|
|
/obj/item/clothing/accessory/storage/white_drop_pouches
|
|
name = "white drop pouches"
|
|
gender = PLURAL
|
|
desc = "Durable white synthcotton bags to hold whatever you need, but cannot hold in hands."
|
|
icon_state = "thigh_white"
|
|
|
|
/obj/item/clothing/accessory/storage/knifeharness
|
|
name = "decorated harness"
|
|
desc = "A heavily decorated harness of sinew and leather with two knife-loops."
|
|
icon_state = "unathiharness2"
|
|
slots = 2
|
|
|
|
/obj/item/clothing/accessory/storage/knifeharness/Initialize(mapload)
|
|
. = ..()
|
|
hold.max_storage_space = ITEMSIZE_COST_SMALL * 2
|
|
hold.can_hold = list(/obj/item/material/knife/machete/hatchet/unathiknife,\
|
|
/obj/item/material/knife,\
|
|
/obj/item/material/knife/plastic)
|
|
|
|
new /obj/item/material/knife/machete/hatchet/unathiknife(hold)
|
|
new /obj/item/material/knife/machete/hatchet/unathiknife(hold)
|