mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 00:55:20 +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 /🆑
45 lines
1.7 KiB
Plaintext
45 lines
1.7 KiB
Plaintext
/obj/item/clothing/head/utility/welding
|
|
name = "welding helmet"
|
|
desc = "A head-mounted face cover designed to protect the wearer completely from space-arc eye."
|
|
icon_state = "welding"
|
|
flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH | PEPPERPROOF
|
|
inhand_icon_state = "welding"
|
|
lefthand_file = 'icons/mob/inhands/clothing/masks_lefthand.dmi'
|
|
righthand_file = 'icons/mob/inhands/clothing/masks_righthand.dmi'
|
|
custom_materials = list(/datum/material/iron=HALF_SHEET_MATERIAL_AMOUNT*1.75, /datum/material/glass=SMALL_MATERIAL_AMOUNT * 4)
|
|
flash_protect = FLASH_PROTECTION_WELDER
|
|
tint = 2
|
|
armor_type = /datum/armor/utility_welding
|
|
flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE|HIDESNOUT
|
|
actions_types = list(/datum/action/item_action/toggle)
|
|
visor_flags_inv = HIDEMASK|HIDEEARS|HIDEEYES|HIDEFACE|HIDESNOUT
|
|
visor_flags_cover = HEADCOVERSEYES | HEADCOVERSMOUTH | PEPPERPROOF
|
|
visor_vars_to_toggle = VISOR_FLASHPROTECT | VISOR_TINT
|
|
resistance_flags = FIRE_PROOF
|
|
clothing_flags = SNUG_FIT | STACKABLE_HELMET_EXEMPT
|
|
|
|
/obj/item/clothing/head/utility/welding/Initialize(mapload)
|
|
. = ..()
|
|
if(!up)
|
|
AddElement(/datum/element/adjust_fishing_difficulty, 8)
|
|
|
|
/datum/armor/utility_welding
|
|
melee = 10
|
|
fire = 100
|
|
acid = 60
|
|
|
|
/obj/item/clothing/head/utility/welding/attack_self(mob/user)
|
|
adjust_visor(user)
|
|
|
|
/obj/item/clothing/head/utility/welding/adjust_visor(mob/user)
|
|
. = ..()
|
|
if(up)
|
|
RemoveElement(/datum/element/adjust_fishing_difficulty)
|
|
else
|
|
AddElement(/datum/element/adjust_fishing_difficulty, 8)
|
|
|
|
/obj/item/clothing/head/utility/welding/update_icon_state()
|
|
. = ..()
|
|
icon_state = "[initial(icon_state)][up ? "up" : ""]"
|
|
inhand_icon_state = "[initial(inhand_icon_state)][up ? "off" : ""]"
|