Merge pull request #7271 from Aurorablade/CultBugs

Fixes more cult bugs
This commit is contained in:
Fox McCloud
2017-05-13 17:51:19 -04:00
committed by GitHub
4 changed files with 14 additions and 9 deletions
+1 -1
View File
@@ -1332,7 +1332,7 @@
to_chat(current, "<font color=\"cultitalic\"><b><i>You catch a glimpse of the Realm of [ticker.mode.cultdat.entity_name], [ticker.mode.cultdat.entity_title2]. You now see how flimsy the world is, you see that it should be open to the knowledge of [ticker.mode.cultdat.entity_name].</b></i></font>")
to_chat(current, "<font color=\"cultitalic\"><b><i>Assist your new compatriots in their dark dealings. Their goal is yours, and yours is theirs. You serve the Dark One above all else. Bring It back.</b></i></font>")
var/datum/game_mode/cult/cult = ticker.mode
if(istype(cult))
if(GAMEMODE_IS_CULT)
cult.memorize_cult_objectives(src)
else
var/explanation = "Summon [ticker.mode.cultdat.entity_name] via the use of the appropriate rune. It will only work if nine cultists stand on and around it."
+2 -8
View File
@@ -170,6 +170,7 @@ var/global/list/all_cults = list()
/datum/game_mode/proc/add_cultist(datum/mind/cult_mind) //BASE
if(!istype(cult_mind))
return 0
var/datum/game_mode/cult/cult_mode = ticker.mode
if(!(cult_mind in cult) && is_convertable_to_cult(cult_mind))
cult += cult_mind
cult_mind.current.faction |= "cult"
@@ -179,18 +180,11 @@ var/global/list/all_cults = list()
if(jobban_isbanned(cult_mind.current, ROLE_CULTIST) || jobban_isbanned(cult_mind.current, ROLE_SYNDICATE))
replace_jobbanned_player(cult_mind.current, ROLE_CULTIST)
update_cult_icons_added(cult_mind)
cult_mode.memorize_cult_objectives(cult_mind)
if(GAMEMODE_IS_CULT)
var/datum/game_mode/cult/cult_mode = ticker.mode
cult_mode.check_numbers()
return 1
/datum/game_mode/cult/add_cultist(datum/mind/cult_mind) //INHERIT
if(!..(cult_mind))
return
memorize_cult_objectives(cult_mind)
/datum/game_mode/proc/remove_cultist(datum/mind/cult_mind, show_message = 1)
if(cult_mind in cult)
cult -= cult_mind
+8
View File
@@ -1142,6 +1142,14 @@ About the new airlock wires panel:
open()
safe = TRUE
/obj/machinery/door/airlock/narsie_act()
var/turf/T = get_turf(src)
if(prob(20))
new/obj/machinery/door/airlock/cult(T)
qdel(src)
//////////////////////////////////
/*
Cult Airlocks
+3
View File
@@ -158,6 +158,9 @@
if (locate(/obj/structure/falsewall) in loc.contents)
to_chat(user, "<span class='warning'>There is already a false wall present!</span>")
return
if(istype(W, /obj/item/stack/sheet/runed_metal))
to_chat(user, "<span class='warning'>You can't seem to make the metal bend..</span>")
return
if(istype(W,/obj/item/stack/rods))
var/obj/item/stack/rods/S = W