mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-15 01:54:52 +01:00
21b4095dfd
Upstream 04/17/2026 fixes https://github.com/Bubberstation/Bubberstation/issues/5549 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: tgstation-ci[bot] <179393467+tgstation-ci[bot]@users.noreply.github.com> Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: Rhials <28870487+Rhials@users.noreply.github.com> Co-authored-by: rageguy505 <54517726+rageguy505@users.noreply.github.com> Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: Aliceee2ch <160794176+Aliceee2ch@users.noreply.github.com> Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com> Co-authored-by: Tsar-Salat <62388554+Tsar-Salat@users.noreply.github.com> Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Co-authored-by: Maxipat <108554989+Maxipat112@users.noreply.github.com> Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Co-authored-by: deltanedas <39013340+deltanedas@users.noreply.github.com> Co-authored-by: SimplyLogan <47579821+loganuk@users.noreply.github.com> Co-authored-by: loganuk <fakeemail123@aol.com> Co-authored-by: Leland Kemble <70413276+lelandkemble@users.noreply.github.com> Co-authored-by: FalloutFalcon <86381784+FalloutFalcon@users.noreply.github.com> Co-authored-by: Roxy <75404941+TealSeer@users.noreply.github.com> Co-authored-by: Lucy <lucy@absolucy.moe> Co-authored-by: siliconOpossum <138069572+siliconOpossum@users.noreply.github.com> Co-authored-by: Isratosh <Isratosh@hotmail.com> Co-authored-by: TheRyeGuyWhoWillNowDie <70169560+TheRyeGuyWhoWillNowDie@users.noreply.github.com> Co-authored-by: Neocloudy <88008002+Neocloudy@users.noreply.github.com> Co-authored-by: Alexander V. <volas@ya.ru> Co-authored-by: ElGitificador <168473461+ElGitificador@users.noreply.github.com> Co-authored-by: Twaticus <46540570+Twaticus@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Tim <timothymtorres@gmail.com> Co-authored-by: Iamgoofball <iamgoofball@gmail.com> Co-authored-by: Layzu666 <121319428+Layzu666@users.noreply.github.com> Co-authored-by: Arturlang <24881678+Arturlang@users.noreply.github.com> Co-authored-by: _0Steven <42909981+00-Steven@users.noreply.github.com> Co-authored-by: mrmanlikesbt <99309552+mrmanlikesbt@users.noreply.github.com> Co-authored-by: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com> Co-authored-by: John F. Kennedy <54908920+MacaroniCritter@users.noreply.github.com> Co-authored-by: Cursor <102828457+theselfish@users.noreply.github.com> Co-authored-by: Josh <josh.adam.powell@gmail.com> Co-authored-by: Josh Powell <josh.powell@softwire.com> Co-authored-by: Yobrocharlie <Charliemiller5617@gmail.com> Co-authored-by: Hardly3D <66234359+Hardly3D@users.noreply.github.com> Co-authored-by: shayoki <96078776+shayoki@users.noreply.github.com> Co-authored-by: LT3 <83487515+lessthnthree@users.noreply.github.com>
207 lines
6.1 KiB
Plaintext
207 lines
6.1 KiB
Plaintext
/obj/item/clothing/head/soft
|
|
name = "cargo cap"
|
|
desc = "It's a baseball hat in a tasteful brown colour."
|
|
icon = 'icons/obj/clothing/head/hats.dmi'
|
|
worn_icon = 'icons/mob/clothing/head/hats.dmi'
|
|
icon_state = "cargosoft"
|
|
inhand_icon_state = "greyscale_softcap" //todo wip
|
|
interaction_flags_click = NEED_DEXTERITY|ALLOW_RESTING
|
|
/// For setting icon archetype
|
|
var/soft_type = "cargo"
|
|
/// If there is a suffix to append
|
|
var/soft_suffix = "soft"
|
|
|
|
dog_fashion = /datum/dog_fashion/head/cargo_tech
|
|
/// Whether this is on backwards... Woah, cool
|
|
var/flipped = FALSE
|
|
|
|
/obj/item/clothing/head/soft/dropped()
|
|
icon_state = "[soft_type][soft_suffix]"
|
|
flipped = FALSE
|
|
..()
|
|
|
|
/obj/item/clothing/head/soft/verb/flipcap()
|
|
set name = "Flip cap"
|
|
|
|
flip(usr)
|
|
|
|
|
|
/obj/item/clothing/head/soft/click_alt(mob/user)
|
|
flip(user)
|
|
return CLICK_ACTION_SUCCESS
|
|
|
|
|
|
/obj/item/clothing/head/soft/proc/flip(mob/user)
|
|
if(!user.incapacitated)
|
|
flipped = !flipped
|
|
if(flipped)
|
|
icon_state = "[soft_type][soft_suffix]_flipped"
|
|
to_chat(user, span_notice("You flip the hat backwards."))
|
|
else
|
|
icon_state = "[soft_type][soft_suffix]"
|
|
to_chat(user, span_notice("You flip the hat back in normal position."))
|
|
update_icon()
|
|
usr.update_worn_head() //so our mob-overlays update
|
|
|
|
/obj/item/clothing/head/soft/examine(mob/user)
|
|
. = ..()
|
|
. += span_notice("Alt-click the cap to flip it [flipped ? "forwards" : "backwards"].")
|
|
|
|
/obj/item/clothing/head/soft/red
|
|
name = "red cap"
|
|
desc = "It's a baseball hat in a tasteless red colour."
|
|
icon_state = "redsoft"
|
|
soft_type = "red"
|
|
dog_fashion = null
|
|
|
|
/obj/item/clothing/head/soft/blue
|
|
name = "blue cap"
|
|
desc = "It's a baseball hat in a tasteless blue colour."
|
|
icon_state = "bluesoft"
|
|
soft_type = "blue"
|
|
dog_fashion = null
|
|
|
|
/obj/item/clothing/head/soft/green
|
|
name = "green cap"
|
|
desc = "It's a baseball hat in a tasteless green colour."
|
|
icon_state = "greensoft"
|
|
soft_type = "green"
|
|
dog_fashion = null
|
|
|
|
/obj/item/clothing/head/soft/yellow
|
|
name = "yellow cap"
|
|
desc = "It's a baseball hat in a tasteless yellow colour."
|
|
icon_state = "yellowsoft"
|
|
soft_type = "yellow"
|
|
dog_fashion = null
|
|
|
|
/obj/item/clothing/head/soft/grey
|
|
name = "grey cap"
|
|
desc = "It's a baseball hat in a tasteful grey colour."
|
|
icon_state = "greysoft"
|
|
soft_type = "grey"
|
|
dog_fashion = null
|
|
|
|
/obj/item/clothing/head/soft/orange
|
|
name = "orange cap"
|
|
desc = "It's a baseball hat in a tasteless orange colour."
|
|
icon_state = "orangesoft"
|
|
soft_type = "orange"
|
|
dog_fashion = null
|
|
|
|
/obj/item/clothing/head/soft/mime
|
|
name = "white cap"
|
|
desc = "It's a baseball hat in a tasteless white colour."
|
|
icon_state = "mimesoft"
|
|
soft_type = "mime"
|
|
dog_fashion = null
|
|
|
|
/obj/item/clothing/head/soft/purple
|
|
name = "purple cap"
|
|
desc = "It's a baseball hat in a tasteless purple colour."
|
|
icon_state = "purplesoft"
|
|
soft_type = "purple"
|
|
dog_fashion = null
|
|
|
|
/obj/item/clothing/head/soft/black
|
|
name = "black cap"
|
|
desc = "It's a baseball hat in a tasteless black colour."
|
|
icon_state = "blacksoft"
|
|
soft_type = "black"
|
|
dog_fashion = null
|
|
|
|
/obj/item/clothing/head/soft/rainbow
|
|
name = "rainbow cap"
|
|
desc = "It's a baseball hat in a bright rainbow of colors."
|
|
icon_state = "rainbowsoft"
|
|
inhand_icon_state = "rainbow_softcap"
|
|
soft_type = "rainbow"
|
|
dog_fashion = null
|
|
|
|
/obj/item/clothing/head/soft/sec
|
|
name = "security cap"
|
|
desc = "It's a robust baseball hat in tasteful red colour."
|
|
icon_state = "secsoft"
|
|
soft_type = "sec"
|
|
armor_type = /datum/armor/cosmetic_sec
|
|
strip_delay = 6 SECONDS
|
|
dog_fashion = null
|
|
|
|
/obj/item/clothing/head/soft/veteran
|
|
name = "veteran cap"
|
|
desc = "It's a robust baseball hat in tasteful black colour with a golden connotation to \"REMEMBER\"."
|
|
icon_state = "veteransoft"
|
|
soft_type = "veteran"
|
|
armor_type = /datum/armor/cosmetic_sec
|
|
strip_delay = 6 SECONDS
|
|
dog_fashion = null
|
|
|
|
/obj/item/clothing/head/soft/paramedic
|
|
name = "paramedic cap"
|
|
desc = "It's a baseball hat with a dark turquoise color and a reflective cross on the top."
|
|
icon_state = "paramedicsoft"
|
|
soft_type = "paramedic"
|
|
dog_fashion = null
|
|
|
|
/obj/item/clothing/head/soft/fishing_hat
|
|
name = "legendary fishing hat"
|
|
desc = "An ancient relic of a bygone era of bountiful catches and endless rivers. Printed on the front is a poem:<i>\n\
|
|
Women Fear Me\n\
|
|
Fish Fear Me\n\
|
|
Men Turn Their Eyes Away From Me\n\
|
|
As I Walk No Beast Dares Make A Sound In My Presence\n\
|
|
I Am Alone On This Barren Earth.</i>"
|
|
icon_state = "fishing_hat"
|
|
soft_type = "fishing_hat"
|
|
inhand_icon_state = "fishing_hat"
|
|
soft_suffix = null
|
|
worn_y_offset = 5
|
|
clothing_flags = SNUG_FIT
|
|
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE
|
|
dog_fashion = null
|
|
clothing_traits = list(TRAIT_SCARY_FISHERMAN) //Fish, carps, lobstrosities and frogs fear me.
|
|
|
|
/obj/item/clothing/head/soft/fishing_hat/Initialize(mapload)
|
|
. = ..()
|
|
AddComponent(/datum/component/speechmod, replacements = strings("crustacean_replacement.json", "crustacean")) //you asked for this.
|
|
AddElement(/datum/element/skill_reward, /datum/skill/fishing)
|
|
AddElement(/datum/element/adjust_fishing_difficulty, -5)
|
|
|
|
#define PROPHAT_MOOD "prophat"
|
|
|
|
/obj/item/clothing/head/soft/propeller_hat
|
|
name = "propeller hat"
|
|
desc = "A colorful hat with a spinning propeller sat on top."
|
|
icon_state = "propeller_hat"
|
|
soft_type = "propeller_hat"
|
|
inhand_icon_state = "rainbow_softcap"
|
|
worn_y_offset = 1
|
|
soft_suffix = null
|
|
actions_types = list(/datum/action/item_action/toggle)
|
|
var/enabled_waddle = TRUE
|
|
var/active = FALSE
|
|
|
|
/obj/item/clothing/head/soft/propeller_hat/update_icon_state()
|
|
. = ..()
|
|
worn_icon_state = "[soft_type][flipped ? "_flipped" : null][active ? "_on" : null]"
|
|
|
|
/obj/item/clothing/head/soft/propeller_hat/attack_self(mob/user)
|
|
active = !active
|
|
balloon_alert(user, (active ? "started propeller" : "stopped propeller"))
|
|
update_icon()
|
|
user.update_worn_head()
|
|
add_fingerprint(user)
|
|
|
|
/obj/item/clothing/head/soft/propeller_hat/equipped(mob/living/user, slot)
|
|
. = ..()
|
|
if(slot & ITEM_SLOT_HEAD)
|
|
user.add_mood_event(PROPHAT_MOOD, /datum/mood_event/prophat)
|
|
|
|
/obj/item/clothing/head/soft/propeller_hat/dropped(mob/living/user)
|
|
. = ..()
|
|
user.clear_mood_event(PROPHAT_MOOD)
|
|
active = FALSE
|
|
update_icon()
|
|
|
|
#undef PROPHAT_MOOD
|