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

65 lines
1.6 KiB
Plaintext

/obj/item/clothing/head/costume/pirate
name = "pirate hat"
desc = "Yarr."
icon_state = "pirate"
inhand_icon_state = null
dog_fashion = /datum/dog_fashion/head/pirate
/obj/item/clothing/head/costume/pirate/Initialize(mapload)
. = ..()
AddElement(/datum/element/adjust_fishing_difficulty, -5)
/obj/item/clothing/head/costume/pirate/equipped(mob/user, slot)
. = ..()
if(!(slot_flags & slot) || isdrone(user))
return
user.grant_language(/datum/language/piratespeak, source = LANGUAGE_HAT)
to_chat(user, span_boldnotice("You suddenly know how to speak like a pirate!"))
/obj/item/clothing/head/costume/pirate/dropped(mob/user)
. = ..()
if(QDELETED(src)) //This can be called as a part of destroy
return
user.remove_language(/datum/language/piratespeak, source = LANGUAGE_HAT)
to_chat(user, span_boldnotice("You can no longer speak like a pirate."))
/obj/item/clothing/head/costume/pirate/armored
armor_type = /datum/armor/pirate_armored
strip_delay = 4 SECONDS
equip_delay_other = 2 SECONDS
/datum/armor/pirate_armored
melee = 30
bullet = 50
laser = 30
energy = 40
bomb = 30
bio = 30
fire = 60
acid = 75
/obj/item/clothing/head/costume/pirate/captain
name = "pirate captain hat"
icon_state = "hgpiratecap"
inhand_icon_state = null
/obj/item/clothing/head/costume/pirate/bandana
name = "pirate bandana"
icon_state = "bandana"
inhand_icon_state = null
/obj/item/clothing/head/costume/pirate/bandana/armored
armor_type = /datum/armor/bandana_armored
strip_delay = 4 SECONDS
equip_delay_other = 2 SECONDS
/datum/armor/bandana_armored
melee = 30
bullet = 50
laser = 30
energy = 40
bomb = 30
bio = 30
fire = 60
acid = 75