Carps, frogs and young lobstrosities now fear the fishing hat! (#85380)

## About The Pull Request
Carps, frogs and young lobstrosities now fear legendary anglers wearing
the legendary fishing hat and will flee. The item is skill-locked, so
only those that have maxxed out the skill can wear it.

Differently, adult lobstrosities and megacarps (and suicide frogs, which
are used nowhere) do not flee but will still prioritize them over the
rest.

## Why It's Good For The Game
I'm putting some emphasis on the "fish fear me" _(lobstrosities and
frogs aren't exactly fish but it'd been quite boring to only include
carps)_ and also making the hat a bit more than just some cosmetic
novelty.

## Changelog

🆑
add: Carps, frogs and young lobstrosities now fear people wearing
fishing hats! Adults and megacarp favour the 'fight' part of the fear
reflex however.
fix: The hat stabilizer module now inherits the clothing traits of the
attached hat.
/🆑
This commit is contained in:
Ghom
2024-07-31 14:38:37 +01:00
committed by GitHub
parent dfbf94ca09
commit 2535df375d
20 changed files with 161 additions and 34 deletions
+3 -1
View File
@@ -712,6 +712,7 @@
attached_hat = hat
var/obj/item/clothing/helmet = mod.get_part_from_slot(ITEM_SLOT_HEAD)
if(istype(helmet))
helmet.attach_clothing_traits(attached_hat.clothing_traits)
former_flags = helmet.flags_cover
former_visor_flags = helmet.visor_flags_cover
helmet.flags_cover |= attached_hat.flags_cover
@@ -734,11 +735,12 @@
balloon_alert(user, "hat removed")
else
balloon_alert_to_viewers("the hat falls to the floor!")
attached_hat = null
var/obj/item/clothing/helmet = mod.get_part_from_slot(ITEM_SLOT_HEAD)
if(istype(helmet))
helmet.detach_clothing_traits(attached_hat)
helmet.flags_cover = former_flags
helmet.visor_flags_cover = former_visor_flags
attached_hat = null
mod.wearer.update_clothing(mod.slot_flags)
/obj/item/mod/module/hat_stabilizer/syndicate