Adjustable Goliath Cloaks (#74709)

## About The Pull Request
I've enabled goliath cloaks to be alt clicked to adjust it to neck slot
instead of over clothing slot.
While adjusted to neck slot, it has no armor values for balance
purposes, while in over clothing slot, it has the same armor values as
usual. The hood has the same values as usual, as it still inhabits the
same slot as usual.


![image](https://user-images.githubusercontent.com/126404225/231837773-97f79c0e-9de2-4bfa-bfec-ed6c67e0d476.png)

![image](https://user-images.githubusercontent.com/126404225/231837688-f1f6ea67-8127-423e-96a0-b125f7778194.png)

![image](https://user-images.githubusercontent.com/126404225/231837716-805f778b-4db1-4dd5-a667-c196524f023f.png)
## Why It's Good For The Game
It enables a cloak to function like a cloak. It gives people the option
to use it not for armor, but for fashion.
## Changelog
🆑
add: Goliath cloak can be worn as a cloak that doesn't provide any armor
benefits
/🆑
This commit is contained in:
Dawnseer
2023-04-15 16:17:59 +02:00
committed by GitHub
parent 19f7048046
commit 4b28abfd4d
2 changed files with 22 additions and 3 deletions
@@ -130,6 +130,25 @@
hoodtype = /obj/item/clothing/head/hooded/cloakhood/goliath
body_parts_covered = CHEST|GROIN|ARMS
/obj/item/clothing/suit/hooded/cloak/goliath/AltClick(mob/user)
. = ..()
if(iscarbon(user))
var/mob/living/carbon/char = user
if((char.get_item_by_slot(ITEM_SLOT_NECK) == src) || (char.get_item_by_slot(ITEM_SLOT_OCLOTHING) == src))
to_chat(user, span_warning("You can't adjust [src] while wearing it!"))
return
if(!user.is_holding(src))
to_chat(user, span_warning("You must be holding [src] in order to adjust it!"))
return
if(slot_flags & ITEM_SLOT_OCLOTHING)
slot_flags = ITEM_SLOT_NECK
set_armor(/datum/armor/none)
user.visible_message(span_notice("[user] adjusts their [src] for ceremonial use."), span_notice("You adjust your [src] for ceremonial use."))
else
slot_flags = initial(slot_flags)
set_armor(initial(armor_type))
user.visible_message(span_notice("[user] adjusts their [src] for defensive use."), span_notice("You adjust your [src] for defensive use."))
/datum/armor/cloak_goliath
melee = 35
bullet = 10