Files
BloopandGitHub 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

62 lines
2.8 KiB
Plaintext

/obj/item/clothing/suit/hooded/ethereal_raincoat
name = "ethereal raincoat"
desc = " A raincoat commonly worn by travelers or tourists not too fond of Sprout's rainy weather."
icon = 'icons/map_icons/clothing/suit/_suit.dmi'
worn_icon = 'icons/mob/clothing/suits/ethereal.dmi'
icon_state = "/obj/item/clothing/suit/hooded/ethereal_raincoat"
post_init_icon_state = "eth_raincoat"
greyscale_config = /datum/greyscale_config/eth_raincoat
greyscale_config_worn = /datum/greyscale_config/eth_raincoat/worn
greyscale_colors = "#4e7cc7"
flags_1 = IS_PLAYER_COLORABLE_1
body_parts_covered = CHEST|GROIN|ARMS
hoodtype = /obj/item/clothing/head/hooded/ethereal_rainhood
/obj/item/clothing/suit/hooded/ethereal_raincoat/Initialize(mapload)
. = ..()
update_icon(UPDATE_OVERLAYS)
AddElement(/datum/element/adjust_fishing_difficulty, -5)
/obj/item/clothing/suit/hooded/ethereal_raincoat/worn_overlays(mutable_appearance/standing, isinhands, icon_file)
. = ..()
if(!isinhands)
. += emissive_appearance('icons/mob/clothing/suits/ethereal.dmi', "eth_raincoat_glow_worn", offset_spokesman = src, alpha = src.alpha)
/obj/item/clothing/suit/hooded/ethereal_raincoat/update_overlays()
. = ..()
. += emissive_appearance('icons/obj/clothing/suits/ethereal.dmi', "eth_raincoat_glow", offset_spokesman = src, alpha = src.alpha)
/obj/item/clothing/suit/hooded/ethereal_raincoat/trailwarden
name = "trailwarden oilcoat"
desc = "A masterfully handcrafted oilslick coat, supposedly makes for excellent camouflage among Sprout's vegetation. You can hear a faint electrical buzz emanating from the luminescent pattern."
icon_state = "/obj/item/clothing/suit/hooded/ethereal_raincoat/trailwarden"
greyscale_colors = "#32a87d"
hoodtype = /obj/item/clothing/head/hooded/ethereal_rainhood/trailwarden
/obj/item/clothing/suit/hooded/ethereal_raincoat/trailwarden/Initialize(mapload)
. = ..()
AddElement(/datum/element/adjust_fishing_difficulty, -7)
/obj/item/clothing/suit/hooded/ethereal_raincoat/trailwarden/equipped(mob/living/user, slot)
. = ..()
if(isethereal(user) && (slot & ITEM_SLOT_OCLOTHING))
var/mob/living/carbon/human/ethereal = user
to_chat(ethereal, span_notice("[src] gently quivers for a moment as you put it on."))
set_greyscale(ethereal.dna.species.fixed_mut_color)
ethereal.update_worn_oversuit()
/obj/item/clothing/head/hooded/ethereal_rainhood
name = "ethereal rainhood"
desc = "Protects against space rain."
icon = 'icons/obj/clothing/head/ethereal.dmi'
icon_state = "eth_rainhood"
worn_icon = 'icons/mob/clothing/head/ethereal.dmi'
body_parts_covered = HEAD
flags_inv = HIDEHAIR|HIDEEARS|HIDEFACIALHAIR
/obj/item/clothing/head/hooded/ethereal_rainhood/trailwarden
/obj/item/clothing/head/hooded/ethereal_rainhood/trailwarden/Initialize(mapload)
. = ..()
AddElement(/datum/element/adjust_fishing_difficulty, -6)