Files
Bloop cf14dcfc1a Converts 3 components into elements (#94589)
## About The Pull Request

`adjust_fishing_difficulty` is a good one to make into a bespoke element
since a number of the same clothing item are created in the wardrobe
system.

climb_walkable is also good due to how prevalent it is, and it is a bit
of a two for one since it also removes the need for the
`/component/connect_loc_behalf`

Also stops adding the on_climbable trait to literally everything in the
turf, it now only applies it to atoms with density. So no more pipes and
stuff getting trait lists created for no reason.

<details><summary> Tested + things still work as before </summary>

<img width="422" height="122" alt="image"
src="https://github.com/user-attachments/assets/b23696f5-cd16-4150-aeb3-14ea6bd256fc"
/>

</details>

## Why It's Good For The Game

Lessens overhead, fixes a bug as well.

## Changelog

🆑
fix: fixes a pushed crate not removing on_climbable trait properly off
the mob standing atop it
/🆑
2025-12-30 01:05:50 +01:00

58 lines
1.8 KiB
Plaintext

/obj/item/clothing/head/fedora
name = "fedora"
desc = "A really cool hat if you're a mobster. A really lame hat if you're not."
icon_state = "fedora"
icon = 'icons/obj/clothing/head/hats.dmi'
worn_icon = 'icons/mob/clothing/head/hats.dmi'
hair_mask = /datum/hair_mask/standard_hat_low
/obj/item/clothing/head/fedora/Initialize(mapload)
. = ..()
create_storage(storage_type = /datum/storage/pockets/small/fedora)
/obj/item/clothing/head/fedora/white
name = "white fedora"
icon_state = "fedora_white"
inhand_icon_state = null
/obj/item/clothing/head/fedora/beige
name = "beige fedora"
icon_state = "fedora_beige"
inhand_icon_state = null
/obj/item/clothing/head/fedora/suicide_act(mob/living/user)
if(user.gender == FEMALE)
return
var/mob/living/carbon/human/H = user
user.visible_message(span_suicide("[user] is donning [src]! It looks like [user.p_theyre()] trying to be nice to girls."))
user.say("M'lady.", forced = "fedora suicide")
sleep(1 SECONDS)
H.facial_hairstyle = "Neckbeard"
return BRUTELOSS
/obj/item/clothing/head/fedora/carpskin
name = "carpskin fedora"
icon_state = "fedora_carpskin"
inhand_icon_state = null
/obj/item/clothing/head/fedora/carpskin/Initialize(mapload)
. = ..()
AddElement(/datum/element/adjust_fishing_difficulty, -6)
/obj/item/clothing/head/fedora/beige/press
name = "press fedora"
desc = "A beige fedora with a piece of paper saying \"PRESS\" stuck in its rim."
icon_state = "fedora_press"
inhand_icon_state = null
/obj/item/clothing/head/fedora/greyscale
inhand_icon_state = null
icon = 'icons/map_icons/clothing/head/_head.dmi'
icon_state = "/obj/item/clothing/head/fedora/greyscale"
post_init_icon_state = "fedora_greyscale"
greyscale_config = /datum/greyscale_config/fedora
greyscale_config_worn = /datum/greyscale_config/fedora/worn
greyscale_colors = "#F0DAB4#794D2E"
flags_1 = IS_PLAYER_COLORABLE_1