Merge pull request #862 from KBraid/patch-1

Create avigoggles_yw.dm
This commit is contained in:
Izac Joof Forsgren
2020-07-13 16:29:03 +02:00
committed by GitHub
4 changed files with 55 additions and 2 deletions
@@ -627,6 +627,14 @@
// J CKEYS
// K CKEYS
//kbraid
//Eili
/datum/gear/fluff/kbraidgoggles
path = /obj/item/clothing/glasses/fluff/avigoggles_yw
display_name = "K'braid Aviation Goggles"
description = "You're such a goggle head!"
ckeywhitelist = list("kbraid")
character_name = list("Eili") //Character name. this variable is required, or the item doesn't show in loadout. Change to "character_name = null" if not character restricted.
// L CKEYS
@@ -977,4 +985,4 @@
// Y CKEYS
// Z CKEYS
// Z CKEYS
@@ -1649,4 +1649,49 @@
icon_state = "khlife3"
icon_override = 'icons/vore/custom_items_vr.dmi'
item_state = "khlife_overlay"
overlay_state = "khlife_overlay"
overlay_state = "khlife_overlay"
// ******
// KBraid
// ******
/obj/item/clothing/glasses/fluff/avigoggles_yw
name = "aviation goggles"
desc = "You're such a goggle head!"
icon = 'icons/vore/custom_clothes_yw.dmi'
icon_state = "avigoggles_i"
item_state = "avigoggles"
icon_override = 'icons/vore/custom_clothes_yw.dmi'
action_button_name = "Flip Aviation Goggles"
item_flags = AIRTIGHT
var/up = 0
/obj/item/clothing/glasses/fluff/avigoggles_yw/attack_self()
toggle()
/obj/item/clothing/glasses/fluff/avigoggles_yw/verb/toggle()
set category = "Object"
set name = "Adjust aviation goggles"
set src in usr
if(usr.canmove && !usr.stat && !usr.restrained())
if(src.up)
src.up = !src.up
flags_inv |= HIDEEYES
body_parts_covered |= EYES
item_state = initial(item_state)
to_chat(usr, "You flip \the [src] down to protect your eyes.")
else
src.up = !src.up
flags_inv &= ~HIDEEYES
body_parts_covered &= ~EYES
item_state = "[initial(item_state)]_up"
to_chat(usr, "You push \the [src] up out of your face.")
update_clothing_icon()
usr.update_action_buttons()
/obj/item/clothing/glasses/fluff/avigoggles_yw/get_worn_icon_file(var/body_type,var/slot_name,var/default_icon,var/inhands)
if(body_type == SPECIES_TESHARI)
if(!inhands)
return 'icons/vore/custom_clothes_yw_special.dmi'
else
return ..()
Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 KiB

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 392 B

After

Width:  |  Height:  |  Size: 572 B