mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-16 02:24:11 +01:00
cf14dcfc1a
## 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 /🆑
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
|
|
//Ears: currently only used for headsets and earmuffs
|
|
/obj/item/clothing/ears
|
|
name = "ears"
|
|
lefthand_file = 'icons/mob/inhands/clothing/ears_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/clothing/ears_righthand.dmi'
|
|
abstract_type = /obj/item/clothing/ears
|
|
w_class = WEIGHT_CLASS_TINY
|
|
throwforce = 0
|
|
slot_flags = ITEM_SLOT_EARS
|
|
resistance_flags = NONE
|
|
|
|
/obj/item/clothing/ears/earmuffs
|
|
name = "earmuffs"
|
|
desc = "Protects your hearing from loud noises, and quiet ones as well."
|
|
icon = 'icons/obj/clothing/ears.dmi'
|
|
icon_state = "earmuffs"
|
|
inhand_icon_state = "earmuffs"
|
|
clothing_traits = list(TRAIT_DEAF)
|
|
strip_delay = 1.5 SECONDS
|
|
equip_delay_other = 2.5 SECONDS
|
|
resistance_flags = FLAMMABLE
|
|
custom_price = PAYCHECK_COMMAND * 1.5
|
|
flags_cover = EARS_COVERED
|
|
|
|
/obj/item/clothing/ears/earmuffs/Initialize(mapload)
|
|
. = ..()
|
|
AddElement(/datum/element/earhealing)
|
|
AddComponent(/datum/component/wearertargeting/earprotection)
|
|
AddElement(/datum/element/adjust_fishing_difficulty, -2)
|
|
|
|
/obj/item/clothing/ears/earmuffs/debug
|
|
name = "debug earmuffs"
|
|
desc = "Wearing these sends a chat message for every sound played. Walking to ignore footsteps is highly recommended."
|
|
clothing_traits = list(TRAIT_SOUND_DEBUGGED)
|