Ports neckerchief + Ports new bandana onmob(for humans only) (#28788)

* first commit

* spacing on list

* to_chat added

---------

Co-authored-by: Bmon <no@email.com>
This commit is contained in:
Bm0n
2025-04-16 17:01:42 +00:00
committed by GitHub
co-authored by Bmon
parent 1771ca456a
commit a720e68df6
6 changed files with 63 additions and 1 deletions
+63 -1
View File
@@ -378,7 +378,69 @@
actions_types = list(/datum/action/item_action/adjust)
/obj/item/clothing/mask/bandana/attack_self__legacy__attackchain(mob/user)
adjustmask(user)
if(slot_flags & ITEM_SLOT_MASK || slot_flags & ITEM_SLOT_HEAD)
adjustmask(user)
/obj/item/clothing/mask/bandana/examine(mob/user)
. = ..()
if(slot_flags & ITEM_SLOT_NECK)
. += "Alt-click to untie it to wear as a mask!"
else
. += "Alt-click to tie it up to wear on your neck!"
/obj/item/clothing/mask/bandana/AltClick(mob/user)
if(!iscarbon(user))
return
var/mob/living/carbon/char = user
if((char.get_item_by_slot(ITEM_SLOT_NECK) == src) || (char.get_item_by_slot(ITEM_SLOT_MASK) == src) || (char.get_item_by_slot(ITEM_SLOT_HEAD) == src))
to_chat(user, ("<span class='warning'>You can't tie [src] while wearing it!</span>"))
return
if(slot_flags & ITEM_SLOT_NECK)
icon = initial(icon)
flags_inv = initial(flags_inv)
flags_cover = initial(flags_cover)
slot_flags = initial(slot_flags)
icon_state = replacetext(icon_state, "_neck", "")
dyeable = initial(dyeable)
can_toggle = initial(can_toggle)
sprite_sheets = list(
"Vox" = 'icons/mob/clothing/species/vox/mask.dmi',
"Unathi" = 'icons/mob/clothing/species/unathi/mask.dmi',
"Tajaran" = 'icons/mob/clothing/species/tajaran/mask.dmi',
"Vulpkanin" = 'icons/mob/clothing/species/vulpkanin/mask.dmi',
"Grey" = 'icons/mob/clothing/species/grey/mask.dmi',
"Drask" = 'icons/mob/clothing/species/drask/mask.dmi'
)
actions_types = list(/datum/action/item_action/adjust)
var/datum/action/item_action/adjust/act = new(src)
if(loc == user)
act.Grant(user)
to_chat(user, ("<span class='notice'>You untie the neckercheif.</span>"))
else
icon = 'icons/obj/clothing/neck.dmi'
flags_inv = FALSE
flags_cover = FALSE
slot_flags = ITEM_SLOT_NECK
if(up)
icon_state = replacetext(icon_state, "_up", "")
up = FALSE
icon_state += "_neck"
dyeable = FALSE
can_toggle = FALSE
sprite_sheets = list(
"Vox" = 'icons/mob/clothing/species/vox/neck.dmi',
"Grey" = 'icons/mob/clothing/species/grey/neck.dmi',
)
actions_types = list()
for(var/datum/action/item_action/adjust/act in actions)
act.Remove(user)
qdel(act)
to_chat(user, ("<span class='notice'>You tie [src] up like a neckerchief.</span>"))
/obj/item/clothing/mask/bandana/red
name = "red bandana"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 606 B

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 22 KiB