Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /obj/item/clothing/suit/storage/toggle/labcoat/fluff/mekesatis_holocoat
- name = "biochemist holocoat"
- desc = "An Eridani Corporate Federation holocoat modelled after a standard biochemist labcoat. It is extremely well cared for."
- icon = 'icons/obj/custom_items/mekesatis_holocoat.dmi'
- icon_state = "mekesatis_labcoat_o"
- item_state = "mekesatis_labcoat_o"
- icon_open = "mekesatis_labcoat_o"
- icon_closed = "mekesatis_labcoat"
- item_icons = list(
- slot_l_hand_str = "mekesatis_labcoat_o_lh",
- slot_r_hand_str = "mekesatis_labcoat_o_rh",
- )
- contained_sprite = TRUE
- var/changed = FALSE
- /obj/item/clothing/suit/storage/toggle/labcoat/fluff/mekesatis_holocoat/examine(mob/user)
- ..()
- if(in_range(user, src) && (all_languages[LANGUAGE_TRADEBAND] in user.languages))
- to_chat(user, "<span class='notice'>On the inside of the coat, the following words are printed in an elegant blue font:<br>Exclusive Time Limited Holocoat Deal from July 30, 2459. Now with graced with an animated Eridani Corporate Federation logo. For the Prosperity of all Eridanians - <i>Delta HoloTextiles. Sector Alpha's best wears.</i><br><small><i><font face='Courier New'>Every cloud has a silver lining, and you should be happy for yours. Congratulations on your graduation.</font> - <font face='Times New Roman'>Teremun A. M.</font></i></small></span>")
- if(in_range(user, src) && !(all_languages[LANGUAGE_TRADEBAND] in user.languages))
- to_chat(user, "<span class='notice'>On the inside of the coat there are various sentences in Tradeband printed in an elegant blue font.</span>")
- else
- to_chat(user, "<span class='notice>There might be something written on the inside of the coat. You have to get closer if you want to read it.</span>")
- /obj/item/clothing/suit/storage/toggle/labcoat/fluff/mekesatis_holocoat/verb/activate()
- set name = "Toggle Holocoat"
- set category = "Object"
- set src in usr
- if(!changed && icon_state == "mekesatis_labcoat")
- usr.visible_message("<span class='notice'>With a subtle gesture, the labcoat flickers active!</span>")
- change()
- sleep(28)
- icon_state = "mekesatis_holocoat"
- item_state = "mekesatis_holocoat"
- icon_open = "mekesatis_holocoat_o"
- icon_closed = "mekesatis_holocoat"
- item_icons = list(
- slot_l_hand_str = "mekesatis_holocoat_lh",
- slot_r_hand_str = "mekesatis_holocoat_rh",
- )
- usr.update_inv_wear_suit()
- return
- if(!changed && icon_state == "mekesatis_labcoat_o")
- usr.visible_message("<span class='notice'>With a subtle gesture, the labcoat flickers active!</span>")
- change()
- sleep(28)
- icon_state = "mekesatis_holocoat_o"
- item_state = "mekesatis_holocoat_o"
- icon_open = "mekesatis_holocoat_o"
- icon_closed = "mekesatis_holocoat"
- item_icons = list(
- slot_l_hand_str = "mekesatis_holocoat_lh",
- slot_r_hand_str = "mekesatis_holocoat_rh",
- )
- usr.update_inv_wear_suit()
- return
- if(!changed && icon_state == "mekesatis_holocoat")
- usr.visible_message("<span class='notice'>With a subtle gesture, the holocoat fades to a normal labcoat.</span>")
- change()
- sleep(25)
- icon_state = "mekesatis_labcoat"
- item_state = "mekesatis_labcoat"
- icon_open = "mekesatis_labcoat_o"
- icon_closed = "mekesatis_labcoat"
- item_icons = list(
- slot_l_hand_str = "mekesatis_labcoat_lh",
- slot_r_hand_str = "mekesatis_labcoat_rh",
- )
- usr.update_inv_wear_suit()
- return
- if(!changed && icon_state == "mekesatis_holocoat_o")
- usr.visible_message("<span class='notice'>With a subtle gesture, the holocoat fades to a normal labcoat.</span>")
- change()
- sleep(25)
- icon_state = "mekesatis_labcoat_o"
- item_state = "mekesatis_labcoat_o"
- icon_open = "mekesatis_labcoat_o"
- icon_closed = "mekesatis_labcoat"
- item_icons = list(
- slot_l_hand_str = "mekesatis_labcoat_lh",
- slot_r_hand_str = "mekesatis_labcoat_rh",
- )
- usr.update_inv_wear_suit()
- return
- else
- return
- /obj/item/clothing/suit/storage/toggle/labcoat/fluff/mekesatis_holocoat/proc/change()
- INVOKE_ASYNC(src, .proc/do_change)
- /obj/item/clothing/suit/storage/toggle/labcoat/fluff/mekesatis_holocoat/proc/do_change()
- changed = TRUE
- switch(icon_state)
- if("mekesatis_labcoat")
- icon_state = "mekesatis_holocoat_t"
- item_state = "mekesatis_holocoat_t"
- icon_open = "mekesatis_holocoat_t_o"
- icon_closed = "mekesatis_holocoat_t"
- item_icons = list(
- slot_l_hand_str = "mekesatis_holocoat_lh",
- slot_r_hand_str = "mekesatis_holocoat_rh",
- )
- flick("mekesatis_holocoat_t", src)
- changed = FALSE
- if("mekesatis_labcoat_o")
- icon_state = "mekesatis_holocoat_t_o"
- item_state = "mekesatis_holocoat_t_o"
- icon_open = "mekesatis_holocoat_t_o"
- icon_closed = "mekesatis_holocoat_t"
- item_icons = list(
- slot_l_hand_str = "mekesatis_holocoat_lh",
- slot_r_hand_str = "mekesatis_holocoat_rh",
- )
- flick("mekesatis_holocoat_t_o", src)
- changed = FALSE
- if("mekesatis_holocoat")
- icon_state = "mekesatis_labcoat_r"
- item_state = "mekesatis_labcoat_r"
- icon_open = "mekesatis_labcoat_r_o"
- icon_closed = "mekesatis_labcoat_r"
- item_icons = list(
- slot_l_hand_str = "mekesatis_labcoat_lh",
- slot_r_hand_str = "mekesatis_labcoat_rh",
- )
- flick("mekesatis_labcoat_r", src)
- changed = FALSE
- if("mekesatis_holocoat_o")
- icon_state = "mekesatis_labcoat_r_o"
- item_state = "mekesatis_labcoat_r_o"
- icon_open = "mekesatis_labcoat_r_o"
- icon_closed = "mekesatis_labcoat_r"
- item_icons = list(
- slot_l_hand_str = "mekesatis_labcoat_lh",
- slot_r_hand_str = "mekesatis_labcoat_rh",
- )
- flick("mekesatis_labcoat_r_o", src)
- changed = FALSE
- else
- return
- usr.update_inv_wear_suit()
Advertisement
Add Comment
Please, Sign In to add comment