Guest User

Untitled

a guest
Apr 8th, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.61 KB | None | 0 0
  1. /obj/item/clothing/suit/storage/toggle/labcoat/fluff/mekesatis_holocoat
  2. name = "biochemist holocoat"
  3. desc = "An Eridani Corporate Federation holocoat modelled after a standard biochemist labcoat. It is extremely well cared for."
  4. icon = 'icons/obj/custom_items/mekesatis_holocoat.dmi'
  5. icon_state = "mekesatis_labcoat_o"
  6. item_state = "mekesatis_labcoat_o"
  7. icon_open = "mekesatis_labcoat_o"
  8. icon_closed = "mekesatis_labcoat"
  9. item_icons = list(
  10. slot_l_hand_str = "mekesatis_labcoat_o_lh",
  11. slot_r_hand_str = "mekesatis_labcoat_o_rh",
  12. )
  13. contained_sprite = TRUE
  14. var/changed = FALSE
  15.  
  16. /obj/item/clothing/suit/storage/toggle/labcoat/fluff/mekesatis_holocoat/examine(mob/user)
  17. ..()
  18. if(in_range(user, src) && (all_languages[LANGUAGE_TRADEBAND] in user.languages))
  19. 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>")
  20. if(in_range(user, src) && !(all_languages[LANGUAGE_TRADEBAND] in user.languages))
  21. 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>")
  22. else
  23. 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>")
  24.  
  25. /obj/item/clothing/suit/storage/toggle/labcoat/fluff/mekesatis_holocoat/verb/activate()
  26. set name = "Toggle Holocoat"
  27. set category = "Object"
  28. set src in usr
  29.  
  30. if(!changed && icon_state == "mekesatis_labcoat")
  31. usr.visible_message("<span class='notice'>With a subtle gesture, the labcoat flickers active!</span>")
  32. change()
  33. sleep(28)
  34. icon_state = "mekesatis_holocoat"
  35. item_state = "mekesatis_holocoat"
  36. icon_open = "mekesatis_holocoat_o"
  37. icon_closed = "mekesatis_holocoat"
  38. item_icons = list(
  39. slot_l_hand_str = "mekesatis_holocoat_lh",
  40. slot_r_hand_str = "mekesatis_holocoat_rh",
  41. )
  42. usr.update_inv_wear_suit()
  43. return
  44. if(!changed && icon_state == "mekesatis_labcoat_o")
  45. usr.visible_message("<span class='notice'>With a subtle gesture, the labcoat flickers active!</span>")
  46. change()
  47. sleep(28)
  48. icon_state = "mekesatis_holocoat_o"
  49. item_state = "mekesatis_holocoat_o"
  50. icon_open = "mekesatis_holocoat_o"
  51. icon_closed = "mekesatis_holocoat"
  52. item_icons = list(
  53. slot_l_hand_str = "mekesatis_holocoat_lh",
  54. slot_r_hand_str = "mekesatis_holocoat_rh",
  55. )
  56. usr.update_inv_wear_suit()
  57. return
  58.  
  59. if(!changed && icon_state == "mekesatis_holocoat")
  60. usr.visible_message("<span class='notice'>With a subtle gesture, the holocoat fades to a normal labcoat.</span>")
  61. change()
  62. sleep(25)
  63. icon_state = "mekesatis_labcoat"
  64. item_state = "mekesatis_labcoat"
  65. icon_open = "mekesatis_labcoat_o"
  66. icon_closed = "mekesatis_labcoat"
  67. item_icons = list(
  68. slot_l_hand_str = "mekesatis_labcoat_lh",
  69. slot_r_hand_str = "mekesatis_labcoat_rh",
  70. )
  71. usr.update_inv_wear_suit()
  72. return
  73. if(!changed && icon_state == "mekesatis_holocoat_o")
  74. usr.visible_message("<span class='notice'>With a subtle gesture, the holocoat fades to a normal labcoat.</span>")
  75. change()
  76. sleep(25)
  77. icon_state = "mekesatis_labcoat_o"
  78. item_state = "mekesatis_labcoat_o"
  79. icon_open = "mekesatis_labcoat_o"
  80. icon_closed = "mekesatis_labcoat"
  81. item_icons = list(
  82. slot_l_hand_str = "mekesatis_labcoat_lh",
  83. slot_r_hand_str = "mekesatis_labcoat_rh",
  84. )
  85. usr.update_inv_wear_suit()
  86. return
  87. else
  88. return
  89.  
  90.  
  91. /obj/item/clothing/suit/storage/toggle/labcoat/fluff/mekesatis_holocoat/proc/change()
  92. INVOKE_ASYNC(src, .proc/do_change)
  93.  
  94. /obj/item/clothing/suit/storage/toggle/labcoat/fluff/mekesatis_holocoat/proc/do_change()
  95. changed = TRUE
  96. switch(icon_state)
  97. if("mekesatis_labcoat")
  98. icon_state = "mekesatis_holocoat_t"
  99. item_state = "mekesatis_holocoat_t"
  100. icon_open = "mekesatis_holocoat_t_o"
  101. icon_closed = "mekesatis_holocoat_t"
  102. item_icons = list(
  103. slot_l_hand_str = "mekesatis_holocoat_lh",
  104. slot_r_hand_str = "mekesatis_holocoat_rh",
  105. )
  106. flick("mekesatis_holocoat_t", src)
  107. changed = FALSE
  108. if("mekesatis_labcoat_o")
  109. icon_state = "mekesatis_holocoat_t_o"
  110. item_state = "mekesatis_holocoat_t_o"
  111. icon_open = "mekesatis_holocoat_t_o"
  112. icon_closed = "mekesatis_holocoat_t"
  113. item_icons = list(
  114. slot_l_hand_str = "mekesatis_holocoat_lh",
  115. slot_r_hand_str = "mekesatis_holocoat_rh",
  116. )
  117. flick("mekesatis_holocoat_t_o", src)
  118. changed = FALSE
  119. if("mekesatis_holocoat")
  120. icon_state = "mekesatis_labcoat_r"
  121. item_state = "mekesatis_labcoat_r"
  122. icon_open = "mekesatis_labcoat_r_o"
  123. icon_closed = "mekesatis_labcoat_r"
  124. item_icons = list(
  125. slot_l_hand_str = "mekesatis_labcoat_lh",
  126. slot_r_hand_str = "mekesatis_labcoat_rh",
  127. )
  128. flick("mekesatis_labcoat_r", src)
  129. changed = FALSE
  130. if("mekesatis_holocoat_o")
  131. icon_state = "mekesatis_labcoat_r_o"
  132. item_state = "mekesatis_labcoat_r_o"
  133. icon_open = "mekesatis_labcoat_r_o"
  134. icon_closed = "mekesatis_labcoat_r"
  135. item_icons = list(
  136. slot_l_hand_str = "mekesatis_labcoat_lh",
  137. slot_r_hand_str = "mekesatis_labcoat_rh",
  138. )
  139. flick("mekesatis_labcoat_r_o", src)
  140. changed = FALSE
  141. else
  142. return
  143.  
  144. usr.update_inv_wear_suit()
Advertisement
Add Comment
Please, Sign In to add comment