Files
VOREStation/code/modules/clothing/head/soft_caps.dm
T
Cameron Lennox d5849910e5 Begin clickcode attack_self fix (#18797)
* 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
2025-12-29 13:21:10 -05:00

119 lines
4.2 KiB
Plaintext

/obj/item/clothing/head/soft
name = "cargo cap"
desc = "It's a peaked cap in a tasteless yellow color."
icon_state = "cargosoft"
item_state_slots = list(slot_r_hand_str = "cargosoft", slot_l_hand_str = "cargosoft")
var/flipped = 0
siemens_coefficient = 0.9
body_parts_covered = 0
special_handling = TRUE
/obj/item/clothing/head/soft/dropped(mob/user)
icon_state = initial(icon_state)
flipped = FALSE
..()
/obj/item/clothing/head/soft/attack_self(mob/user)
. = ..(user)
if(.)
return TRUE
flipped = !flipped
if(flipped)
icon_state = "[icon_state]_flipped"
to_chat(user, "You flip the hat backwards.")
else
icon_state = initial(icon_state)
to_chat(user, "You flip the hat back in normal position.")
update_clothing_icon() //so our mob-overlays update
/obj/item/clothing/head/soft/red
name = "red cap"
desc = "It's a baseball hat in a tasteless red color."
icon_state = "redsoft"
item_state_slots = list(slot_r_hand_str = "redsoft", slot_l_hand_str = "redsoft")
/obj/item/clothing/head/soft/blue
name = "blue cap"
desc = "It's a peaked cap in a tasteless blue color."
icon_state = "bluesoft"
item_state_slots = list(slot_r_hand_str = "bluesoft", slot_l_hand_str = "bluesoft")
/obj/item/clothing/head/soft/green
name = "green cap"
desc = "It's a peaked cap in a tasteless green color."
icon_state = "greensoft"
item_state_slots = list(slot_r_hand_str = "greensoft", slot_l_hand_str = "greensoft")
/obj/item/clothing/head/soft/yellow
name = "yellow cap"
desc = "It's a peaked cap in a tasteless yellow color."
icon_state = "yellowsoft"
item_state_slots = list(slot_r_hand_str = "yellowsoft", slot_l_hand_str = "yellowsoft")
/obj/item/clothing/head/soft/grey
name = "grey cap"
desc = "It's a peaked cap in a tasteful grey color."
icon_state = "greysoft"
item_state_slots = list(slot_r_hand_str = "greysoft", slot_l_hand_str = "greysoft")
/obj/item/clothing/head/soft/orange
name = "orange cap"
desc = "It's a peaked cap in a tasteless orange color."
icon_state = "orangesoft"
item_state_slots = list(slot_r_hand_str = "orangesoft", slot_l_hand_str = "orangesoft")
/obj/item/clothing/head/soft/mime
name = "white cap"
desc = "It's a peaked cap in a tasteless white color."
icon_state = "mimesoft"
item_state_slots = list(slot_r_hand_str = "mimesoft", slot_l_hand_str = "mimesoft")
/obj/item/clothing/head/soft/purple
name = "purple cap"
desc = "It's a peaked cap in a tasteless purple color."
icon_state = "purplesoft"
item_state_slots = list(slot_r_hand_str = "purplesoft", slot_l_hand_str = "purplesoft")
/obj/item/clothing/head/soft/rainbow
name = "rainbow cap"
desc = "It's a peaked cap in a bright rainbow of colors."
icon_state = "rainbowsoft"
item_state_slots = list(slot_r_hand_str = "rainbowsoft", slot_l_hand_str = "rainbowsoft")
/obj/item/clothing/head/soft/sec
name = "security cap"
desc = "It's a field cap in tasteful red color."
icon_state = "secsoft"
item_state_slots = list(slot_r_hand_str = "secsoft", slot_l_hand_str = "secsoft")
/obj/item/clothing/head/soft/sec/corp
name = "corporate security cap"
desc = "It's field cap in corporate colors."
icon_state = "corpsoft"
item_state_slots = list(slot_r_hand_str = "corpsoft", slot_l_hand_str = "corpsoft")
/obj/item/clothing/head/soft/black
name = "black cap"
desc = "It's a peaked cap in a tasteful black color."
icon_state = "blacksoft"
item_state_slots = list(slot_r_hand_str = "blacksoft", slot_l_hand_str = "blacksoft")
/obj/item/clothing/head/soft/mbill
name = "shipping cap"
desc = "It's a ballcap bearing the colors of Major Bill's Shipping."
icon_state = "mbillsoft"
item_state_slots = list(slot_r_hand_str = "redsoft", slot_l_hand_str = "redsoft")
catalogue_data = list(/datum/category_item/catalogue/information/organization/major_bills)
/obj/item/clothing/head/soft/med
name = "medical cap"
desc = "It's a field cap in white, with a blue cross on the front."
icon_state = "medsoft"
item_state_slots = list(slot_r_hand_str = "mimesoft", slot_l_hand_str = "mimesoft")
/obj/item/clothing/head/soft/paramed
name = "paramedic's cap"
desc = "It's a field cap in dark blue, with a white cross on the front."
icon_state = "emtsoft"
item_state_slots = list(slot_r_hand_str = "bluesoft", slot_l_hand_str = "bluesoft")