Advertisement
Guest User

civilian_chaplain.dm

a guest
Aug 9th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.64 KB | None | 0 0
  1. //Due to how large this one is it gets its own file
  2. /*
  3. Chaplain
  4. */
  5. /datum/job/chaplain
  6. title = "Chaplain"
  7. flag = CHAPLAIN
  8. department_head = list("Head of Personnel")
  9. department_flag = CIVILIAN
  10. faction = "Station"
  11. total_positions = 1
  12. spawn_positions = 1
  13. supervisors = "the head of personnel"
  14. selection_color = "#dddddd"
  15.  
  16. default_pda = /obj/item/device/pda/chaplain
  17.  
  18. access = list(access_morgue, access_chapel_office, access_crematorium)
  19. minimal_access = list(access_morgue, access_chapel_office, access_crematorium)
  20.  
  21. //Pretty bible names
  22. var/global/list/biblenames = list("Bible", "Quran", "Scrapbook", "Burning Bible", "Clown Bible", "Banana Bible", "Creeper Bible", "White Bible", "Holy Light", "The God Delusion", "Tome", "The King in Yellow", "Ithaqua", "Scientology", "Melted Bible", "Necronomicon")
  23.  
  24. //Bible iconstates
  25. var/global/list/biblestates = list("bible", "koran", "scrapbook", "burning", "honk1", "honk2", "creeper", "white", "holylight", "atheist", "tome", "kingyellow", "ithaqua", "scientology", "melted", "necronomicon")
  26.  
  27. //Bible itemstates
  28. var/global/list/bibleitemstates = list("bible", "koran", "scrapbook", "bible", "bible", "bible", "syringe_kit", "syringe_kit", "syringe_kit", "syringe_kit", "syringe_kit", "kingyellow", "ithaqua", "scientology", "melted", "necronomicon")
  29.  
  30. /datum/job/chaplain/proc/setupbiblespecifics(var/obj/item/weapon/storage/book/bible/B, var/mob/living/carbon/human/H)
  31. switch(B.icon_state)
  32. if("honk1","honk2")
  33. new /obj/item/weapon/grown/bananapeel(B)
  34. new /obj/item/weapon/grown/bananapeel(B)
  35.  
  36. if(B.icon_state == "honk1")
  37. H.equip_to_slot_or_del(new /obj/item/clothing/mask/gas/clown_hat(H), slot_wear_mask)
  38.  
  39. if("bible")
  40. for(var/area/chapel/main/A in world)
  41. for(var/turf/T in A.contents)
  42. if(T.icon_state == "carpetsymbol")
  43. T.dir = 2
  44. if("koran")
  45. for(var/area/chapel/main/A in world)
  46. for(var/turf/T in A.contents)
  47. if(T.icon_state == "carpetsymbol")
  48. T.dir = 4
  49. if("scientology")
  50. for(var/area/chapel/main/A in world)
  51. for(var/turf/T in A.contents)
  52. if(T.icon_state == "carpetsymbol")
  53. T.dir = 8
  54. if("atheist")
  55. for(var/area/chapel/main/A in world)
  56. for(var/turf/T in A.contents)
  57. if(T.icon_state == "carpetsymbol")
  58. T.dir = 10
  59.  
  60. /datum/job/chaplain/Topic(href, href_list)
  61. if(href_list["seticon"])
  62. var/iconi = text2num(href_list["seticon"])
  63.  
  64. var/biblename = biblenames[iconi]
  65. var/obj/item/weapon/storage/book/bible/B = locate(href_list["bible"])
  66.  
  67. B.icon_state = biblestates[iconi]
  68. B.item_state = bibleitemstates[iconi]
  69.  
  70. //Set biblespecific chapels
  71. setupbiblespecifics(B, usr)
  72.  
  73. usr.put_in_hands(B) // Update inhand icon
  74.  
  75. if(ticker)
  76. ticker.Bible_icon_state = B.icon_state
  77. ticker.Bible_item_state = B.item_state
  78. ticker.Bible_name = B.name
  79. feedback_set_details("religion_book","[biblename]")
  80.  
  81. usr << browse(null, "window=editicon") // Close window
  82.  
  83. /datum/job/chaplain/equip_items(var/mob/living/carbon/human/H)
  84. H.equip_to_slot_or_del(new /obj/item/clothing/under/rank/chaplain(H), slot_w_uniform)
  85. H.equip_to_slot_or_del(new /obj/item/clothing/shoes/sneakers/black(H), slot_shoes)
  86.  
  87. var/obj/item/weapon/storage/book/bible/B = new /obj/item/weapon/storage/book/bible/booze(H)
  88. spawn(0)
  89. var/religion_name = "Christianity"
  90. var/new_religion = copytext(sanitize(input(H, "You are the Chaplain. Would you like to change your religion? Default is Christianity, in SPACE.", "Name change", religion_name)),1,MAX_NAME_LEN)
  91.  
  92. if (!new_religion)
  93. new_religion = religion_name
  94.  
  95. switch(lowertext(new_religion))
  96. if("christianity")
  97. B.name = pick("The Holy Bible","The Dead Sea Scrolls")
  98. if("satanism")
  99. B.name = "The Unholy Bible"
  100. if("cthulu")
  101. B.name = "The Necronomicon"
  102. if("islam")
  103. B.name = "Quran"
  104. if("scientology")
  105. B.name = pick("The Biography of L. Ron Hubbard","Dianetics")
  106. if("chaos")
  107. B.name = "The Book of Lorgar"
  108. if("imperium")
  109. B.name = "Uplifting Primer"
  110. if("toolboxia")
  111. B.name = "Toolbox Manifesto"
  112. if("homosexuality")
  113. B.name = "Guys Gone Wild"
  114. if("lol", "wtf", "gay", "penis", "ass", "poo", "badmin", "shitmin", "deadmin", "cock", "cocks", "kek", "kekistan" "8chan","4chan", "reddit")
  115. B.name = pick("Woodys Got Wood: The Aftermath", "War of the Cocks", "Sweet Bro and Hella Jef: Expanded Edition")
  116. H.setBrainLoss(100) // starts off retarded as fuck
  117. if("science")
  118. B.name = pick("Principle of Relativity", "Quantum Enigma: Physics Encounters Consciousness", "Programming the Universe", "Quantum Physics and Theology", "String Theory for Dummies", "How To: Build Your Own Warp Drive", "The Mysteries of Bluespace", "Playing God: Collector's Edition")
  119. if("prismatology")
  120. B.name = "Emetics"
  121. if("sikhism")
  122. B.name = "Guru Granth Sahib"
  123. if("nod", "brotherhood of nod")
  124. B.name = "Book of Nod"
  125. if("judaism")
  126. B.name = pick("The Torah", "The Talmud")
  127. if("autism")
  128. B.name = "Guide To BYOND Coding"
  129. if("communism")
  130. B.name = "The Communist Manifesto"
  131. if("nazism", "fascism")
  132. B.name = pick("Mein Kampf", "The Turner Diaries", "For My Legionairies")
  133. if("anarchism")
  134. B.name = "The Anarchist's Cookbook"
  135. if("rastafarianism")
  136. B.name = "Holy Piby"
  137. if("bahaism", "baha'ism")
  138. B.name = "Aqdas"
  139. if("libertarianism", "pedophilia")
  140. B.name = "Atlas Shrugged"
  141. if("gaming")
  142. B.name = "A Paid Review"
  143. if("spurdo")
  144. B.name = "Fuggin Baible :DDD"
  145. H.setBrainLoss(50)//o fug im retarded :DDDD
  146. else
  147. B.name = "The Holy Book of [new_religion]"
  148. feedback_set_details("religion_name","[new_religion]")
  149.  
  150. spawn(1)
  151. var/deity_name = "Space Jesus"
  152. var/new_deity = copytext(sanitize(input(H, "Would you like to change your deity? Default is Space Jesus.", "Name change", deity_name)),1,MAX_NAME_LEN)
  153.  
  154. if ((length(new_deity) == 0) || (new_deity == "Space Jesus") )
  155. new_deity = deity_name
  156. B.deity_name = new_deity
  157.  
  158. if(ticker)
  159. ticker.Bible_deity_name = B.deity_name
  160. feedback_set_details("religion_deity","[new_deity]")
  161.  
  162. //Open bible selection
  163. var/dat = "<html><head><title>Pick Bible Style</title></head><body><center><h2>Pick a bible style</h2></center><table>"
  164.  
  165. var/i
  166. for(i = 1, i < biblestates.len, i++)
  167. var/icon/bibleicon = icon('icons/obj/storage.dmi', biblestates[i])
  168.  
  169. var/nicename = biblenames[i]
  170. H << browse_rsc(bibleicon, nicename)
  171. dat += {"<tr><td><img src="[nicename]"></td><td><a href="?src=\ref[src];seticon=[i];bible=\ref[B]">[nicename]</a></td></tr>"}
  172.  
  173. dat += "</table></body></html>"
  174.  
  175. H << browse(dat, "window=editicon;can_close=0;can_minimize=0;size=250x650")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement