diff --git a/code/game/gamemodes/cult/cult.dm b/code/game/gamemodes/cult/cult.dm
index 1ea099cd1ae..091c13371c3 100644
--- a/code/game/gamemodes/cult/cult.dm
+++ b/code/game/gamemodes/cult/cult.dm
@@ -1,9 +1,8 @@
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:31
+var/global/list/all_cults = list()
/datum/game_mode
var/list/datum/mind/cult = list()
- var/list/allwords = list("travel","self","see","hell","blood","join","tech","destroy", "other", "hide")
-
/proc/iscultist(mob/living/M as mob)
return istype(M) && M.mind && ticker && ticker.mode && (M.mind in ticker.mode.cult)
@@ -22,32 +21,64 @@
var/mob/living/carbon/human/H = mind.current
if(isloyal(H))
return 0
+ if(issilicon(mind.current))
+ return 0 //can't convert machines, that's ratvar's thing
+ if(isguardian(mind.current))
+ var/mob/living/simple_animal/hostile/guardian/G = mind.current
+ if(!iscultist(G.summoner))
+ return 0 //can't convert it unless the owner is converted
return 1
+/proc/is_sacrifice_target(datum/mind/mind)
+ if(istype(ticker.mode.name, "cult"))
+ var/datum/game_mode/cult/cult_mode = ticker.mode
+ if(mind == cult_mode.sacrifice_target)
+ return 1
+ return 0
/datum/game_mode/cult
name = "cult"
config_tag = "cult"
restricted_jobs = list("Chaplain","AI", "Cyborg", "Internal Affairs Agent", "Security Officer", "Warden", "Detective", "Security Pod Pilot", "Head of Security", "Captain", "Head of Personnel", "Blueshield", "Nanotrasen Representative", "Magistrate", "Brig Physician", "Nanotrasen Navy Officer", "Special Operations Officer")
protected_jobs = list()
- required_players = 30
- required_enemies = 3
- recommended_enemies = 4
+ required_players = 1//30
+ required_enemies = 1//3
+ recommended_enemies = 1//4
var/datum/mind/sacrifice_target = null
var/finished = 0
- var/list/startwords = list("blood","join","self","hell")
var/list/objectives = list()
var/eldergod = 1 //for the summon god objective
+ var/demons_summoned = 0
var/acolytes_needed = 4 //for the survive objective - base number of acolytes, increased by 1 for every 10 players
var/const/min_cultists_to_start = 3
var/const/max_cultists_to_start = 4
var/acolytes_survived = 0
+ var/narsie_condition_cleared = 0 //allows Nar-Sie to be summonned during cult rounds. set to 1 once the cult reaches the second phase.
+ var/current_objective = 1 //equals the number of cleared objectives + 1
+ var/prenarsie_objectives = 2 //how many objectives at most before the cult gets to summon narsie
+ var/list/bloody_floors = list()
+ var/spilltarget = 100 //how many floor tiles must be covered in blood to complete the bloodspill objective
+ var/convert_target = 0 //how many members the cult needs to reach to complete the convert objective
+ var/harvested = 0
+
+ var/list/sacrificed = list() //contains the mind of the sacrifice target ONCE the sacrifice objective has been completed
+ var/mass_convert = 0 //set to 1 if the convert objective has been accomplised once that round
+ var/spilled_blood = 0 //set to 1 if the bloodspill objective has been accomplised once that round
+ var/max_spilled_blood = 0 //highest quantity of blood covered tiles during the round
+ var/bonus = 0 //set to 1 if the cult has completed the bonus (third phase) objective (harvest, hijack, massacre)
+
+ var/harvest_target = 10
+ var/massacre_target = 5
+
+ var/escaped_shuttle = 0
+ var/escaped_pod = 0
+ var/survivors = 0
/datum/game_mode/cult/announce()
to_chat(world, "The current game mode is - Cult!")
@@ -55,16 +86,9 @@
/datum/game_mode/cult/pre_setup()
- if(prob(50))
- objectives += "survive"
- objectives += "sacrifice"
- else
- objectives += "eldergod"
- objectives += "sacrifice"
-
if(config.protect_roles_from_antagonist)
restricted_jobs += protected_jobs
-
+ ..()
var/list/cultists_possible = get_players_for_role(ROLE_CULTIST)
for(var/cultists_number = 1 to max_cultists_to_start)
@@ -92,10 +116,13 @@
for(var/datum/mind/cult_mind in cult)
equip_cultist(cult_mind.current)
- grant_runeword(cult_mind.current)
+ cult_mind.current.faction |= "cult"
+ var/datum/action/innate/cultcomm/C = new()
+ C.Grant(cult_mind.current)
update_cult_icons_added(cult_mind)
- to_chat(cult_mind.current, "\blue You are a member of the cult!")
- memorize_cult_objectives(cult_mind)
+ to_chat(cult_mind.current, "You catch a glimpse of the Realm of [ticker.mode.cultdat.entity_name], [ticker.mode.cultdat.entity_title3]. You now see how flimsy the world is, you see that it should be open to the knowledge of [ticker.mode.cultdat.entity_name].")
+
+ first_phase()
..()
@@ -106,30 +133,30 @@
switch(objectives[obj_count])
if("survive")
explanation = "Our knowledge must live on. Make sure at least [acolytes_needed] acolytes escape on the shuttle to spread their work on an another station."
+ if("convert")
+ explanation = "We must increase our influence before we can summon [ticker.mode.cultdat.entity_name], Convert [convert_target] crew members. Take it slowly to avoid raising suspicions."
+ if("bloodspill")
+ explanation = "We must prepare this place for [ticker.mode.cultdat.entity_title1]'s coming. Spill blood and gibs over [spilltarget] floor tiles."
if("sacrifice")
if(sacrifice_target)
- explanation = "Sacrifice [sacrifice_target.current.real_name], the [sacrifice_target.assigned_role]. You will need the sacrifice rune (hell blood join) and three acolytes to do so."
+ explanation = "Sacrifice [sacrifice_target.current.real_name], the [sacrifice_target.assigned_role]. You will need the sacrifice rune and three acolytes to do so."
else
explanation = "Free objective."
if("eldergod")
- explanation = "Summon Nar-Sie via the use of the appropriate rune (Hell join self). It will only work if nine cultists stand on and around it."
+ explanation = "Summon [ticker.mode.cultdat.entity_name]. It will only work if nine cultists stand on and around it."
to_chat(cult_mind.current, "Objective #[obj_count]: [explanation]")
cult_mind.memory += "Objective #[obj_count]: [explanation]
"
- to_chat(cult_mind.current, "The convert rune is join blood self")
- cult_mind.memory += "The convert rune is join blood self
"
/datum/game_mode/proc/equip_cultist(mob/living/carbon/human/mob)
if(!istype(mob))
return
- if(mob.mind)
- if(mob.mind.assigned_role == "Clown")
+ if (mob.mind)
+ if (mob.mind.assigned_role == "Clown")
to_chat(mob, "Your training has allowed you to overcome your clownish nature, allowing you to wield weapons without harming yourself.")
mob.mutations.Remove(CLUMSY)
- add_cult_viewpoint(mob) // give them a viewpoint
-
var/obj/item/weapon/paper/talisman/supply/T = new(mob)
var/list/slots = list (
"backpack" = slot_in_backpack,
@@ -139,55 +166,31 @@
"right hand" = slot_r_hand,
)
var/where = mob.equip_in_one_of_slots(T, slots)
- if(!where)
- to_chat(mob, "Unfortunately, you weren't able to get a talisman. This is very bad and you should adminhelp immediately.")
+ if (!where)
+ to_chat(mob, "Unfortunately, you weren't able to get a talisman. This is very bad and you should adminhelp immediately.")
else
- to_chat(mob, "You have a talisman in your [where], one that will help you start the cult on this station. Use it well and remember - there are others.")
+ to_chat(mob, "You have a talisman in your [where], one that will help you start the cult on this station. Use it well and remember - there are others.")
mob.update_icons()
return 1
-/datum/game_mode/cult/grant_runeword(mob/living/carbon/human/cult_mob, var/word)
- if(!word)
- if(startwords.len > 0)
- word=pick(startwords)
- startwords -= word
- return ..(cult_mob,word)
-
-
-/datum/game_mode/proc/grant_runeword(mob/living/carbon/human/cult_mob, var/word)
- if(!cultwords["travel"])
- runerandom()
- if(!word)
- word=pick(allwords)
- var/wordexp = "[cultwords[word]] is [word]..."
- to_chat(cult_mob, "\red [pick("You remember something from the dark teachings of your master","You hear a dark voice on the wind","Black blood oozes into your vision and forms into symbols","You have a vision of a [pick("crow","raven","vulture","parrot")] it squawks","You catch a brief glimmer of the otherside")]... [wordexp]")
- cult_mob.mind.store_memory("You remember that [wordexp]", 0, 0)
-
-
-/datum/game_mode/proc/add_cult_viewpoint(var/mob/target)
- for(var/obj/cult_viewpoint/viewpoint in target)
- return
- var/obj/cult_viewpoint/viewpoint = new(target)
- viewpoint.loc = target
- return viewpoint
-
-
/datum/game_mode/proc/add_cultist(datum/mind/cult_mind) //BASE
- if(!istype(cult_mind))
+ if (!istype(cult_mind))
return 0
if(!(cult_mind in cult) && is_convertable_to_cult(cult_mind))
cult += cult_mind
- add_cult_viewpoint(cult_mind.current)
- update_cult_icons_added(cult_mind)
+ cult_mind.current.faction |= "cult"
+ var/datum/action/innate/cultcomm/C = new()
+ C.Grant(cult_mind.current)
cult_mind.current.attack_log += "\[[time_stamp()]\] Has been converted to the cult!"
if(jobban_isbanned(cult_mind.current, ROLE_CULTIST))
replace_jobbaned_player(cult_mind.current, ROLE_CULTIST)
+ update_cult_icons_added(cult_mind)
return 1
/datum/game_mode/cult/add_cultist(datum/mind/cult_mind) //INHERIT
- if(!..(cult_mind))
+ if (!..(cult_mind))
return
memorize_cult_objectives(cult_mind)
@@ -196,40 +199,18 @@
if(cult_mind in cult)
cult -= cult_mind
to_chat(cult_mind.current, "\red An unfamiliar white light flashes through your mind, cleansing the taint of the dark-one and the memories of your time as his servant with it.")
+ cult_mind.current.faction -= "cult"
cult_mind.memory = ""
cult_mind.special_role = null
- // remove the cult viewpoint object
- var/obj/viewpoint = getCultViewpoint(cult_mind.current)
- qdel(viewpoint)
-
+ for(var/datum/action/innate/cultcomm/C in cult_mind.current.actions)
+ qdel(C)
update_cult_icons_removed(cult_mind)
if(show_message)
for(var/mob/M in viewers(cult_mind.current))
to_chat(M, "[cult_mind.current] looks like they just reverted to their old faith!")
-/datum/game_mode/proc/add_cult_icon_to_spirit(mob/spirit/currentSpirit)
- if(!istype(currentSpirit))
- return FALSE
- if(currentSpirit.client)
- var/datum/atom_hud/antag/maskhud = huds[ANTAG_HUD_CULT]
- maskhud.join_hud(currentSpirit)
- set_antag_hud(currentSpirit,"hudcultist")
-
-
-/datum/game_mode/proc/remove_cult_icon_from_spirit(mob/spirit/currentSpirit)
- if(!istype(currentSpirit))
- return FALSE
- if(currentSpirit.client)
- var/datum/atom_hud/antag/maskhud = huds[ANTAG_HUD_CULT]
- maskhud.leave_hud(currentSpirit)
- set_antag_hud(currentSpirit, null)
-
-
/datum/game_mode/proc/update_cult_icons_added(datum/mind/cult_mind)
- for(var/mob/spirit/currentSpirit in spirits)
- add_cult_icon_to_spirit(currentSpirit,cult_mind)
-
var/datum/atom_hud/antag/culthud = huds[ANTAG_HUD_CULT]
culthud.join_hud(cult_mind.current)
set_antag_hud(cult_mind.current, "hudcultist")
@@ -237,9 +218,6 @@
/datum/game_mode/proc/update_cult_icons_removed(datum/mind/cult_mind)
- for(var/mob/spirit/currentSpirit in spirits)
- remove_cult_icon_from_spirit(currentSpirit,cult_mind)
-
var/datum/atom_hud/antag/culthud = huds[ANTAG_HUD_CULT]
culthud.leave_hud(cult_mind.current)
set_antag_hud(cult_mind.current, null)
@@ -259,9 +237,18 @@
cult_fail += check_survive() //the proc returns 1 if there are not enough cultists on the shuttle, 0 otherwise
if(objectives.Find("eldergod"))
cult_fail += eldergod //1 by default, 0 if the elder god has been summoned at least once
+ if(objectives.Find("slaughter"))
+ if(!demons_summoned)
+ cult_fail++
if(objectives.Find("sacrifice"))
if(sacrifice_target && !(sacrifice_target in sacrificed)) //if the target has been sacrificed, ignore this step. otherwise, add 1 to cult_fail
cult_fail++
+ if(objectives.Find("convert"))
+ if(cult.len < convert_target)
+ cult_fail++
+ if(objectives.Find("bloodspill"))
+ if(max_spilled_blood < spilltarget)
+ cult_fail++
return cult_fail //if any objectives aren't met, failure
@@ -269,9 +256,9 @@
/datum/game_mode/cult/proc/check_survive()
acolytes_survived = 0
for(var/datum/mind/cult_mind in cult)
- if(cult_mind.current && cult_mind.current.stat!=2)
+ if (cult_mind.current && cult_mind.current.stat!=2)
var/area/A = get_area(cult_mind.current )
- if( is_type_in_list(A, centcom_areas))
+ if ( is_type_in_list(A, centcom_areas))
acolytes_survived++
else if(A == shuttle_master.emergency.areaInstance && shuttle_master.emergency.mode >= SHUTTLE_ESCAPE) //snowflaked into objectives because shitty bay shuttles had areas to auto-determine this
acolytes_survived++
@@ -287,6 +274,7 @@
/datum/game_mode/cult/declare_completion()
+ bonus_check()
if(!check_cult_victory())
feedback_set_details("round_end_result","win - cult win")
@@ -324,11 +312,59 @@
feedback_add_details("cult_objective","cult_sacrifice|FAIL|GIBBED")
if("eldergod")
if(!eldergod)
- explanation = "Summon Nar-Sie. Success!"
+ explanation = "Summon [ticker.mode.cultdat.entity_name]. Success!"
feedback_add_details("cult_objective","cult_narsie|SUCCESS")
else
- explanation = "Summon Nar-Sie. Fail."
+ explanation = "Summon [ticker.mode.cultdat.entity_name]. Fail."
feedback_add_details("cult_objective","cult_narsie|FAIL")
+ if("slaughter")
+ if(demons_summoned)
+ explanation = "Bring the Slaughter. Success!"
+ feedback_add_details("cult_objective","cult_demons|SUCCESS")
+ else
+ explanation = "Bring the Slaughter. Fail."
+ feedback_add_details("cult_objective","cult_demons|FAIL")
+
+ if("convert")//convert half the crew
+ if(obj_count < objectives.len)
+ explanation = "Convert [convert_target] crewmembers ([cult.len] cultists at round end). Success!"
+ feedback_add_details("cult_objective","cult_convertion|SUCCESS")
+ else
+ explanation = "Convert [convert_target] crewmembers ([cult.len] total cultists). Fail!"
+ feedback_add_details("cult_objective","cult_convertion|FAIL")
+
+ if("bloodspill")//cover a large portion of the station in blood
+ if(obj_count < objectives.len)
+ explanation = "Cover [spilltarget] tiles of the station in blood (The peak number of covered tiles was: [max_spilled_blood]). Success!"
+ feedback_add_details("cult_objective","cult_bloodspill|SUCCESS")
+ else
+ explanation = "Cover [spilltarget] tiles of the station in blood (The peak number of covered tiles was: [max_spilled_blood]). Fail!"
+ feedback_add_details("cult_objective","cult_bloodspill|FAIL")
+
+ if("harvest")
+ if(harvested > harvest_target)
+ explanation = "Offer [harvest_target] humans for [ticker.mode.cultdat.entity_name]'s first meal of the day. ([harvested] eaten) Success!"
+ feedback_add_details("cult_objective","cult_harvest|SUCCESS")
+ else
+ explanation = "Offer [harvest_target] humans for [ticker.mode.cultdat.entity_name]'s first meal of the day. ([harvested] eaten) Fail!"
+ feedback_add_details("cult_objective","cult_harvest|FAIL")
+
+ if("hijack")
+ if(!escaped_shuttle)
+ explanation = "Do not let a single non-cultist board the Escape Shuttle. ([escaped_shuttle] escaped on the shuttle) ([escaped_pod] escaped on pods) Success!"
+ feedback_add_details("cult_objective","cult_hijack|SUCCESS")
+ else
+ explanation = "Do not let a single non-cultist board the Escape Shuttle. ([escaped_shuttle] escaped on the shuttle) ([escaped_pod] escaped on pods) Fail!"
+ feedback_add_details("cult_objective","cult_hijack|FAIL")
+
+ if("massacre")
+ if(survivors < massacre_target)
+ explanation = "Massacre the crew until less than [massacre_target] people are left on the station. ([survivors] humans left alive) Success!"
+ feedback_add_details("cult_objective","cult_massacre|SUCCESS")
+ else
+ explanation = "Massacre the crew until less than [massacre_target] people are left on the station. ([survivors] humans left alive) Fail!"
+ feedback_add_details("cult_objective","cult_massacre|FAIL")
+
text += "
Objective #[obj_count]: [explanation]"
to_chat(world, text)
diff --git a/code/game/gamemodes/cult/cult_comms.dm b/code/game/gamemodes/cult/cult_comms.dm
index cb68d4aa348..2a0f1b7f46c 100644
--- a/code/game/gamemodes/cult/cult_comms.dm
+++ b/code/game/gamemodes/cult/cult_comms.dm
@@ -1,16 +1,15 @@
-/datum/action/cultcomm
+/datum/action/innate/cultcomm
name = "Communion"
button_icon_state = "cult_comms"
background_icon_state = "bg_cult"
- action_type = AB_INNATE
check_flags = AB_CHECK_RESTRAINED|AB_CHECK_STUNNED|AB_CHECK_LYING
-/datum/action/cultcomm/IsAvailable()
+/datum/action/innate/cultcomm/IsAvailable()
if(!iscultist(owner))
return 0
return ..()
-/datum/action/cultcomm/Activate()
+/datum/action/innate/cultcomm/Activate()
var/input = stripped_input(usr, "Please choose a message to tell to the other acolytes.", "Voice of Blood", "")
if(!input || !IsAvailable())
return
diff --git a/code/game/gamemodes/cult/cult_datums.dm b/code/game/gamemodes/cult/cult_datums.dm
index f4ff5c28e09..2652244f247 100644
--- a/code/game/gamemodes/cult/cult_datums.dm
+++ b/code/game/gamemodes/cult/cult_datums.dm
@@ -14,7 +14,7 @@
var/entity_title1 = "The Dark One"
var/entity_title2 = "The One Who Sees"
var/entity_title3 = "The Geometer of Blood"
- var/entity_icon_state = ""
+ var/entity_icon_state = "narsie"
//Builder Construct
@@ -60,18 +60,28 @@
entity_title1 = "The Burning One"
entity_title2 = "The One Who Consumes"
entity_title3 = "The Harbinger of Fire"
+ entity_icon_state = "narbee"
+
+ cult_wall_icon_state = "firecult"
+ cult_floor_icon_state = "cultfire"
artificer_name = "Igniting Ember"
+ artificer_icon_state = "fireartificer"
behemoth_name = "Devouring Hatred"
+ behemoth_icon_state = "firejuggernaut"
wraith_name = "Living Flame"
+ wraith_icon_state = "firewraith"
juggernaut_name = "Pyre Armor"
+ juggernaut_icon_state = "firejuggernaut"
- harvester_name = "Coal Seeker"
+ harvester_name = "Coal Seeker"//or nipple pincher...
+ harvester_icon_state = "fireharvester"
shade_name = "Charred Soul"
+ shade_icon_state = "shade"
/datum/cult_info/death
name = "Cult of Mortality"
diff --git a/code/game/gamemodes/cult/cult_items.dm b/code/game/gamemodes/cult/cult_items.dm
index 91147183ba1..f971a881ea1 100644
--- a/code/game/gamemodes/cult/cult_items.dm
+++ b/code/game/gamemodes/cult/cult_items.dm
@@ -1,41 +1,71 @@
/obj/item/weapon/melee/cultblade
name = "Cult Blade"
- desc = "An arcane weapon wielded by the followers of Nar-Sie"
+ desc = "An arcane weapon wielded by the followers of a cult."
icon_state = "cultblade"
item_state = "cultblade"
w_class = 4
force = 30
throwforce = 10
+ sharp = 1
hitsound = 'sound/weapons/bladeslice.ogg'
attack_verb = list("attacked", "slashed", "stabbed", "sliced", "torn", "ripped", "diced", "cut")
/obj/item/weapon/melee/cultblade/attack(mob/living/target as mob, mob/living/carbon/human/user as mob)
- if(iscultist(user))
- return ..()
- else
- user.Paralyse(5)
- to_chat(user, "\red An unexplicable force powerfully repels the sword from [target]!")
- var/organ = ((user.hand ? "l_":"r_") + "arm")
- var/obj/item/organ/external/affecting = user.get_organ(organ)
- if(affecting.take_damage(rand(force/2, force))) //random amount of damage between half of the blade's force and the full force of the blade.
- user.UpdateDamageIcon()
- return
+ if(!iscultist(user))
+ user.Weaken(5)
+ user.unEquip(src, 1)
+ user.visible_message("A powerful force shoves [user] away from [target]!", \
+ "\"You shouldn't play with sharp things. You'll poke someone's eye out.\"")
+ if(ishuman(user))
+ var/mob/living/carbon/human/H = user
+ H.apply_damage(rand(force/2, force), BRUTE, pick("l_arm", "r_arm"))
+ else
+ user.adjustBruteLoss(rand(force/2,force))
+ return
+ ..()
-/obj/item/weapon/melee/cultblade/pickup(mob/living/user as mob)
+/obj/item/weapon/melee/cultblade/pickup(mob/living/user)
..()
if(!iscultist(user))
- to_chat(user, "\red An overwhelming feeling of dread comes over you as you pick up the cultist's sword. It would be wise to be rid of this blade quickly.")
+ to_chat(user, "\"I wouldn't advise that.\"")
+ to_chat(user, "An overwhelming sense of nausea overpowers you!")
user.Dizzy(120)
+/obj/item/weapon/melee/cultblade/dagger
+ name = "sacrificial dagger"
+ desc = "A strange dagger said to be used by sinister groups for \"preparing\" a corpse before sacrificing it to their dark gods."
+ icon = 'icons/obj/wizard.dmi'
+ icon_state = "render"
+ w_class = 2
+ force = 15
+ throwforce = 25
+ var/cooldown = 0
+
+/obj/item/weapon/melee/cultblade/dagger/attack(mob/living/target, mob/living/carbon/human/user)
+ ..()
+ if(cooldown <= world.time && prob(50) && !target.stat)
+ if(ishuman(target))
+ visible_message("The runes on the blade absorb the blood of [target]!")
+ var/mob/living/carbon/human/H = target
+ H.drip(500)
+ cooldown = world.time + 2400
+
+
+/obj/item/weapon/legcuffs/bolas/cult
+ name = "runed bola"
+ desc = "A strong bola, bound with dark magic. Throw it to trip and slow your victim."
+ icon = 'icons/obj/items.dmi'
+ icon_state = "bola_cult"
+ breakouttime = 45
/obj/item/clothing/head/culthood
name = "cult hood"
icon_state = "culthood"
- desc = "A hood worn by the followers of Nar-Sie."
+ desc = "A hood worn by the followers of a cult."
flags_inv = HIDEFACE
flags = HEADCOVERSEYES
- armor = list(melee = 30, bullet = 10, laser = 5, energy = 5, bomb = 0, bio = 0, rad = 0)
+ armor = list(melee = 30, bullet = 10, laser = 5,energy = 5, bomb = 0, bio = 0, rad = 0)
cold_protection = HEAD
min_cold_protection_temperature = SPACE_HELM_MIN_TEMP_PROTECT
@@ -44,22 +74,23 @@
icon_state = "cult_hoodalt"
item_state = "cult_hoodalt"
-/obj/item/clothing/suit/hooded/cultrobes/alt
- icon_state = "cultrobesalt"
- item_state = "cultrobesalt"
- hoodtype = /obj/item/clothing/head/culthood/alt
/obj/item/clothing/suit/hooded/cultrobes
name = "cult robes"
- desc = "A set of armored robes worn by the followers of Nar-Sie"
+ desc = "A set of armored robes worn by the followers of a cult."
icon_state = "cultrobes"
item_state = "cultrobes"
body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS
hoodtype = /obj/item/clothing/head/culthood
allowed = list(/obj/item/weapon/tome,/obj/item/weapon/melee/cultblade)
- armor = list(melee = 50, bullet = 30, laser = 50, energy = 20, bomb = 25, bio = 10, rad = 0)
+ armor = list(melee = 50, bullet = 30, laser = 50,energy = 20, bomb = 25, bio = 10, rad = 0)
flags_inv = HIDEJUMPSUIT
+/obj/item/clothing/suit/hooded/cultrobes/alt
+ icon_state = "cultrobesalt"
+ item_state = "cultrobesalt"
+ hoodtype = /obj/item/clothing/head/culthood/alt
+
/obj/item/clothing/head/magus
name = "magus helm"
icon_state = "magus"
@@ -67,7 +98,7 @@
desc = "A helm worn by the followers of Nar-Sie."
flags_inv = HIDEFACE
flags = HEADCOVERSEYES | HEADCOVERSMOUTH | BLOCKHAIR
- armor = list(melee = 30, bullet = 30, laser = 30, energy = 20, bomb = 0, bio = 0, rad = 0)
+ armor = list(melee = 30, bullet = 30, laser = 30,energy = 20, bomb = 0, bio = 0, rad = 0)
/obj/item/clothing/suit/magusred
name = "magus robes"
@@ -76,15 +107,15 @@
item_state = "magusred"
body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS
allowed = list(/obj/item/weapon/tome,/obj/item/weapon/melee/cultblade)
- armor = list(melee = 50, bullet = 30, laser = 50, energy = 20, bomb = 25, bio = 10, rad = 0)
+ armor = list(melee = 50, bullet = 30, laser = 50,energy = 20, bomb = 25, bio = 10, rad = 0)
flags_inv = HIDEGLOVES|HIDESHOES|HIDEJUMPSUIT
/obj/item/clothing/head/helmet/space/cult
name = "cult helmet"
- desc = "A space worthy helmet used by the followers of Nar-Sie"
+ desc = "A space worthy helmet used by the followers of a cult."
icon_state = "cult_helmet"
item_state = "cult_helmet"
- armor = list(melee = 60, bullet = 50, laser = 30, energy = 15, bomb = 30, bio = 30, rad = 30)
+ armor = list(melee = 60, bullet = 50, laser = 30,energy = 15, bomb = 30, bio = 30, rad = 30)
/obj/item/clothing/suit/space/cult
name = "cult armour"
@@ -93,4 +124,193 @@
desc = "A bulky suit of armour, bristling with spikes. It looks space proof."
w_class = 3
allowed = list(/obj/item/weapon/tome,/obj/item/weapon/melee/cultblade,/obj/item/weapon/tank)
- armor = list(melee = 60, bullet = 50, laser = 30, energy = 15, bomb = 30, bio = 30, rad = 30)
+ slowdown = 1
+ armor = list(melee = 60, bullet = 50, laser = 30,energy = 15, bomb = 30, bio = 30, rad = 30)
+
+/obj/item/clothing/suit/hooded/cultrobes/cult_shield
+ name = "empowered cultist armor"
+ desc = "Empowered garb which creates a powerful shield around the user."
+ icon_state = "cult_armor"
+ item_state = "cult_armor"
+ w_class = 4
+ armor = list(melee = 50, bullet = 40, laser = 50,energy = 30, bomb = 50, bio = 30, rad = 30)
+ body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS
+ allowed = list(/obj/item/weapon/tome,/obj/item/weapon/melee/cultblade)
+ var/current_charges = 3
+ hoodtype = /obj/item/clothing/head/cult_hoodie
+
+/obj/item/clothing/head/cult_hoodie
+ name = "empowered cultist armor"
+ desc = "Empowered garb which creates a powerful shield around the user."
+ icon_state = "cult_hoodalt"
+ armor = list(melee = 50, bullet = 40, laser = 50,energy = 30, bomb = 50, bio = 30, rad = 30)
+ body_parts_covered = HEAD
+ flags_inv = HIDEFACE
+ flags = NODROP | HEADCOVERSEYES
+
+/obj/item/clothing/suit/hooded/cultrobes/cult_shield/equipped(mob/living/user, slot)
+ ..()
+ if(!iscultist(user))
+ to_chat(user, "\"I wouldn't advise that.\"")
+ to_chat(user, "An overwhelming sense of nausea overpowers you!")
+ user.unEquip(src, 1)
+ user.Dizzy(30)
+ user.Weaken(5)
+
+/obj/item/clothing/suit/hooded/cultrobes/cult_shield/hit_reaction(mob/living/carbon/human/owner, attack_text, isinhands)
+ if(current_charges)
+ owner.visible_message("\The [attack_text] is deflected in a burst of blood-red sparks!")
+ current_charges--
+ new /obj/effect/overlay/temp/cult/sparks(get_turf(owner))
+ if(!current_charges)
+ owner.visible_message("The runed shield around [owner] suddenly disappears!")
+ owner.update_inv_wear_suit()
+ return 1
+ return 0
+
+/obj/item/clothing/suit/hooded/cultrobes/berserker
+ name = "flagellant's robes"
+ desc = "Blood-soaked robes infused with dark magic; allows the user to move at inhuman speeds, but at the cost of increased damage."
+ icon_state = "hardsuit-beserker"
+ item_state = "hardsuit-beserker"
+ flags_inv = HIDEJUMPSUIT
+ allowed = list(/obj/item/weapon/tome,/obj/item/weapon/melee/cultblade)
+ body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS
+ armor = list(melee = -100, bullet = -100, laser = -100,energy = -100, bomb = -100, bio = -100, rad = -100)
+ slowdown = -1
+ hoodtype = /obj/item/clothing/head/berserkerhood
+
+
+/obj/item/clothing/head/berserkerhood
+ name = "flagellant's robes"
+ desc = "Blood-soaked garb infused with dark magic; allows the user to move at inhuman speeds, but at the cost of increased damage."
+ icon_state = "culthood"
+ flags_inv = HIDEFACE
+ flags = HEADCOVERSEYES
+ armor = list(melee = -100, bullet = -100, laser = -100,energy = -100, bomb = -100, bio = -100, rad = -100)
+
+/obj/item/weapon/whetstone/cult
+ name = "eldritch whetstone"
+ desc = "A block, empowered by dark magic. Sharp weapons will be enhanced when used on the stone."
+ icon = 'icons/obj/cult.dmi'
+ icon_state = "cultstone"
+ used = 0
+ increment = 5
+ max = 40
+ prefix = "darkened"
+
+/obj/item/weapon/reagent_containers/food/drinks/bottle/unholywater
+ name = "flask of unholy water"
+ desc = "Toxic to nonbelievers; this water renews and reinvigorates the faithful of a cult."
+ icon_state = "holyflask"
+ color = "#333333"
+ list_reagents = list("unholywater" = 40)
+
+/obj/item/clothing/glasses/night/cultblind
+ desc = "May the master guide you through the darkness and shield you from the light."
+ name = "zealot's blindfold"
+ icon_state = "blindfold"
+ item_state = "blindfold"
+ darkness_view = 8
+ flash_protect = 1
+
+/obj/item/clothing/glasses/night/cultblind/equipped(mob/user, slot)
+ ..()
+ if(!iscultist(user))
+ to_chat(user, "\"You want to be blind, do you?\"")
+ user.unEquip(src, 1)
+ user.Dizzy(30)
+ user.Weaken(5)
+ user.eye_blind = 30
+
+/obj/item/device/shuttle_curse
+ name = "cursed orb"
+ desc = "You peer within this smokey orb and glimpse terrible fates befalling the escape shuttle."
+ icon = 'icons/obj/projectiles.dmi'
+ icon_state ="bluespace"
+ color = "#ff0000"
+ var/static/curselimit = 0
+
+/obj/item/device/shuttle_curse/attack_self(mob/user)
+ if(!iscultist(user))
+ user.unEquip(src, 1)
+ user.Weaken(5)
+ to_chat(user, "A powerful force shoves you away from [src]!")
+ return
+ if(curselimit > 1)
+ to_chat(user, "We have exhausted our ability to curse the shuttle.")
+ return
+ if(shuttle_master.emergency.mode == SHUTTLE_CALL)
+ var/cursetime = 1500
+ var/timer = shuttle_master.emergency.timeLeft(1) + cursetime
+ shuttle_master.emergency.setTimer(timer)
+ to_chat(user,"You shatter the orb! A dark essence spirals into the air, then disappears.")
+ playsound(user.loc, "sound/effects/Glassbr1.ogg", 50, 1)
+ qdel(src)
+ sleep(20)
+ var/global/list/curses
+ if(!curses)
+ curses = list("A fuel technician just slit his own throat and begged for death. The shuttle will be delayed by two minutes.",
+ "The shuttle's navigation programming was replaced by a file containing two words, IT COMES. The shuttle will be delayed by two minutes.",
+ "The shuttle's custodian tore out his guts and began painting strange shapes on the floor. The shuttle will be delayed by two minutes.",
+ "A shuttle engineer began screaming 'DEATH IS NOT THE END' and ripped out wires until an arc flash seared off her flesh. The shuttle will be delayed by two minutes.",
+ "A shuttle inspector started laughing madly over the radio and then threw herself into an engine turbine. The shuttle will be delayed by two minutes.",
+ "The shuttle dispatcher was found dead with bloody symbols carved into their flesh. The shuttle will be delayed by two minutes.",
+ "Steve repeatedly touched a lightbulb until his hands fell off. The shuttle will be delayed by two minutes.")
+ var/message = pick(curses)
+ command_announcement.Announce("[message]", "System Failure", 'sound/misc/notice1.ogg')
+ curselimit++
+
+/obj/item/device/cult_shift
+ name = "veil shifter"
+ desc = "This relic teleports you forward a medium distance."
+ icon = 'icons/obj/cult.dmi'
+ icon_state ="shifter"
+ var/uses = 2
+
+/obj/item/device/cult_shift/examine(mob/user)
+ ..()
+ if(uses)
+ to_chat(user, "It has [uses] uses remaining.")
+ else
+ to_chat(user, "It seems drained.")
+
+/obj/item/device/cult_shift/proc/handle_teleport_grab(turf/T, mob/user)
+ var/mob/living/carbon/C = user
+ if(C.pulling)
+ var/atom/movable/pulled = C.pulling
+ pulled.forceMove(T)
+ . = pulled
+
+/obj/item/device/cult_shift/attack_self(mob/user)
+ if(!uses || !iscarbon(user))
+ to_chat(user, "\The [src] is dull and unmoving in your hands.")
+ return
+ if(!iscultist(user))
+ user.unEquip(src, 1)
+ step(src, pick(alldirs))
+ to_chat(user, "\The [src] flickers out of your hands, too eager to move!")
+ return
+
+ var/mob/living/carbon/C = user
+ var/turf/mobloc = get_turf(C)
+ var/turf/destination = get_teleport_loc(mobloc,C,9,1,3,1,0,1)
+
+ if(destination)
+ uses--
+ if(uses <= 0)
+ icon_state ="shifter_drained"
+ playsound(mobloc, "sparks", 50, 1)
+ new /obj/effect/overlay/temp/cult/phase/out(mobloc)
+
+ var/atom/movable/pulled = handle_teleport_grab(destination, C)
+ C.forceMove(destination)
+ if(pulled)
+ C.start_pulling(pulled) //forcemove resets pulls, so we need to re-pull
+
+ new /obj/effect/overlay/temp/cult/phase(destination)
+ playsound(destination, 'sound/effects/phasein.ogg', 25, 1)
+ playsound(destination, "sparks", 50, 1)
+
+ else
+ to_chat(C, "The veil cannot be torn here!")
\ No newline at end of file
diff --git a/code/game/gamemodes/cult/cult_structures.dm b/code/game/gamemodes/cult/cult_structures.dm
index a89b5f4a907..b07c300f687 100644
--- a/code/game/gamemodes/cult/cult_structures.dm
+++ b/code/game/gamemodes/cult/cult_structures.dm
@@ -75,7 +75,7 @@
/obj/structure/cult/culttalisman
name = "altar"
- desc = "A bloodstained altar dedicated to Nar-Sie."
+ desc = "A bloodstained altar dedicated to a cult."
icon_state = "talismanaltar"
health = 150 //Sturdy
death_message = "The altar breaks into splinters, releasing a cascade of spirits into the air!"
@@ -91,7 +91,7 @@
if(cooldowntime > world.time)
to_chat(user, "The magic in [src] is weak, it will be ready to use again in [getETA()].")
return
- var/choice = alert(user,"You study the schematics etched into the forge...",,"Eldritch Whetstone","Zealot's Blindfold","Flask of Unholy Water")
+ var/choice = alert(user,"You study the schematics etched into the forge...","Cultist Dagger", "Eldritch Whetstone","Zealot's Blindfold","Flask of Unholy Water")
var/pickedtype
switch(choice)
if("Eldritch Whetstone")
@@ -100,6 +100,8 @@
pickedtype = /obj/item/clothing/glasses/night/cultblind
if("Flask of Unholy Water")
pickedtype = /obj/item/weapon/reagent_containers/food/drinks/bottle/unholywater
+ if("Cultist Dagger")
+ pickedtype = /obj/item/weapon/melee/cultblade/dagger
if(pickedtype && Adjacent(user) && src && !qdeleted(src) && !user.incapacitated() && cooldowntime <= world.time)
cooldowntime = world.time + 2400
var/obj/item/N = new pickedtype(get_turf(src))
@@ -143,18 +145,17 @@
if(cooldowntime > world.time)
to_chat(user, "The magic in [src] is weak, it will be ready to use again in [getETA()].")
return
- var/choice = alert(user,"You study the schematics etched into the forge...",, "Flagellant's Robe","Cultist Hardsuit", "Cultist Dagger")
+ var/choice = alert(user,"You study the schematics etched into the forge...",, "Shielded Hardsuit", "Flagellant's Robe","Cultist Hardsuit")
var/pickedtype
var/otheritem //ie:helmet..
switch(choice)
+ if("Shielded Robe")
+ pickedtype = /obj/item/clothing/suit/hooded/cultrobes/cult_shield
if("Flagellant's Robe")
- pickedtype = /obj/item/clothing/suit/cultrobes/berserker
- otheritem = /obj/item/clothing/head/berserkerhood
+ pickedtype = /obj/item/clothing/suit/hooded/cultrobes/berserker
if("Cultist Hardsuit")
pickedtype = /obj/item/clothing/suit/space/cult
otheritem = /obj/item/clothing/head/helmet/space/cult
- if("Cultist Dagger")
- pickedtype = /obj/item/weapon/melee/cultblade/dagger
if(pickedtype && Adjacent(user) && src && !qdeleted(src) && !user.incapacitated() && cooldowntime <= world.time)
cooldowntime = world.time + 2400
var/obj/item/N = new pickedtype(get_turf(src))
diff --git a/code/game/gamemodes/cult/ritual.dm b/code/game/gamemodes/cult/ritual.dm
index cbacf23bd51..b350ecfc7ae 100644
--- a/code/game/gamemodes/cult/ritual.dm
+++ b/code/game/gamemodes/cult/ritual.dm
@@ -1,686 +1,278 @@
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:32
-var/cultwords = list()
-var/rune_to_english = list()
-var/runedec = 0
-var/engwords = list("travel", "blood", "join", "hell", "destroy", "technology", "self", "see", "other", "hide")
-
-/client/proc/check_words() // -- Urist
- set category = "Special Verbs"
- set name = "Check Rune Words"
- set desc = "Check the rune-word meaning"
- if(!cultwords["travel"])
- runerandom()
- for(var/word in engwords)
- to_chat(usr, "[cultwords[word]] is [word]")
-
-/proc/runerandom() //randomizes word meaning
- var/list/runewords=list("ire","ego","nahlizet","certum","veri","jatkaa","mgar","balaq", "karazet", "geeri") ///"orkan" and "allaq" removed.
- for(var/word in engwords)
- var/runeword = pick(runewords)
- cultwords[word] = runeword
- rune_to_english[runeword] = word
- runewords-=cultwords[word]
-
-
-/obj/effect/rune
- desc = ""
- anchored = 1
- icon = 'icons/obj/rune.dmi'
- icon_state = "1"
- var/visibility = 0
- var/view_range = 7
- unacidable = 1
- layer = TURF_LAYER
-
- var/word1
- var/word2
- var/word3
-// Places these combos are mentioned: this file - twice in the rune code, once in imbued tome, once in tome's HTML runes.dm - in the imbue rune code. If you change a combination - dont forget to change it everywhere.
-
-// travel self [word] - Teleport to random [rune with word destination matching]
-// travel other [word] - Portal to rune with word destination matching - kinda doesnt work. At least the icon. No idea why.
-// see blood Hell - Create a new tome
-// join blood self - Incorporate person over the rune into the group
-// Hell join self - Summon TERROR
-// destroy see technology - EMP rune
-// travel blood self - Drain blood
-// see Hell join - See invisible
-// blood join Hell - Raise dead
-
-// hide see blood - Hide nearby runes
-// blood see hide - Reveal nearby runes - The point of this rune is that its reversed obscure rune. So you always know the words to reveal the rune once oyu have obscured it.
-
-// Hell travel self - Leave your body and ghost around
-// blood see travel - Manifest a ghost into a mortal body
-// Hell tech join - Imbue a rune into a talisman
-// Hell blood join - Sacrifice rune
-// destroy travel self - Wall rune
-// join other self - Summon cultist rune
-// travel technology other - Freeing rune // other blood travel was freedom join other
-
-// hide other see - Deafening rune // was destroy see hear
-// destroy see other - Blinding rune
-// destroy see blood - BLOOD BOIL
-
-// self other technology - Communication rune //was other hear blood
-// join hide technology - stun rune. Rune color: bright pink.
-
-/obj/effect/rune/New()
- ..()
- var/image/blood = image(loc = src)
- blood.override = 1
- for(var/mob/living/silicon/ai/AI in player_list)
- AI.client.images += blood
- cult_viewpoints += src
-
-/obj/effect/rune/Destroy()
- cult_viewpoints -= src
- return ..()
-
-/obj/effect/rune/examine(mob/user)
- ..(user)
- if(!iscultist(user) && !isSpirit(user))
- to_chat(user, "A strange collection of symbols drawn in blood.")
- return
- if(!desc)
- to_chat(user, "A spell circle drawn in blood. It reads: [word1] [word2] [word3].")
- else
- to_chat(user, "Explosive Runes inscription in blood. It reads: [desc].")
-
-
-/obj/effect/rune/attackby(I as obj, user as mob, params)
- if(istype(I, /obj/item/weapon/tome) && iscultist(user))
- to_chat(user, "You retrace your steps, carefully undoing the lines of the rune.")
- qdel(src)
- return
- else if(istype(I, /obj/item/weapon/nullrod))
- to_chat(user, "\blue You disrupt the vile magic with the deadening field of \the [I]!")
- qdel(src)
- return
- return
-
-
-/obj/effect/rune/proc/get_word_string()
- if(word1 == cultwords["travel"])
- if(word2 == cultwords["self"])
- return "teleport"
- if(word2 == cultwords["other"])
- return "itemport"
- return "[rune_to_english[word1]]_[rune_to_english[word2]]_[rune_to_english[word3]]"
-
-
-/obj/effect/rune
- var/list/effect_dictionary = list( "teleport"=/obj/effect/rune/proc/teleportRune,
- "itemport"=/obj/effect/rune/proc/itemportRune,
- "see_blood_hell"=/obj/effect/rune/proc/tomesummon,
- "hell_destroy_other"=/obj/effect/rune/proc/armor,
- "join_blood_self"=/obj/effect/rune/proc/convert,
- "hell_join_self"=/obj/effect/rune/proc/tearreality,
- "destroy_see_technology"=/obj/effect/rune/proc/empRune,
- "travel_blood_self"=/obj/effect/rune/proc/drain,
- "see_hell_join"=/obj/effect/rune/proc/seer,
- "blood_join_hell"=/obj/effect/rune/proc/raise,
- "hide_see_blood"=/obj/effect/rune/proc/obscureRune,
- "hell_travel_self"=/obj/effect/rune/proc/ajourney,
- "blood_see_travel"=/obj/effect/rune/proc/manifest,
- "hell_technology_join"=/obj/effect/rune/proc/talisman,
- "hell_blood_join"=/obj/effect/rune/proc/sacrifice,
- "blood_see_hide"=/obj/effect/rune/proc/revealrunesrune,
- "destroy_travel_self"=/obj/effect/rune/proc/wall,
- "travel_technology_other"=/obj/effect/rune/proc/freedom,
- "join_other_self"=/obj/effect/rune/proc/cultsummon,
- "hide_other_see"=/obj/effect/rune/proc/deafen,
- "destroy_see_other"=/obj/effect/rune/proc/blind,
- "destroy_see_blood"=/obj/effect/rune/proc/bloodboil,
- "self_other_technology"=/obj/effect/rune/proc/communicate,
- "join_hide_technology"=/obj/effect/rune/proc/runestun )
-
-/obj/effect/rune/attack_hand(mob/living/user as mob)
- if(!iscultist(user))
- to_chat(user, "You can't mouth the arcane scratchings without fumbling over them.")
- return
- if(istype(user.wear_mask, /obj/item/clothing/mask/muzzle))
- to_chat(user, "You are unable to speak the words of the rune.")
- return
- if(user.silent) // checking if we've been muted somehow
- to_chat(user, "You are unable to speak at all! You cannot say the words of the rune.")
- if(!word1 || !word2 || !word3 || prob(user.getBrainLoss()))
- return fizzle()
-
- var/word_string = get_word_string()
- if(word_string in effect_dictionary)
- cult_log("of type [effect_dictionary[word_string]] activated by [key_name_admin(user)].")
- return call(src,effect_dictionary[word_string])()
- return fizzle()
-
-
/obj/effect/rune/proc/fizzle()
if(istype(src,/obj/effect/rune))
usr.say(pick("Hakkrutju gopoenjim.", "Nherasai pivroiashan.", "Firjji prhiv mazenhor.", "Tanah eh wakantahe.", "Obliyae na oraie.", "Miyf hon vnor'c.", "Wakabai hij fen juswix."))
else
usr.whisper(pick("Hakkrutju gopoenjim.", "Nherasai pivroiashan.", "Firjji prhiv mazenhor.", "Tanah eh wakantahe.", "Obliyae na oraie.", "Miyf hon vnor'c.", "Wakabai hij fen juswix."))
- for(var/mob/V in viewers(src))
+ for (var/mob/V in viewers(src))
V.show_message("\red The markings pulse with a small burst of light, then fall dark.", 3, "\red You hear a faint fizzle.", 2)
return
/obj/effect/rune/proc/check_icon()
- icon = get_uristrune_cult(word1, word2, word3)
+ icon = get_uristrune_cult(invocation)
/obj/item/weapon/tome
name = "arcane tome"
+ desc = "An old, dusty tome with frayed edges and a sinister-looking cover."
icon_state ="tome"
- throw_speed = 1
+ throw_speed = 2
throw_range = 5
w_class = 2
- var/notedat = ""
- var/tomedat = ""
- var/list/words = list("ire" = "ire", "ego" = "ego", "nahlizet" = "nahlizet", "certum" = "certum", "veri" = "veri", "jatkaa" = "jatkaa", "balaq" = "balaq", "mgar" = "mgar", "karazet" = "karazet", "geeri" = "geeri")
+ var/scribereduct = 0
+ var/canbypass = 0 //ADMINBUS
- tomedat = {"
-
-
-
-
- The scriptures of Nar-Sie, The One Who Sees, The Geometer of Blood.
+/obj/item/weapon/tome/accursed
+ name = "accursed tome"
+ desc = "An arcane tome still empowered with a shadow of its former consecration."
+ scribereduct = 30 //faster because it's made by corrupting a bible
- The book is written in an unknown dialect, there are lots of pictures of various complex geometric shapes. You find some notes in english that give you basic understanding of the many runes written in the book. The notes give you an understanding what the words for the runes should be. However, you do not know how to write all these words in this dialect.
- Below is the summary of the runes.
+/obj/item/weapon/tome/imbued //Admin-only tome, allows instant drawing of runes
+ name = "imbued arcane tome"
+ desc = "An arcane tome granted by the Geometer itself."
+ scribereduct = 50
+ canbypass = 1
- Contents
-
- Teleport self: Travel Self (word)
- Teleport other: Travel Other (word)
- Summon new tome: See Blood Hell
- Convert a person: Join Blood Self
- Summon Nar-Sie: Hell Join Self
- Disable technology: Destroy See Technology
- Drain blood: Travel Blood Self
- Raise dead: Blood Join Hell
- Hide runes: Hide See Blood
- Reveal hidden runes: Blood See Hide
- Leave your body: Hell travel self
- Ghost Manifest: Blood See Travel
- Imbue a talisman: Hell Technology Join
- Sacrifice: Hell Blood Join
- Create a wall: Destroy Travel Self
- Summon cultist: Join Other Self
- Free a cultist: Travel technology other
- Deafen: Hide Other See
- Blind: Destroy See Other
- Blood Boil: Destroy See Blood
- Communicate: Self Other Technology
- Stun: Join Hide Technology
- Summon Cultist Armor: Hell Destroy Other
- See Invisible: See Hell Join
-
- Rune Descriptions
- Teleport self
- Teleport rune is a special rune, as it only needs two words, with the third word being destination. Basically, when you have two runes with the same destination, invoking one will teleport you to the other one. If there are more than 2 runes, you will be teleported to a random one. Runes with different third words will create separate networks. You can imbue this rune into a talisman, giving you a great escape mechanism.
- Teleport other
- Teleport other allows for teleportation for any movable object to another rune with the same third word. You need 3 cultists chanting the invocation for this rune to work.
- Summon new tome
- Invoking this rune summons a new arcane tome.
- Convert a person
- This rune opens target's mind to the realm of Nar-Sie, which usually results in this person joining the cult. However, some people (mostly the ones who posess high authority) have strong enough will to stay true to their old ideals.
- Summon Nar-Sie
- The ultimate rune. It summons the Avatar of Nar-Sie himself, tearing a huge hole in reality and consuming everything around it. Summoning it is the final goal of any cult.
- Disable Technology
- Invoking this rune creates a strong electromagnetic pulse in a small radius, making it basically analogic to an EMP grenade. You can imbue this rune into a talisman, making it a decent defensive item.
- Drain Blood
- This rune instantly heals you of some brute damage at the expense of a person placed on top of the rune. Whenever you invoke a drain rune, ALL drain runes on the station are activated, draining blood from anyone located on top of those runes. This includes yourself, though the blood you drain from yourself just comes back to you. This might help you identify this rune when studying words. One drain gives up to 25HP per each victim, but you can repeat it if you need more. Draining only works on living people, so you might need to recharge your "Battery" once its empty. Drinking too much blood at once might cause blood hunger.
- Raise Dead
- This rune allows for the resurrection of any dead person. You will need a dead human body and a living human sacrifice. Make 2 raise dead runes. Put a living, awake human on top of one, and a dead body on the other one. When you invoke the rune, the life force of the living human will be transferred into the dead body, allowing a ghost standing on top of the dead body to enter it, instantly and fully healing it. Use other runes to ensure there is a ghost ready to be resurrected.
- Hide runes
- This rune makes all nearby runes completely invisible. They are still there and will work if activated somehow, but you cannot invoke them directly if you do not see them.
- Reveal runes
- This rune is made to reverse the process of hiding a rune. It reveals all hidden runes in a rather large area around it.
- Leave your body
- This rune gently rips your soul out of your body, leaving it intact. You can observe the surroundings as a ghost as well as communicate with other ghosts. Your body takes damage while you are there, so ensure your journey is not too long, or you might never come back.
- Manifest a ghost
- Unlike the Raise Dead rune, this rune does not require any special preparations or vessels. Instead of using full lifeforce of a sacrifice, it will drain YOUR lifeforce. Stand on the rune and invoke it. If theres a ghost standing over the rune, it will materialise, and will live as long as you dont move off the rune or die. You can put a paper with a name on the rune to make the new body look like that person.
- Imbue a talisman
- This rune allows you to imbue the magic of some runes into paper talismans. Create an imbue rune, then an appropriate rune beside it. Put an empty piece of paper on the imbue rune and invoke it. You will now have a one-use talisman with the power of the target rune. Using a talisman drains some health, so be careful with it. You can imbue a talisman with power of the following runes: summon tome, reveal, conceal, teleport, tisable technology, communicate, deafen, blind and stun.
- Sacrifice
- Sacrifice rune allows you to sacrifice a living thing or a body to the Geometer of Blood. Monkeys and dead humans are the most basic sacrifices, they might or might not be enough to gain His favor. A living human is what a real sacrifice should be, however, you will need 3 people chanting the invocation to sacrifice a living person.
- Create a wall
- Invoking this rune solidifies the air above it, creating an an invisible wall. To remove the wall, simply invoke the rune again.
- Summon cultist
- This rune allows you to summon a fellow cultist to your location. The target cultist must be unhandcuffed ant not buckled to anything. You also need to have 3 people chanting at the rune to succesfully invoke it. Invoking it takes heavy strain on the bodies of all chanting cultists.
- Free a cultist
- This rune unhandcuffs and unbuckles any cultist of your choice, no matter where he is. You need to have 3 people invoking the rune for it to work. Invoking it takes heavy strain on the bodies of all chanting cultists.
- Deafen
- This rune temporarily deafens all non-cultists around you.
- Blind
- This rune temporarily blinds all non-cultists around you. Very robust. Use together with the deafen rune to leave your enemies completely helpless.
- Blood boil
- This rune boils the blood all non-cultists in visible range. The damage is enough to instantly critically hurt any person. You need 3 cultists invoking the rune for it to work. This rune is unreliable and may cause unpredicted effect when invoked. It also drains significant amount of your health when succesfully invoked.
- Communicate
- Invoking this rune allows you to relay a message to all cultists on the station and nearby space objects.
- Stun
- Unlike other runes, this ons is supposed to be used in talisman form. When invoked directly, it simply releases some dark energy, briefly stunning everyone around. When imbued into a talisman, you can force all of its energy into one person, stunning him so hard he cant even speak. However, effect wears off rather fast.
- Equip Armor
- When this rune is invoked, either from a rune or a talisman, it will equip the user with the armor of the followers of Nar-Sie. To use this rune to its fullest extent, make sure you are not wearing any form of headgear, armor, gloves or shoes, and make sure you are not holding anything in your hands.
- See Invisible
- When invoked when standing on it, this rune allows the user to see the the world beyond as long as he does not move.
-
-
- "}
+/obj/item/weapon/tome/examine(mob/user)
+ ..()
+ if(iscultist(user) || user.stat == DEAD)
+ to_chat(user, "The scriptures of [ticker.mode.cultdat.entity_title3]. Allows the scribing of runes and access to the knowledge archives of the cult of [ticker.mode.cultdat.entity_name].")
+ to_chat(user, "Striking another cultist with it will purge holy water from them.")
+ to_chat(user, "Striking a noncultist, however, will sear their flesh.")
+/obj/item/weapon/tome/attack(mob/living/M, mob/living/user)
+ if(!istype(M))
+ return
+ if(!iscultist(user))
+ return ..()
+ if(iscultist(M))
+ if(M.reagents && M.reagents.has_reagent("holywater")) //allows cultists to be rescued from the clutches of ordained religion
+ to_chat(user, "You remove the taint from [M].")
+ var/holy2unholy = M.reagents.get_reagent_amount("holywater")
+ M.reagents.del_reagent("holywater")
+ M.reagents.add_reagent("unholywater",holy2unholy)
+ add_logs(user, M, "smacked", src, " removing the holy water from them")
+ return
+ M.take_organ_damage(0, 15) //Used to be a random between 5 and 20
+ playsound(M, 'sound/weapons/sear.ogg', 50, 1)
+ M.visible_message("[user] strikes [M] with the arcane tome!", \
+ "[user] strikes you with the tome, searing your flesh!")
+ flick("tome_attack", src)
+ user.do_attack_animation(M)
+ add_logs(user, M, "smacked", src)
- Topic(href,href_list[])
- if(src.loc == usr)
- var/number = text2num(href_list["number"])
- if(usr.stat|| usr.restrained())
- return
- switch(href_list["action"])
- if("clear")
- words[words[number]] = words[number]
- if("change")
- words[words[number]] = input("Enter the translation for [words[number]]", "Word notes") in engwords
- for(var/w in words)
- if((words[w] == words[words[number]]) && (w != words[number]))
- words[w] = w
- notedat = {"
-
Word translation notes
- [words[1]] is [words[words[1]]] Clear
- [words[2]] is [words[words[2]]] Clear
- [words[3]] is [words[words[3]]] Clear
- [words[4]] is [words[words[4]]] Clear
- [words[5]] is [words[words[5]]] Clear
- [words[6]] is [words[words[6]]] Clear
- [words[7]] is [words[words[7]]] Clear
- [words[8]] is [words[words[8]]] Clear
- [words[9]] is [words[words[9]]] Clear
- [words[10]] is [words[words[10]]] Clear
- "}
- usr << browse("[notedat]", "window=notes")
-// call(/obj/item/weapon/tome/proc/edit_notes)()
- else
- usr << browse(null, "window=notes")
+/obj/item/weapon/tome/attack_self(mob/user)
+ if(!iscultist(user))
+ to_chat(user, "[src] seems full of unintelligible shapes, scribbles, and notes. Is this some sort of joke?")
+ return
+ open_tome(user)
+
+/obj/item/weapon/tome/proc/open_tome(mob/user)
+ var/choice = alert(user,"You open the tome...",,"Scribe Rune","More Information","Cancel")
+ switch(choice)
+ if("More Information")
+ read_tome(user)
+ if("Scribe Rune")
+ scribe_rune(user)
+ if("Cancel")
return
+/obj/item/weapon/tome/proc/read_tome(mob/user)
+ var/text = ""
+ text += "Archives of [ticker.mode.cultdat.entity_title1]
"
+ text += "A rune's name and effects can be revealed by examining the rune.<
"
-// proc/edit_notes() FUCK IT. Cant get it to work properly. - K0000
-// to_chat(world, "its been called! [usr]")
-// notedat = {"
-//
Word translation notes
-// [words[1]] is [words[words[1]]] Clear
-// [words[2]] is [words[words[2]]] Clear
-// [words[3]] is [words[words[3]]] Clear
-// [words[4]] is [words[words[4]]] Clear
-// [words[5]] is [words[words[5]]] Clear
-// [words[6]] is [words[words[6]]] Clear
-// [words[7]] is [words[words[7]]] Clear
-// [words[8]] is [words[words[8]]] Clear
-// [words[9]] is [words[words[9]]] Clear
-// [words[10]] is [words[words[10]]] Clear
-// "}
-// to_chat(usr, "whatev")
-// usr << browse(null, "window=tank")
+ text += "Rite of Binding
This rune is one of the most important runes the cult has, being the only way to create new talismans. A blank sheet of paper must be on top of the rune. After \
+ invoking it and choosing which talisman you desire, the paper will be converted, after some delay into a talisman.
"
- attack(mob/living/M as mob, mob/living/user as mob)
+ text += "Teleport
This rune is unique in that it requires a keyword before the scribing can begin. When invoked, it will find any other Teleport runes; \
+ If any are found, the user can choose which rune to send to. Upon activation, the rune teleports everything above it to the selected rune.
"
- M.attack_log += text("\[[time_stamp()]\] Has had the [name] used on him by [key_name(user)]")
- user.attack_log += text("\[[time_stamp()]\] Used [name] on [key_name(M)]")
- msg_admin_attack("[key_name_admin(user)] used [name] on [key_name_admin(M)]")
- if(!iscarbon(M))
- M.LAssailant = null
- else
- M.LAssailant = user
- if(istype(M,/mob/dead))
- M.invisibility = 0
- user.visible_message( \
- "\red [user] drags the ghost to our plan of reality!", \
- "\red You drag the ghost to our plan of reality!" \
- )
- return
- if(!istype(M))
- return
- if(!iscultist(user))
- return ..()
- if(iscultist(M))
- if(M.reagents && M.reagents.has_reagent("holywater")) //allows cultists to be rescued from the clutches of ordained religion
- to_chat(user, "You remove the taint from [M].")
- var/holy2unholy = M.reagents.get_reagent_amount("holywater")
- M.reagents.del_reagent("holywater")
- M.reagents.add_reagent("unholywater",holy2unholy)
- add_logs(M, user, "smacked", src, " removing the holy water from them")
- return
- M.take_organ_damage(0,rand(5,20)) //really lucky - 5 hits for a crit
- for(var/mob/O in viewers(M, null))
- O.show_message(text("\red [] beats [] with the arcane tome!", user, M), 1)
- to_chat(M, "\red You feel searing heat inside!")
+ text += "Rite of Enlightenment
This rune is critical to the success of the cult. It will allow you to convert normal crew members into cultists. \
+ To do this, simply place the crew member upon the rune and invoke it. This rune requires two invokers to use. If the target to be converted is loyalty-implanted or a certain assignment, they will \
+ be unable to be converted. People [ticker.mode.cultdat.entity_title3] wishes sacrificed will also be ineligible for conversion, and anyone with a shielding presence like the null rod will not be converted.
\
+ Successful conversions will produce a tome for the new cultist.
"
+ text += "Rite of Tribute
This rune is necessary to achieve your goals. Simply place any dead creature upon the rune and invoke it (this will not \
+ target cultists!). If this creature has a mind, a soulstone will be created and the creature's soul transported to it. Sacrificing the dead can be done alone, but sacrificing living crew or your cult's target will require 3 cultists. \
+ Soulstones used on construct shells will move that soul into a powerful construct of your choice.
"
- attack_self(mob/living/user as mob)
- usr = user
- if(!usr.canmove || usr.stat || usr.restrained())
- return
+ text += "Rite of Resurrection
This rune requires two corpses. To perform the ritual, place the corpse you wish to revive onto \
+ the rune and the offering body adjacent to it. When the rune is invoked, the body to be sacrificed will turn to dust, the life force flowing into the revival target. Assuming the target is not moved \
+ within a few seconds, they will be brought back to life, healed of all ailments.
"
- if(!cultwords["travel"])
- runerandom()
- if(iscultist(user))
- var/C = 0
- for(var/obj/effect/rune/N in world)
- C++
- if(!istype(user.loc,/turf))
- to_chat(user, "\red You do not have enough space to write a proper rune.")
- return
+ text += "Rite of Disruption
Robotic lifeforms have time and time again been the downfall of fledgling cults. This rune may allow you to gain the upper \
+ hand against these pests. By using the rune, a large electromagnetic pulse will be emitted from the rune's location. The size of the EMP will grow significantly for each additional adjacent cultist when the \
+ rune is activated.
"
+ text += "Astral Communion
This rune is perhaps the most ingenious rune that is usable by a single person. Upon invoking the rune, the \
+ user's spirit will be ripped from their body. In this state, the user's physical body will be locked in place to the rune itself - any attempts to move it will result in the rune pulling it back. \
+ The body will also take constant damage while in this form, and may even die. The user's spirit will contain their consciousness, and will allow them to freely wander the station as a ghost. This may \
+ also be used to commune with the dead.
"
+ text += "Rite of the Corporeal Shield
While simple, this rune serves an important purpose in defense and hindering passage. When invoked, the \
+ rune will draw a small amount of life force from the user and make the space above the rune completely dense, rendering it impassable to all but the most complex means. The rune may be invoked again to \
+ undo this effect and allow passage again.
"
+ text += "Rite of Joined Souls
This rune allows the cult to free other cultists with ease. When invoked, it will allow the user to summon a single cultist to the rune from \
+ any location. It requires two invokers, and will damage each invoker slightly.
"
- if(C>=26+runedec+ticker.mode.cult.len) //including the useless rune at the secret room, shouldn't count against the limit of 25 runes - Urist
- alert("The cloth of reality can't take that much of a strain. Remove some runes first!")
- return
- else
- switch(alert("You open the tome",,"Read it","Scribe a rune", "Notes")) //Fuck the "Cancel" option. Rewrite the whole tome interface yourself if you want it to work better. And input() is just ugly. - K0000
- if("Cancel")
- return
- if("Read it")
- if(usr.get_active_hand() != src)
- return
- user << browse("[tomedat]", "window=Arcane Tome")
- return
- if("Notes")
- if(usr.get_active_hand() != src)
- return
- notedat = {"
-
Word translation notes
- [words[1]] is [words[words[1]]] Clear
- [words[2]] is [words[words[2]]] Clear
- [words[3]] is [words[words[3]]] Clear
- [words[4]] is [words[words[4]]] Clear
- [words[5]] is [words[words[5]]] Clear
- [words[6]] is [words[words[6]]] Clear
- [words[7]] is [words[words[7]]] Clear
- [words[8]] is [words[words[8]]] Clear
- [words[9]] is [words[words[9]]] Clear
- [words[10]] is [words[words[10]]] Clear
- "}
-// call(/obj/item/weapon/tome/proc/edit_notes)()
- user << browse("[notedat]", "window=notes")
- return
- if(usr.get_active_hand() != src)
- return
+ text += "Blood Boil
When invoked, this rune will do a massive amount of damage to all non-cultist viewers, but it will also emit a small explosion upon invocation. \
+ It requires three invokers.
"
- var/list/dictionary = list (
- "convert" = list("join","blood","self"),
- "wall" = list("destroy","travel","self"),
- "blood boil" = list("destroy","see","blood"),
- "blood drain" = list("travel","blood","self"),
- "raise dead" = list("blood","join","hell"),
- "summon narsie" = list("hell","join","self"),
- "communicate" = list("self","other","technology"),
- "emp" = list("destroy","see","technology"),
- "manifest" = list("blood","see","travel"),
- "summon tome" = list("see","blood","hell"),
- "see invisible" = list("see","hell","join"),
- "hide" = list("hide","see","blood"),
- "reveal" = list("blood","see","hide"),
- "astral journey" = list("hell","travel","self"),
- "imbue" = list("hell","technology","join"),
- "sacrifice" = list("hell","blood","join"),
- "summon cultist" = list("join","other","self"),
- "free cultist" = list("travel","technology","other"),
- "deafen" = list("hide","other","see"),
- "blind" = list("destroy","see","other"),
- "stun" = list("join","hide","technology"),
- "armor" = list("hell","destroy","other"),
- "teleport" = list("travel","self"),
- "teleport other" = list("travel","other")
- )
+ text += "Rite of Spectral Manifestation
This rune allows you to summon spirits as humanoid fighters. When invoked, a spirit above the rune will be brought to life as a human, wearing nothing, that seeks only to serve you and [ticker.mode.cultdat.entity_title3]. \
+ However, the spirit's link to reality is fragile - you must remain on top of the rune, and you will slowly take damage. Upon stepping off the rune, all summoned spirits will dissipate, dropping their items to the ground. You may manifest \
+ multiple spirits with one rune, but you will rapidly take damage in doing so.
"
- var/list/english = list()
+ text += "Ritual of Dimensional Rending
This rune is necessary to achieve your goals. On attempting to scribe it, it will produce shields around you and alert everyone you are attempting to scribe it; it takes a very long time to scribe, \
+ and does massive damage to the one attempting to scribe it.
Invoking it requires 9 invokers and the sacrifice of a specific crewmember, and once invoked, will summon [ticker.mode.cultdat.entity_title3], [ticker.mode.cultdat.entity_name]. \
+ This will complete your objectives.
"
- var/list/scribewords = list("none")
+ text += "Talisman of Teleportation
The talisman form of the Teleport rune will transport the invoker to a selected Teleport rune once.
"
- for(var/entry in words)
- if(words[entry] != entry)
- english += list(words[entry] = entry)
+ text += "Talisman of Fabrication
This talisman is the main way of creating construct shells. To use it, one must strike 30 sheets of metal with the talisman. The sheets will then be twisted into a construct shell, ready to recieve a soul to occupy it.
"
- for(var/entry in dictionary)
- var/list/required = dictionary[entry]
- if(length(english&required) == required.len)
- scribewords += entry
+ text += "Talisman of Tome Summoning
This talisman will produce a single tome at your feet.
"
- var/chosen_rune = null
+ text += "Talisman of Veiling/Revealing
This talisman will hide runes on its first use, and on the second, will reveal runes.
"
- if(usr)
- chosen_rune = input ("Choose a rune to scribe.") in scribewords
- if(!chosen_rune)
+ text += "Talisman of Disguising
This talisman will permanently disguise all nearby runes as crayon runes.
"
+
+ text += "Talisman of Electromagnetic Pulse
This talisman will EMP anything else nearby. It disappears after one use.
"
+
+ text += "Talisman of Stunning
Attacking a target will knock them down for a long duration in addition to inhibiting their speech. \
+ Robotic lifeforms will suffer the effects of a heavy electromagnetic pulse instead.
"
+
+ text += "Talisman of Armaments
The Talisman of Arming will equip the user with armored robes, a backpack, an eldritch longsword, an empowered bola, and a pair of boots. Any items that cannot \
+ be equipped will not be summoned. Attacking a fellow cultist with it will instead equip them.
"
+
+ text += "Talisman of Horrors
The Talisman of Horror must be applied directly to the victim, it will shatter your victim's mind with visions of the endtimes that may incapitate them.
"
+
+ text += "Talisman of Shackling
The Talisman of Shackling must be applied directly to the victim, it has 4 uses and cuffs victims with magic shackles that disappear when removed.
"
+
+ text += "In addition to these runes, the cult has a small selection of equipment and constructs.
"
+
+ text += "Equipment:
"
+
+ text += "Cult Blade
Cult blades are sharp weapons that, notably, cannot be used by noncultists. These blades are produced by the Talisman of Arming.
"
+
+ text += "Cult Bola
Cult bolas are strong bolas, useful for snaring targets. These bolas are produced by the Talisman of Arming.
"
+
+ text += "Cult Robes
Cult robes are heavily armored robes. These robes are produced by the Talisman of Arming.
"
+
+ text += "Soulstone
A soulstone is a simple piece of magic, produced either via the starter talisman or by sacrificing humans. Using it on an unconscious or dead human, or on a Shade, will trap their soul in the stone, allowing its use in construct shells. \
+
The soul within can also be released as a Shade by using it in-hand.
"
+
+ text += "Construct Shell
A construct shell is useless on its own, but placing a filled soulstone within it allows you to produce your choice of a Wraith, a Juggernaut, or an Artificer. \
+
Each construct has uses, detailed below in Constructs. Construct shells can be produced via the starter talisman or the Rite of Fabrication.
"
+
+ text += "Constructs:
"
+
+ text += "Shade
While technically not a construct, the Shade is produced when released from a soulstone. It is quite fragile and has weak melee attacks, but is fully healed when recaptured by a soulstone.
"
+
+ text += "Wraith
The Wraith is a fast, lethal melee attacker which can jaunt through walls. However, it is only slightly more durable than a shade.
"
+
+ text += "Juggernaut
The Juggernaut is a slow, but durable, melee attacker which can produce temporary forcewalls. It will also reflect most lethal energy weapons.
"
+
+ text += "Artificer
The Artificer is a weak and fragile construct, able to heal other constructs, produce more soulstones and construct shells, \
+ construct fortifying cult walls and flooring, and finally, it can release a few indiscriminate stunning missiles.
"
+
+ text += "Harvester
If you see one, know that you have done all you can and your life is void.
"
+
+ var/datum/browser/popup = new(user, "tome", "", 800, 600)
+ popup.set_content(text)
+ popup.open()
+ return 1
+
+/obj/item/weapon/tome/proc/scribe_rune(mob/living/user)
+ var/turf/runeturf = get_turf(user)
+ var/chosen_keyword
+ var/obj/effect/rune/rune_to_scribe
+ var/entered_rune_name
+ var/list/possible_runes = list()
+ var/list/shields = list()
+ if(locate(/obj/effect/rune) in runeturf)
+ to_chat(user, "There is already a rune here.")
+ return
+ for(var/T in subtypesof(/obj/effect/rune) - /obj/effect/rune/malformed)
+ var/obj/effect/rune/R = T
+ if(initial(R.cultist_name))
+ possible_runes.Add(initial(R.cultist_name)) //This is to allow the menu to let cultists select runes by name rather than by object path. I don't know a better way to do this
+ if(!possible_runes.len)
+ return
+ entered_rune_name = input(user, "Choose a rite to scribe.", "Sigils of Power") as null|anything in possible_runes
+ if(!Adjacent(user) || !src || qdeleted(src) || user.incapacitated())
+ return
+ for(var/T in typesof(/obj/effect/rune))
+ var/obj/effect/rune/R = T
+ if(initial(R.cultist_name) == entered_rune_name)
+ rune_to_scribe = R
+ if(initial(R.req_keyword))
+ var/the_keyword = stripped_input(usr, "Please enter a keyword for the rune.", "Enter Keyword", "")
+ if(!the_keyword)
return
- if(chosen_rune == "none")
- to_chat(user, "\red You decide against scribing a rune, perhaps you should take this time to study your notes.")
+ chosen_keyword = the_keyword
+ break
+ if(!rune_to_scribe)
+ return
+ runeturf = get_turf(user) //we may have moved. adjust as needed...
+ if(locate(/obj/effect/rune) in runeturf)
+ to_chat(user, "There is already a rune here.")
+ return
+ if(!Adjacent(user) || !src || qdeleted(src) || user.incapacitated())
+ return
+ if(ispath(rune_to_scribe, /obj/effect/rune/narsie) || ispath(rune_to_scribe, /obj/effect/rune/slaughter))//may need to change this - Fethas
+
+ if(ticker.mode.name == "cult")
+ if(!canbypass == 1)//not an admin-tome, check things
+ var/datum/game_mode/cult/cult_mode = ticker.mode
+ if(!("eldergod" in cult_mode.objectives) || !("slughter" in cult_mode.objectives))
+ to_chat(user, "[cult_mode.cultdat.entity_name]'s power does not wish to be unleashed!")
return
- if(chosen_rune == "teleport")
- dictionary[chosen_rune] += input ("Choose a destination word") in english
- if(chosen_rune == "teleport other")
- dictionary[chosen_rune] += input ("Choose a destination word") in english
-
- if(usr.get_active_hand() != src)
- return
-
- for(var/mob/V in viewers(src))
- V.show_message("\red [user] slices open a finger and begins to chant and paint symbols on the floor.", 3, "\red You hear chanting.", 2)
- to_chat(user, "\red You slice open one of your fingers and begin drawing a rune on the floor whilst chanting the ritual that binds your life essence with the dark arcane energies flowing through the surrounding world.")
- user.take_overall_damage((rand(9)+1)/10) // 0.1 to 1.0 damage
- if(do_after(user, 50, target = user))
- if(usr.get_active_hand() != src)
+ if(!cult_mode.narsie_condition_cleared)
+ to_chat(user, "There is still more to do before unleashing [cult_mode.cultdat.entity_name] power!")
return
- var/mob/living/carbon/human/H = user
- var/obj/effect/rune/R = new /obj/effect/rune(user.loc)
- to_chat(user, "\red You finish drawing the arcane markings of the Geometer.")
- var/list/required = dictionary[chosen_rune]
- R.word1 = english[required[1]]
- R.word2 = english[required[2]]
- R.word3 = english[required[3]]
- R.check_icon()
- R.blood_DNA = list()
- R.blood_DNA[H.dna.unique_enzymes] = H.dna.b_type
- R.add_hiddenprint(H)
- return
- else
- to_chat(user, "The book seems full of illegible scribbles. Is this a joke?")
- return
-
- attackby(obj/item/weapon/tome/T as obj, mob/living/user as mob, params)
- if(istype(T, /obj/item/weapon/tome)) // sanity check to prevent a runtime error
- switch(alert("Copy the runes from your tome?",,"Copy", "Cancel"))
- if("cancel")
+ if(!cult_mode.eldergod)
+ to_chat(user, "\"I am already here. There is no need to try to summon me now.\"")
return
- // var/list/nearby = viewers(1,src) //- Fuck this as well. No clue why this doesnt work. -K0000
- // if(T.loc != user)
- // return
- // for(var/mob/M in nearby)
- // if(M == user)
- for(var/entry in words)
- words[entry] = T.words[entry]
- to_chat(user, "You copy the translation notes from your tome.")
-
-
- examine(mob/user)
- if(!iscultist(user))
- to_chat(user, "An old, dusty tome with frayed edges and a sinister looking cover.")
- else
- to_chat(user, "The scriptures of Nar-Sie, The One Who Sees, The Geometer of Blood. Contains the details of every ritual his followers could think of. Most of these are useless, though.")
-
-/obj/item/weapon/tome/imbued //admin tome, spawns working runes without waiting
- w_class = 2
- var/cultistsonly = 1
- attack_self(mob/user as mob)
- if(src.cultistsonly && !iscultist(usr))
- return
- if(!cultwords["travel"])
- runerandom()
- if(user)
- var/r
- if(!istype(user.loc,/turf))
- to_chat(user, "\red You do not have enough space to write a proper rune.")
- var/list/runes = list("teleport", "itemport", "tome", "armor", "convert", "tear in reality", "emp", "drain", "seer", "raise", "obscure", "reveal", "astral journey", "manifest", "imbue talisman", "sacrifice", "wall", "freedom", "cultsummon", "deafen", "blind", "bloodboil", "communicate", "stun")
- r = input("Choose a rune to scribe", "Rune Scribing") in runes //not cancellable.
- var/obj/effect/rune/R = new /obj/effect/rune
- if(istype(user, /mob/living/carbon/human))
- var/mob/living/carbon/human/H = user
- R.blood_DNA = list()
- R.blood_DNA[H.dna.unique_enzymes] = H.dna.b_type
- switch(r)
- if("teleport")
- var/list/words = list("ire", "ego", "nahlizet", "certum", "veri", "jatkaa", "balaq", "mgar", "karazet", "geeri")
- var/beacon
- if(usr)
- beacon = input("Select the last rune", "Rune Scribing") in words
- R.word1=cultwords["travel"]
- R.word2=cultwords["self"]
- R.word3=beacon
- R.loc = user.loc
- R.check_icon()
- if("itemport")
- var/list/words = list("ire", "ego", "nahlizet", "certum", "veri", "jatkaa", "balaq", "mgar", "karazet", "geeri")
- var/beacon
- if(usr)
- beacon = input("Select the last rune", "Rune Scribing") in words
- R.word1=cultwords["travel"]
- R.word2=cultwords["other"]
- R.word3=beacon
- R.loc = user.loc
- R.check_icon()
- if("tome")
- R.word1=cultwords["see"]
- R.word2=cultwords["blood"]
- R.word3=cultwords["hell"]
- R.loc = user.loc
- R.check_icon()
- if("armor")
- R.word1=cultwords["hell"]
- R.word2=cultwords["destroy"]
- R.word3=cultwords["other"]
- R.loc = user.loc
- R.check_icon()
- if("convert")
- R.word1=cultwords["join"]
- R.word2=cultwords["blood"]
- R.word3=cultwords["self"]
- R.loc = user.loc
- R.check_icon()
- if("tear in reality")
- R.word1=cultwords["hell"]
- R.word2=cultwords["join"]
- R.word3=cultwords["self"]
- R.loc = user.loc
- R.check_icon()
- if("emp")
- R.word1=cultwords["destroy"]
- R.word2=cultwords["see"]
- R.word3=cultwords["technology"]
- R.loc = user.loc
- R.check_icon()
- if("drain")
- R.word1=cultwords["travel"]
- R.word2=cultwords["blood"]
- R.word3=cultwords["self"]
- R.loc = user.loc
- R.check_icon()
- if("seer")
- R.word1=cultwords["see"]
- R.word2=cultwords["hell"]
- R.word3=cultwords["join"]
- R.loc = user.loc
- R.check_icon()
- if("raise")
- R.word1=cultwords["blood"]
- R.word2=cultwords["join"]
- R.word3=cultwords["hell"]
- R.loc = user.loc
- R.check_icon()
- if("obscure")
- R.word1=cultwords["hide"]
- R.word2=cultwords["see"]
- R.word3=cultwords["blood"]
- R.loc = user.loc
- R.check_icon()
- if("astral journey")
- R.word1=cultwords["hell"]
- R.word2=cultwords["travel"]
- R.word3=cultwords["self"]
- R.loc = user.loc
- R.check_icon()
- if("manifest")
- R.word1=cultwords["blood"]
- R.word2=cultwords["see"]
- R.word3=cultwords["travel"]
- R.loc = user.loc
- R.check_icon()
- if("imbue talisman")
- R.word1=cultwords["hell"]
- R.word2=cultwords["technology"]
- R.word3=cultwords["join"]
- R.loc = user.loc
- R.check_icon()
- if("sacrifice")
- R.word1=cultwords["hell"]
- R.word2=cultwords["blood"]
- R.word3=cultwords["join"]
- R.loc = user.loc
- R.check_icon()
- if("reveal")
- R.word1=cultwords["blood"]
- R.word2=cultwords["see"]
- R.word3=cultwords["hide"]
- R.loc = user.loc
- R.check_icon()
- if("wall")
- R.word1=cultwords["destroy"]
- R.word2=cultwords["travel"]
- R.word3=cultwords["self"]
- R.loc = user.loc
- R.check_icon()
- if("freedom")
- R.word1=cultwords["travel"]
- R.word2=cultwords["technology"]
- R.word3=cultwords["other"]
- R.loc = user.loc
- R.check_icon()
- if("cultsummon")
- R.word1=cultwords["join"]
- R.word2=cultwords["other"]
- R.word3=cultwords["self"]
- R.loc = user.loc
- R.check_icon()
- if("deafen")
- R.word1=cultwords["hide"]
- R.word2=cultwords["other"]
- R.word3=cultwords["see"]
- R.loc = user.loc
- R.check_icon()
- if("blind")
- R.word1=cultwords["destroy"]
- R.word2=cultwords["see"]
- R.word3=cultwords["other"]
- R.loc = user.loc
- R.check_icon()
- if("bloodboil")
- R.word1=cultwords["destroy"]
- R.word2=cultwords["see"]
- R.word3=cultwords["blood"]
- R.loc = user.loc
- R.check_icon()
- if("communicate")
- R.word1=cultwords["self"]
- R.word2=cultwords["other"]
- R.word3=cultwords["technology"]
- R.loc = user.loc
- R.check_icon()
- if("stun")
- R.word1=cultwords["join"]
- R.word2=cultwords["hide"]
- R.word3=cultwords["technology"]
- R.loc = user.loc
- R.check_icon()
+ if(cult_mode.demons_summoned)
+ to_chat(user, "\"We are already here. There is no need to try to summon us now.\"")
+ return
+ var/confirm_final = alert(user, "This is the FINAL step to summon Nar-Sie, it is a long, painful ritual and the crew will be alerted to your presence", "Are you prepared for the final battle?", "My life for Nar-Sie!", "No")
+ if(confirm_final == "No")
+ to_chat(user, "You decide to prepare further before scribing the rune.")
+ return
+ command_announcement.Announce("Figments from an eldritch god are being summoned somwhere on the station from an unknown dimension. Disrupt the ritual at all costs!","Central Command Higher Dimensionsal Affairs", 'sound/AI/spanomalies.ogg')
+ for(var/B in spiral_range_turfs(1, user, 1))
+ var/turf/T = B
+ var/obj/machinery/shield/N = new(T)
+ N.name = "Rune-Scriber's Shield"
+ N.desc = "A potent shield summoned by cultists to protect them while they prepare the final ritual"
+ N.icon_state = "shield-cult"
+ N.health = 60
+ shields |= N
+ var/mob/living/carbon/human/H = user
+ var/dam_zone = pick("head", "chest", "groin", "l_arm", "l_hand", "r_arm", "r_hand", "l_leg", "l_foot", "r_leg", "r_foot")
+ var/obj/item/organ/external/affecting = H.get_organ(ran_zone(dam_zone))
+ user.visible_message("[user] cuts open their \the [affecting] and begins writing in their own blood!", "You slice open your [affecting] and begin drawing a sigil of [ticker.mode.cultdat.entity_title3].")
+ user.apply_damage(initial(rune_to_scribe.scribe_damage), ticker.mode.cultdat.dam_type, affecting)
+ if(!do_after(user, initial(rune_to_scribe.scribe_delay)-scribereduct, target = get_turf(user)))
+ for(var/V in shields)
+ var/obj/machinery/shield/S = V
+ if(S && !qdeleted(S))
+ qdel(S)
+ return
+ if(locate(/obj/effect/rune) in runeturf)
+ to_chat(user, "There is already a rune here.")
+ return
+ user.visible_message("[user] creates a strange circle in their own blood.", \
+ "You finish drawing the arcane markings of [ticker.mode.cultdat.entity_title3].")
+ for(var/V in shields)
+ var/obj/machinery/shield/S = V
+ if(S && !qdeleted(S))
+ qdel(S)
+ var/obj/effect/rune/R = new rune_to_scribe(runeturf, chosen_keyword)
+ R.blood_DNA = list()
+ R.blood_DNA[H.dna.unique_enzymes] = H.dna.b_type
+ R.add_hiddenprint(H)
+ to_chat(user, "The [lowertext(initial(rune_to_scribe.cultist_name))] rune [initial(rune_to_scribe.cultist_desc)]")
diff --git a/code/game/gamemodes/cult/runes.dm b/code/game/gamemodes/cult/runes.dm
index 7ad1e33b747..df8fb734d1b 100644
--- a/code/game/gamemodes/cult/runes.dm
+++ b/code/game/gamemodes/cult/runes.dm
@@ -1,1043 +1,955 @@
-var/list/sacrificed = list()
+/var/list/sacrificed = list()
+var/list/non_revealed_runes = (subtypesof(/obj/effect/rune) - /obj/effect/rune/malformed)
-
-/////////////////////////////////////////FIRST RUNE
-/obj/effect/rune/proc/teleportRune()
- return teleport(src.word3)
-
-/obj/effect/rune/proc/teleport(var/key)
- var/mob/living/user = usr
- var/allrunesloc[]
- allrunesloc = new/list()
- var/index = 0
-// var/tempnum = 0
- for(var/obj/effect/rune/R in world)
- if(R == src)
- continue
- if(R.word1 == cultwords["travel"] && R.word2 == cultwords["self"] && R.word3 == key && R.z != 2)
- index++
- allrunesloc.len = index
- allrunesloc[index] = R.loc
- if(index >= 5)
- to_chat(user, "\red You feel pain, as rune disappears in reality shift caused by too much wear of space-time fabric")
- if(istype(user, /mob/living))
- user.take_overall_damage(5, 0)
- qdel(src)
- if(allrunesloc && index != 0)
- if(istype(src,/obj/effect/rune))
- user.say("Sas[pick("'","`")]so c'arta forbici!")//Only you can stop auto-muting
- else
- user.whisper("Sas[pick("'","`")]so c'arta forbici!")
- user.visible_message("\red [user] disappears in a flash of red light!", \
- "\red You feel as your body gets dragged through the dimension of Nar-Sie!", \
- "\red You hear a sickening crunch and sloshing of viscera.")
- user.loc = allrunesloc[rand(1,index)]
- return
- if(istype(src,/obj/effect/rune))
- return fizzle() //Use friggin manuals, Dorf, your list was of zero length.
- else
- call(/obj/effect/rune/proc/fizzle)()
- return
-
-/obj/effect/rune/proc/itemportRune()
- return itemport(src.word3)
-/obj/effect/rune/proc/itemport(var/key)
-// var/allrunesloc[]
-// allrunesloc = new/list()
-// var/index = 0
-// var/tempnum = 0
- var/culcount = 0
- var/runecount = 0
- var/obj/effect/rune/IP = null
- var/mob/living/user = usr
- for(var/obj/effect/rune/R in world)
- if(R == src)
- continue
- if(R.word1 == cultwords["travel"] && R.word2 == cultwords["other"] && R.word3 == key)
- IP = R
- runecount++
- if(runecount >= 2)
- to_chat(user, "\red You feel pain, as rune disappears in reality shift caused by too much wear of space-time fabric")
- if(istype(user, /mob/living))
- user.take_overall_damage(5, 0)
- qdel(src)
- for(var/mob/living/carbon/C in orange(1,src))
- if(iscultist(C) && !C.stat)
- culcount++
- if(culcount>=3)
- user.say("Sas[pick("'","`")]so c'arta forbici tarem!")
- user.visible_message("\red You feel air moving from the rune - like as it was swapped with somewhere else.", \
- "\red You feel air moving from the rune - like as it was swapped with somewhere else.", \
- "\red You smell ozone.")
- for(var/obj/O in src.loc)
- if(!O.anchored)
- O.loc = IP.loc
- for(var/mob/M in src.loc)
- M.loc = IP.loc
- return
-
- return fizzle()
-
-
-/////////////////////////////////////////SECOND RUNE
-
-/obj/effect/rune/proc/tomesummon()
- if(istype(src,/obj/effect/rune))
- usr.say("N[pick("'","`")]ath reth sh'yro eth d'raggathnor!")
- else
- usr.whisper("N[pick("'","`")]ath reth sh'yro eth d'raggathnor!")
- usr.visible_message("\red Rune disappears with a flash of red light, and in its place now a book lies.", \
- "\red You are blinded by the flash of red light! After you're able to see again, you see that now instead of the rune there's a book.", \
- "\red You hear a pop and smell ozone.")
- if(istype(src,/obj/effect/rune))
- new /obj/item/weapon/tome(src.loc)
- else
- new /obj/item/weapon/tome(usr.loc)
- qdel(src)
- return
-
-
-
-/////////////////////////////////////////THIRD RUNE
-
-/obj/effect/rune/proc/convert()
- for(var/mob/living/carbon/M in src.loc)
- if(iscultist(M))
- continue
- if(M.stat==2)
- continue
- usr.say("Mah[pick("'","`")]weyh pleggh at e'ntrath!")
- M.visible_message("\red [M] writhes in pain as the markings below him glow a bloody red.", \
- "\red AAAAAAHHHH!.", \
- "\red You hear an anguished scream.")
- cult_log("[key_name_admin(usr)] tried to convert [key_name_admin(M)]")
- if(is_convertable_to_cult(M.mind))
- ticker.mode.add_cultist(M.mind)
- M.mind.special_role = "Cultist"
- to_chat(M, "Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible truth. The veil of reality has been ripped away and in the festering wound left behind something sinister takes root.")
- to_chat(M, "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.")
- return 1
- else
- to_chat(M, "Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible truth. The veil of reality has been ripped away and in the festering wound left behind something sinister takes root.")
- to_chat(M, "And you were able to force it out of your mind. You now know the truth, there's something horrible out there, stop it and its minions at all costs.")
- return 0
-
- return fizzle()
-
-
-
-/////////////////////////////////////////FOURTH RUNE
-
-/obj/effect/rune/proc/tearreality()
- var/cultist_count = 0
- for(var/mob/M in range(1,src))
- if(iscultist(M) && !M.stat)
- M.say("Tok-lyr rqa'nap g[pick("'","`")]lt-ulotf!")
- cultist_count += 1
- if(cultist_count >= 9)
- cult_log("THE CULT HAS SUMMONED NAR'SIE. GGNORE")
- new /obj/singularity/narsie/large(src.loc)
- if(ticker.mode.name == "cult")
- ticker.mode:eldergod = 0
- return
- else
- return fizzle()
-
-/////////////////////////////////////////FIFTH RUNE
-/obj/effect/rune/proc/empRune()
- emp(src.loc,3)
-
-/obj/effect/rune/proc/emp(var/U,var/range_red) //range_red - var which determines by which number to reduce the default emp range, U is the source loc, needed because of talisman emps which are held in hand at the moment of using and that apparently messes things up -- Urist
- if(istype(src,/obj/effect/rune))
- usr.say("Ta'gh fara[pick("'","`")]qha fel d'amar det!")
- else
- usr.whisper("Ta'gh fara[pick("'","`")]qha fel d'amar det!")
- playsound(U, 'sound/items/Welder2.ogg', 25, 1)
- var/turf/T = get_turf(U)
- if(T)
- T.hotspot_expose(700,125)
- var/rune = src // detaching the proc - in theory
- empulse(U, (range_red - 2), range_red)
- qdel(rune)
- return
-
-/////////////////////////////////////////SIXTH RUNE
-
-/obj/effect/rune/proc/drain()
- var/drain = 0
- for(var/obj/effect/rune/R in world)
- if(R.word1==cultwords["travel"] && R.word2==cultwords["blood"] && R.word3==cultwords["self"])
- for(var/mob/living/carbon/D in R.loc)
- if(D.stat!=2)
- cult_log("[key_name_admin(usr)] has drained blood from [key_name_admin(D)]")
- var/bdrain = rand(1,25)
- to_chat(D, "\red You feel weakened.")
- D.take_overall_damage(bdrain, 0)
- drain += bdrain
- if(!drain)
- return fizzle()
- usr.say ("Yu[pick("'","`")]gular faras desdae. Havas mithum javara. Umathar uf'kal thenar!")
- usr.visible_message("\red Blood flows from the rune into [usr]!", \
- "\red The blood starts flowing from the rune and into your frail mortal body. You feel... empowered.", \
- "\red You hear a liquid flowing.")
- var/mob/living/user = usr
- if(user.bhunger)
- user.bhunger = max(user.bhunger-2*drain,0)
- if(drain>=50)
- user.visible_message("\red [user]'s eyes give off eerie red glow!", \
- "\red ...but it wasn't nearly enough. You crave, crave for more. The hunger consumes you from within.", \
- "\red You hear a heartbeat.")
- user.bhunger += drain
- src = user
- spawn()
- for(,user.bhunger>0,user.bhunger--)
- sleep(50)
- user.take_overall_damage(3, 0)
- return
- user.heal_organ_damage(drain%5, 0)
- drain-=drain%5
- for(,drain>0,drain-=5)
- sleep(2)
- user.heal_organ_damage(5, 0)
- return
-
-
-
-
-
-
-/////////////////////////////////////////SEVENTH RUNE
-
-/obj/effect/rune/proc/seer()
- if(usr.loc==src.loc)
- if(usr.seer==1)
- usr.say("Rash'tla sektath mal[pick("'","`")]zua. Zasan therium viortia.")
- to_chat(usr, "\red The world beyond fades from your vision.")
- usr.see_invisible = SEE_INVISIBLE_LIVING
- usr.seer = 0
- else if(usr.see_invisible!=SEE_INVISIBLE_LIVING)
- to_chat(usr, "\red The world beyond flashes your eyes but disappears quickly, as if something is disrupting your vision.")
- usr.see_invisible = SEE_INVISIBLE_OBSERVER
- usr.seer = 0
- else
- usr.say("Rash'tla sektath mal[pick("'","`")]zua. Zasan therium vivira. Itonis al'ra matum!")
- to_chat(usr, "\red The world beyond opens to your eyes.")
- usr.see_invisible = SEE_INVISIBLE_OBSERVER
- usr.seer = 1
- return
- return fizzle()
-
-/////////////////////////////////////////EIGHTH RUNE
-
-/obj/effect/rune/proc/raise()
- var/mob/living/carbon/human/corpse_to_raise
- var/mob/living/carbon/human/body_to_sacrifice
-
- var/is_sacrifice_target = 0
- for(var/mob/living/carbon/human/M in src.loc)
- if(M.stat == DEAD)
- if(ticker.mode.name == "cult" && M.mind == ticker.mode:sacrifice_target)
- is_sacrifice_target = 1
- else
- corpse_to_raise = M
- if(M.key)
- M.ghostize(1) //kick them out of their body
- break
- if(!corpse_to_raise)
- if(is_sacrifice_target)
- to_chat(usr, "\red The Geometer of blood wants this mortal for himself.")
- return fizzle()
-
-
- is_sacrifice_target = 0
- find_sacrifice:
- for(var/obj/effect/rune/R in world)
- if(R.word1==cultwords["blood"] && R.word2==cultwords["join"] && R.word3==cultwords["hell"])
- for(var/mob/living/carbon/human/N in R.loc)
- if(ticker.mode.name == "cult" && N.mind && N.mind == ticker.mode:sacrifice_target)
- is_sacrifice_target = 1
- else
- if(N.stat!= DEAD)
- body_to_sacrifice = N
- break find_sacrifice
-
- if(!body_to_sacrifice)
- if(is_sacrifice_target)
- to_chat(usr, "\red The Geometer of blood wants that corpse for himself.")
- else
- to_chat(usr, "\red The sacrifical corpse is not dead. You must free it from this world of illusions before it may be used.")
- return fizzle()
-
- var/mob/dead/observer/ghost
- for(var/mob/dead/observer/O in loc)
- if(!O.client) continue
- if(O.mind && O.mind.current && O.mind.current.stat != DEAD) continue
- ghost = O
- break
-
- if(!ghost)
- to_chat(usr, "\red You require a restless spirit which clings to this world. Beckon their prescence with the sacred chants of Nar-Sie.")
- return fizzle()
-
- corpse_to_raise.revive()
-
- corpse_to_raise.key = ghost.key //the corpse will keep its old mind! but a new player takes ownership of it (they are essentially possessed)
- //This means, should that player leave the body, the original may re-enter
- usr.say("Pasnar val'keriam usinar. Savrae ines amutan. Yam'toth remium il'tarat!")
- corpse_to_raise.visible_message("\red [corpse_to_raise]'s eyes glow with a faint red as he stands up, slowly starting to breathe again.", \
- "\red Life... I'm alive again...", \
- "\red You hear a faint, slightly familiar whisper.")
- body_to_sacrifice.visible_message("\red [body_to_sacrifice] is torn apart, a black smoke swiftly dissipating from his remains!", \
- "\red You feel as your blood boils, tearing you apart.", \
- "\red You hear a thousand voices, all crying in pain.")
- body_to_sacrifice.gib()
-
-// if(ticker.mode.name == "cult")
-// ticker.mode:add_cultist(corpse_to_raise.mind)
-// else
-// ticker.mode.cult |= corpse_to_raise.mind
-
- to_chat(corpse_to_raise, "Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible truth. The veil of reality has been ripped away and in the festering wound left behind something sinister takes root.")
- to_chat(corpse_to_raise, "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.")
- return
-
-
-
-
-
-/////////////////////////////////////////NINETH RUNE
-
-/obj/effect/rune/proc/obscureRune()
- return obscure(4)
-/obj/effect/rune/proc/obscure(var/rad)
- var/S=0
- for(var/obj/effect/rune/R in orange(rad,src))
- if(R!=src)
- R.invisibility=INVISIBILITY_OBSERVER
- S=1
- if(S)
- if(istype(src,/obj/effect/rune))
- usr.say("Kla[pick("'","`")]atu barada nikt'o!")
- for(var/mob/V in viewers(src))
- V.show_message("\red The rune turns into gray dust, veiling the surrounding runes.", 3)
- qdel(src)
- else
- usr.whisper("Kla[pick("'","`")]atu barada nikt'o!")
- to_chat(usr, "\red Your talisman turns into gray dust, veiling the surrounding runes.")
- for(var/mob/V in orange(1,src))
- if(V!=usr)
- V.show_message("\red Dust emanates from [usr]'s hands for a moment.", 3)
-
- return
- if(istype(src,/obj/effect/rune))
- return fizzle()
- else
- call(/obj/effect/rune/proc/fizzle)()
- return
-
-/////////////////////////////////////////TENTH RUNE
-
-/obj/effect/rune/proc/ajourney() //some bits copypastaed from admin tools - Urist
- if(usr.loc==src.loc)
- var/mob/living/carbon/human/L = usr
- usr.say("Fwe[pick("'","`")]sh mah erl nyag r'ya!")
- usr.visible_message("\red [usr]'s eyes glow blue as \he freezes in place, absolutely motionless.", \
- "\red The shadow that is your spirit separates itself from your body. You are now in the realm beyond. While this is a great sight, being here strains your mind and body. Hurry...", \
- "\red You hear only complete silence for a moment.")
- usr.ghostize(1)
- L.ajourn = 1
- while(L)
- if(L.key)
- L.ajourn=0
- return
- else
- L.take_organ_damage(10, 0)
- sleep(100)
- return fizzle()
-
-
-
-
-/////////////////////////////////////////ELEVENTH RUNE
-
-/obj/effect/rune/proc/manifest()
- var/obj/effect/rune/this_rune = src
- src = null
- if(usr.loc!=this_rune.loc)
- return this_rune.fizzle()
- var/mob/dead/observer/ghost
- for(var/mob/dead/observer/O in this_rune.loc)
- if(!O.client) continue
- if(O.mind && O.mind.current && O.mind.current.stat != DEAD) continue
- ghost = O
- break
- if(!ghost)
- return this_rune.fizzle()
- if(jobban_isbanned(ghost, ROLE_CULTIST) || jobban_isbanned(ghost,"Syndicate"))
- return this_rune.fizzle()
-
- usr.say("Gal'h'rfikk harfrandid mud[pick("'","`")]gib!")
- var/mob/living/carbon/human/dummy/D = new(this_rune.loc)
- usr.visible_message("\red A shape forms in the center of the rune. A shape of... a man.", \
- "\red A shape forms in the center of the rune. A shape of... a man.", \
- "\red You hear liquid flowing.")
- D.real_name = "Unknown"
- var/chose_name = 0
- for(var/obj/item/weapon/paper/P in this_rune.loc)
- if(P.info)
- D.real_name = copytext(P.info, findtext(P.info,">")+1, findtext(P.info,"<",2) )
- chose_name = 1
- break
- if(!chose_name)
- D.real_name = "[pick(first_names_male)] [pick(last_names)]"
- D.universal_speak = 1
- D.status_flags &= ~GODMODE
-
- D.key = ghost.key
-
- if(ticker.mode.name == "cult")
- ticker.mode:add_cultist(D.mind)
- else
- ticker.mode.cult+=D.mind
-
- D.mind.special_role = "Cultist"
- to_chat(D, "Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible truth. The veil of reality has been ripped away and in the festering wound left behind something sinister takes root.")
- to_chat(D, "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.")
-
- var/mob/living/user = usr
- while(this_rune && user && user.stat==CONSCIOUS && user.client && user.loc==this_rune.loc)
- user.take_organ_damage(1, 0)
- sleep(30)
- if(D)
- D.visible_message("\red [D] slowly dissipates into dust and bones.", \
- "\red You feel pain, as bonds formed between your soul and this homunculus break.", \
- "\red You hear faint rustle.")
- D.dust()
- return
-
-
-
-
-
-/////////////////////////////////////////TWELFTH RUNE
-
-/obj/effect/rune/proc/talisman()//only hide, emp, teleport, deafen, blind and tome runes can be imbued atm
- var/obj/item/weapon/paper/newtalisman
- var/unsuitable_newtalisman = 0
- for(var/obj/item/weapon/paper/P in src.loc)
- if(!P.info)
- newtalisman = P
- break
- else
- unsuitable_newtalisman = 1
- if(!newtalisman)
- if(unsuitable_newtalisman)
- to_chat(usr, "\red The blank is tainted. It is unsuitable.")
- return fizzle()
-
- var/obj/effect/rune/imbued_from
- var/obj/item/weapon/paper/talisman/T
- for(var/obj/effect/rune/R in orange(1,src))
- if(R==src)
- continue
- if(R.word1==cultwords["travel"] && R.word2==cultwords["self"]) //teleport
- T = new(src.loc)
- T.imbue = "[R.word3]"
- T.info = "[R.word3]"
- imbued_from = R
- break
- if(R.word1==cultwords["see"] && R.word2==cultwords["blood"] && R.word3==cultwords["hell"]) //tome
- T = new(src.loc)
- T.imbue = "newtome"
- imbued_from = R
- break
- if(R.word1==cultwords["destroy"] && R.word2==cultwords["see"] && R.word3==cultwords["technology"]) //emp
- T = new(src.loc)
- T.imbue = "emp"
- imbued_from = R
- break
- if(R.word1==cultwords["blood"] && R.word2==cultwords["see"] && R.word3==cultwords["destroy"]) //conceal
- T = new(src.loc)
- T.imbue = "conceal"
- imbued_from = R
- break
- if(R.word1==cultwords["hell"] && R.word2==cultwords["destroy"] && R.word3==cultwords["other"]) //armor
- T = new(src.loc)
- T.imbue = "armor"
- imbued_from = R
- break
- if(R.word1==cultwords["blood"] && R.word2==cultwords["see"] && R.word3==cultwords["hide"]) //reveal
- T = new(src.loc)
- T.imbue = "revealrunes"
- imbued_from = R
- break
- if(R.word1==cultwords["hide"] && R.word2==cultwords["other"] && R.word3==cultwords["see"]) //deafen
- T = new(src.loc)
- T.imbue = "deafen"
- imbued_from = R
- break
- if(R.word1==cultwords["destroy"] && R.word2==cultwords["see"] && R.word3==cultwords["other"]) //blind
- T = new(src.loc)
- T.imbue = "blind"
- imbued_from = R
- break
- if(R.word1==cultwords["self"] && R.word2==cultwords["other"] && R.word3==cultwords["technology"]) //communicate
- T = new(src.loc)
- T.imbue = "communicate"
- imbued_from = R
- break
- if(R.word1==cultwords["join"] && R.word2==cultwords["hide"] && R.word3==cultwords["technology"]) //stun
- T = new(src.loc)
- T.imbue = "runestun"
- imbued_from = R
- break
- if(imbued_from)
- for(var/mob/V in viewers(src))
- V.show_message("\red The runes turn into dust, which then forms into an arcane image on the paper.", 3)
- usr.say("H'drak v[pick("'","`")]loso, mir'kanas verbot!")
- qdel(imbued_from)
- qdel(newtalisman)
- else
- return fizzle()
-
-/////////////////////////////////////////THIRTEENTH RUNE
-
-/obj/effect/rune/proc/mend()
- var/mob/living/user = usr
- src = null
- user.say("Uhrast ka'hfa heldsagen ver[pick("'","`")]lot!")
- user.take_overall_damage(200, 0)
- runedec+=10
- user.visible_message("\red [user] keels over dead, his blood glowing blue as it escapes his body and dissipates into thin air.", \
- "\red In the last moment of your humble life, you feel an immense pain as fabric of reality mends... with your blood.", \
- "\red You hear faint rustle.")
- for(,user.stat==2)
- sleep(600)
- if(!user)
- return
- runedec-=10
- return
-
-
-/////////////////////////////////////////FOURTEETH RUNE
-
-// returns 0 if the rune is not used. returns 1 if the rune is used.
-/obj/effect/rune/proc/communicate()
- . = 1 // Default output is 1. If the rune is deleted it will return 1
- var/input = stripped_input(usr, "Please choose a message to tell to the other acolytes.", "Voice of Blood", "")
- if(!input)
- if(istype(src))
- fizzle()
- return 0
- else
- return 0
-
- // record this
- //cult_log("[key_name(usr,0)] says : [input]")
-
-
- var/F = investigate_subject2file("cult")
- if(!F)
- return 0
- to_chat(F, "[time2text(world.timeofday,"hh:mm")] \ref[usr] ([usr.x],[usr.y],[usr.z]) || [usr] communicates: [input]
")
-
- var/obj/cult_viewpoint/vp = getCultViewpoint(usr)
- if(!vp)
- return 0
-
- var/displayName = vp.get_display_name()
- var/cultName = vp.get_cult_name()
-
- if(istype(src,/obj/effect/rune))
- usr.say("O bidai nabora se[pick("'","`")]sma!")
- else
- usr.whisper("O bidai nabora se[pick("'","`")]sma!")
-
- if(istype(src,/obj/effect/rune))
- usr.say("[input]")
- else
- usr.whisper("[input]")
-
- log_say("Cult Message: [key_name(usr)]: [input]")
- for(var/datum/mind/H in ticker.mode.cult)
- if(H.current)
- to_chat(H.current, "[cultName]: [input]")
-
- for(var/mob/spirit/spirit in spirits)
- to_chat(spirit, "[displayName]: [input]")
-
-
- for(var/mob/dead/observer/G in player_list)
- G.show_message("[displayName] ([cultName]) ([ghost_follow_link(usr, ghost=G)]): [input]")
-
- qdel(src)
- return 1
-
-/////////////////////////////////////////FIFTEENTH RUNE
-
-/obj/effect/rune/proc/sacrifice()
- var/list/mob/living/carbon/human/cultsinrange = list()
- var/list/mob/living/carbon/human/victims = list()
- for(var/mob/living/carbon/human/V in src.loc)//Checks for non-cultist humans to sacrifice
- if(ishuman(V))
- if(!(iscultist(V)))
- victims += V//Checks for cult status and mob type
- for(var/obj/item/I in src.loc)//Checks for MMIs/brains/Intellicards
- if(istype(I,/obj/item/organ/internal/brain))
- var/obj/item/organ/internal/brain/B = I
- victims += B.brainmob
- else if(istype(I,/obj/item/device/mmi))
- var/obj/item/device/mmi/B = I
- victims += B.brainmob
- else if(istype(I,/obj/item/device/aicard))
- for(var/mob/living/silicon/ai/A in I)
- victims += A
- for(var/mob/living/carbon/C in orange(1,src))
- if(iscultist(C) && !C.stat)
- cultsinrange += C
- C.say("Barhah hra zar[pick("'","`")]garis!")
- for(var/mob/H in victims)
- if(ticker.mode.name == "cult")
- if(H.mind == ticker.mode:sacrifice_target)
- if(cultsinrange.len >= 3)
- sacrificed += H.mind
- if(isrobot(H))
- H.dust()//To prevent the MMI from remaining
- else
- H.gib()
- to_chat(usr, "\red The Geometer of Blood accepts this sacrifice, your objective is now complete.")
- else
- to_chat(usr, "\red Your target's earthly bonds are too strong. You need more cultists to succeed in this ritual.")
- else
- if(cultsinrange.len >= 3)
- if(H.stat !=2)
- if(prob(80))
- to_chat(usr, "\red The Geometer of Blood accepts this sacrifice.")
- ticker.mode:grant_runeword(usr)
- else
- to_chat(usr, "\red The Geometer of blood accepts this sacrifice.")
- to_chat(usr, "\red However, this soul was not enough to gain His favor.")
- if(isrobot(H))
- H.dust()//To prevent the MMI from remaining
- else
- H.gib()
- else
- if(prob(40))
- to_chat(usr, "\red The Geometer of blood accepts this sacrifice.")
- ticker.mode:grant_runeword(usr)
- else
- to_chat(usr, "\red The Geometer of blood accepts this sacrifice.")
- to_chat(usr, "\red However, a mere dead body is not enough to satisfy Him.")
- if(isrobot(H))
- H.dust()//To prevent the MMI from remaining
- else
- H.gib()
- else
- if(H.stat !=2)
- to_chat(usr, "\red The victim is still alive, you will need more cultists chanting for the sacrifice to succeed.")
- else
- if(prob(40))
- to_chat(usr, "\red The Geometer of blood accepts this sacrifice.")
- ticker.mode:grant_runeword(usr)
- else
- to_chat(usr, "\red The Geometer of blood accepts this sacrifice.")
- to_chat(usr, "\red However, a mere dead body is not enough to satisfy Him.")
- if(isrobot(H))
- H.dust()//To prevent the MMI from remaining
- else
- H.gib()
- else
- if(cultsinrange.len >= 3)
- if(H.stat !=2)
- if(prob(80))
- to_chat(usr, "\red The Geometer of Blood accepts this sacrifice.")
- ticker.mode:grant_runeword(usr)
- else
- to_chat(usr, "\red The Geometer of blood accepts this sacrifice.")
- to_chat(usr, "\red However, this soul was not enough to gain His favor.")
- if(isrobot(H))
- H.dust()//To prevent the MMI from remaining
- else
- H.gib()
- else
- if(prob(40))
- to_chat(usr, "\red The Geometer of blood accepts this sacrifice.")
- ticker.mode:grant_runeword(usr)
- else
- to_chat(usr, "\red The Geometer of blood accepts this sacrifice.")
- to_chat(usr, "\red However, a mere dead body is not enough to satisfy Him.")
- if(isrobot(H))
- H.dust()//To prevent the MMI from remaining
- else
- H.gib()
- else
- if(H.stat !=2)
- to_chat(usr, "\red The victim is still alive, you will need more cultists chanting for the sacrifice to succeed.")
- else
- if(prob(40))
- to_chat(usr, "\red The Geometer of blood accepts this sacrifice.")
- ticker.mode:grant_runeword(usr)
- else
- to_chat(usr, "\red The Geometer of blood accepts this sacrifice.")
- to_chat(usr, "\red However, a mere dead body is not enough to satisfy Him.")
- if(isrobot(H))
- H.dust()//To prevent the MMI from remaining
- else
- H.gib()
-
-/////////////////////////////////////////SIXTEENTH RUNE
-
-/obj/effect/rune/proc/revealrunesrune()
- revealrunes(src)
-
-/obj/effect/rune/proc/revealrunes(var/obj/W as obj)
- var/go=0
- var/rad
- var/S=0
- if(istype(W,/obj/effect/rune))
- rad = 6
- go = 1
- if(istype(W,/obj/item/weapon/paper/talisman))
- rad = 4
- go = 1
- if(istype(W,/obj/item/weapon/storage/bible))
- rad = 1
- go = 1
- if(go)
- for(var/obj/effect/rune/R in orange(rad,src))
- if(R!=src)
- R:visibility=15
- S=1
- if(S)
- if(istype(W,/obj/item/weapon/storage/bible))
- to_chat(usr, "\red Arcane markings suddenly glow from underneath a thin layer of dust!")
- return
- if(istype(W,/obj/effect/rune))
- usr.say("Nikt[pick("'","`")]o barada kla'atu!")
- for(var/mob/V in viewers(src))
- V.show_message("\red The rune turns into red dust, reveaing the surrounding runes.", 3)
- qdel(src)
- return
- if(istype(W,/obj/item/weapon/paper/talisman))
- usr.whisper("Nikt[pick("'","`")]o barada kla'atu!")
- to_chat(usr, "\red Your talisman turns into red dust, revealing the surrounding runes.")
- for(var/mob/V in orange(1,usr.loc))
- if(V!=usr)
- V.show_message("\red Red dust emanates from [usr]'s hands for a moment.", 3)
- return
- return
- if(istype(W,/obj/effect/rune))
- return fizzle()
- if(istype(W,/obj/item/weapon/paper/talisman))
- call(/obj/effect/rune/proc/fizzle)()
- return
-
-/////////////////////////////////////////SEVENTEENTH RUNE
-
-/obj/effect/rune/proc/wall()
- usr.say("Khari[pick("'","`")]d! Eske'te tannin!")
- src.density = !src.density
- var/mob/living/user = usr
- user.take_organ_damage(2, 0)
- if(src.density)
- to_chat(usr, "\red Your blood flows into the rune, and you feel that the very space over the rune thickens.")
- else
- to_chat(usr, "\red Your blood flows into the rune, and you feel as the rune releases its grasp on space.")
- return
-
-/////////////////////////////////////////EIGHTTEENTH RUNE
-
-/obj/effect/rune/proc/freedom()
- var/mob/living/user = usr
- var/list/mob/living/carbon/cultists = new
- for(var/datum/mind/H in ticker.mode.cult)
- if(istype(H.current,/mob/living/carbon))
- cultists+=H.current
- var/list/mob/living/carbon/users = new
- for(var/mob/living/carbon/C in orange(1,src))
- if(iscultist(C) && !C.stat)
- users+=C
- if(users.len>=3)
- var/mob/living/carbon/cultist = input("Choose the one who you want to free", "Followers of Geometer") as null|anything in (cultists - users)
- if(!cultist)
- return fizzle()
- if(cultist == user) //just to be sure.
- return
- if(!(cultist.buckled || \
- cultist.handcuffed || \
- istype(cultist.wear_mask, /obj/item/clothing/mask/muzzle) || \
- (istype(cultist.loc, /obj/structure/closet)&&cultist.loc:welded) || \
- (istype(cultist.loc, /obj/structure/closet/secure_closet)&&cultist.loc:locked) || \
- (istype(cultist.loc, /obj/machinery/dna_scannernew)&&cultist.loc:locked) \
- ))
- to_chat(user, "\red The [cultist] is already free.")
- return
- cultist.buckled = null
- if(cultist.handcuffed)
- cultist.handcuffed.loc = cultist.loc
- cultist.handcuffed = null
- cultist.update_handcuffed()
- if(cultist.legcuffed)
- cultist.legcuffed.loc = cultist.loc
- cultist.legcuffed = null
- cultist.update_inv_legcuffed()
- if(istype(cultist.wear_mask, /obj/item/clothing/mask/muzzle))
- cultist.unEquip(cultist.wear_mask)
- if(istype(cultist.loc, /obj/structure/closet)&&cultist.loc:welded)
- cultist.loc:welded = 0
- if(istype(cultist.loc, /obj/structure/closet/secure_closet)&&cultist.loc:locked)
- cultist.loc:locked = 0
- if(istype(cultist.loc, /obj/machinery/dna_scannernew)&&cultist.loc:locked)
- cultist.loc:locked = 0
- for(var/mob/living/carbon/C in users)
- user.take_overall_damage(15, 0)
- C.say("Khari[pick("'","`")]d! Gual'te nikka!")
- qdel(src)
- return fizzle()
-
-/////////////////////////////////////////NINETEENTH RUNE
-
-/obj/effect/rune/proc/cultsummon()
- var/mob/living/user = usr
- var/list/mob/living/carbon/cultists = new
- for(var/datum/mind/H in ticker.mode.cult)
- if(istype(H.current,/mob/living/carbon))
- cultists+=H.current
- var/list/mob/living/carbon/users = new
- for(var/mob/living/carbon/C in orange(1,src))
- if(iscultist(C) && !C.stat)
- users+=C
- if(users.len>=3)
- var/mob/living/carbon/cultist = input("Choose the one who you want to summon", "Followers of Geometer") as null|anything in (cultists - user)
- if(!cultist)
- return fizzle()
- if(cultist == user) //just to be sure.
- return
- if(cultist.buckled || cultist.handcuffed || (!isturf(cultist.loc) && !istype(cultist.loc, /obj/structure/closet)))
- to_chat(user, "\red You cannot summon the [cultist], for his shackles of blood are strong")
- return fizzle()
- cultist.loc = src.loc
- cultist.lying = 1
- cultist.regenerate_icons()
- for(var/mob/living/carbon/human/C in orange(1,src))
- if(iscultist(C) && !C.stat)
- C.say("N'ath reth sh'yro eth d[pick("'","`")]rekkathnor!")
- C.take_overall_damage(25, 0)
- user.visible_message("\red Rune disappears with a flash of red light, and in its place now a body lies.", \
- "\red You are blinded by the flash of red light! After you're able to see again, you see that now instead of the rune there's a body.", \
- "\red You hear a pop and smell ozone.")
- qdel(src)
- return fizzle()
-
-/////////////////////////////////////////TWENTIETH RUNES
-
-/obj/effect/rune/proc/deafen()
- if(istype(src,/obj/effect/rune))
- var/affected = 0
- for(var/mob/living/carbon/C in range(7,src))
- if(iscultist(C))
- continue
- var/obj/item/weapon/nullrod/N = locate() in C
- if(N)
- continue
- C.adjustEarDamage(0,50)
- C.show_message("\red The world around you suddenly becomes quiet.", 3)
- affected++
- if(prob(1))
- C.disabilities |= DEAF
- if(affected)
- usr.say("Sti[pick("'","`")] kaliedir!")
- to_chat(usr, "\red The world becomes quiet as the deafening rune dissipates into fine dust.")
- qdel(src)
- else
- return fizzle()
- else
- var/affected = 0
- for(var/mob/living/carbon/C in range(7,usr))
- if(iscultist(C))
- continue
- var/obj/item/weapon/nullrod/N = locate() in C
- if(N)
- continue
- C.adjustEarDamage(0,30)
- //talismans is weaker.
- C.show_message("\red The world around you suddenly becomes quiet.", 3)
- affected++
- if(affected)
- usr.whisper("Sti[pick("'","`")] kaliedir!")
- to_chat(usr, "\red Your talisman turns into gray dust, deafening everyone around.")
- for(var/mob/V in orange(1,src))
- if(!(iscultist(V)))
- V.show_message("\red Dust flows from [usr]'s hands for a moment, and the world suddenly becomes quiet..", 3)
- return
-
-/obj/effect/rune/proc/blind()
- if(istype(src,/obj/effect/rune))
- var/affected = 0
- for(var/mob/living/carbon/C in viewers(src))
- if(iscultist(C))
- continue
- var/obj/item/weapon/nullrod/N = locate() in C
- if(N)
- continue
- C.eye_blurry += 50
- C.eye_blind += 20
- if(prob(5))
- C.disabilities |= NEARSIGHTED
- if(prob(10))
- C.disabilities |= BLIND
- C.show_message("\red Suddenly you see red flash that blinds you.", 3)
- affected++
- if(affected)
- usr.say("Sti[pick("'","`")] kaliesin!")
- to_chat(usr, "\red The rune flashes, blinding those who not follow the Nar-Sie, and dissipates into fine dust.")
- qdel(src)
- else
- return fizzle()
- else
- var/affected = 0
- for(var/mob/living/carbon/C in view(2,usr))
- if(iscultist(C))
- continue
- var/obj/item/weapon/nullrod/N = locate() in C
- if(N)
- continue
- C.eye_blurry += 30
- C.eye_blind += 10
- //talismans is weaker.
- affected++
- C.show_message("\red You feel a sharp pain in your eyes, and the world disappears into darkness..", 3)
- if(affected)
- usr.whisper("Sti[pick("'","`")] kaliesin!")
- to_chat(usr, "\red Your talisman turns into gray dust, blinding those who not follow the Nar-Sie.")
- return
-
-
-/obj/effect/rune/proc/bloodboil() //cultists need at least one DANGEROUS rune. Even if they're all stealthy.
/*
- var/list/mob/living/carbon/cultists = new
- for(var/datum/mind/H in ticker.mode.cult)
- if(istype(H.current,/mob/living/carbon))
- cultists+=H.current
+This file contains runes.
+Runes are used by the cult to cause many different effects and are paramount to their success.
+They are drawn with an arcane tome in blood, and are distinguishable to cultists and normal crew by examining.
+Fake runes can be drawn in crayon to fool people.
+Runes can either be invoked by one's self or with many different cultists. Each rune has a specific incantation that the cultists will say when invoking it.
+To draw a rune, use an arcane tome.
*/
- var/culcount = 0 //also, wording for it is old wording for obscure rune, which is now hide-see-blood.
-// var/list/cultboil = list(cultists-usr) //and for this words are destroy-see-blood.
- for(var/mob/living/carbon/C in orange(1,src))
- if(iscultist(C) && !C.stat)
- culcount++
- if(culcount>=3)
- for(var/mob/living/carbon/M in viewers(usr))
- if(iscultist(M))
- continue
- var/obj/item/weapon/nullrod/N = locate() in M
- if(N)
- continue
- cult_log(": Blood Boil damaged [key_name_admin(M)].")
- M.take_overall_damage(51,51)
- to_chat(M, "\red Your blood boils!")
- if(prob(5))
- spawn(5)
- M.gib()
- for(var/obj/effect/rune/R in view(src))
- if(prob(10))
- explosion(R.loc, -1, 0, 1, 5)
- for(var/mob/living/carbon/human/C in orange(1,src))
- if(iscultist(C) && !C.stat)
- C.say("Dedo ol[pick("'","`")]btoh!")
- C.take_overall_damage(15, 0)
+
+/obj/effect/rune
+ name = "rune"
+ var/cultist_name = "basic rune"
+ desc = "An odd collection of symbols drawn in what seems to be blood."
+ var/cultist_desc = "a basic rune with no function." //This is shown to cultists who examine the rune in order to determine its true purpose.
+ anchored = 1
+ icon = 'icons/obj/rune.dmi'
+ icon_state = "1"
+ var/visibility = 0
+ var/view_range = 7
+ unacidable = 1
+ layer = TURF_LAYER
+
+ var/invocation = "Aiy ele-mayo!" //This is said by cultists when the rune is invoked.
+ var/req_cultists = 1 //The amount of cultists required around the rune to invoke it. If only 1, any cultist can invoke it.
+ var/rune_in_use = 0 // Used for some runes, this is for when you want a rune to not be usable when in use.
+
+ var/scribe_delay = 50 //how long the rune takes to create
+ var/scribe_damage = 0.1 //how much damage you take doing it
+
+ var/allow_excess_invokers = 0 //if we allow excess invokers when being invoked
+ var/construct_invoke = 1 //if constructs can invoke it
+
+ var/req_keyword = 0 //If the rune requires a keyword - go figure amirite
+ var/keyword //The actual keyword for the rune
+
+
+/obj/effect/rune/New(loc, set_keyword)
+ ..()
+ if(set_keyword)
+ keyword = set_keyword
+ check_icon()
+ var/image/blood = image(loc = src)
+ blood.override = 1
+ for(var/mob/living/silicon/ai/AI in player_list)
+ AI.client.images += blood
+
+/obj/effect/rune/examine(mob/user)
+ ..()
+ if(iscultist(user) || user.stat == DEAD) //If they're a cultist or a ghost, tell them the effects
+ to_chat(user, "Name: [cultist_name]")
+ to_chat(user, "Effects: [capitalize(cultist_desc)]")
+ to_chat(user, "Required Acolytes: [req_cultists]")
+ if(req_keyword && keyword)
+ to_chat(user, "Keyword: [keyword]")
+
+/obj/effect/rune/attackby(obj/I, mob/user, params)
+ if(istype(I, /obj/item/weapon/tome) && iscultist(user))
+ to_chat(user, "You carefully erase the [lowertext(cultist_name)] rune.")
qdel(src)
- else
- return fizzle()
- return
-
-// WIP rune, I'll wait for Rastaf0 to add limited blood.
-
-/obj/effect/rune/proc/burningblood()
- var/culcount = 0
- for(var/mob/living/carbon/C in orange(1,src))
- if(iscultist(C) && !C.stat)
- culcount++
- if(culcount >= 5)
- for(var/obj/effect/rune/R in world)
- if(R.blood_DNA == src.blood_DNA)
- for(var/mob/living/M in orange(2,R))
- M.take_overall_damage(0,15)
- if(R.invisibility>M.see_invisible)
- to_chat(M, "\red Aargh it burns!")
- else
- to_chat(M, "\red Rune suddenly ignites, burning you!")
- var/turf/T = get_turf(R)
- T.hotspot_expose(700,125)
- for(var/obj/effect/decal/cleanable/blood/B in world)
- if(B.blood_DNA == src.blood_DNA)
- for(var/mob/living/M in orange(1,B))
- M.take_overall_damage(0,5)
- to_chat(M, "\red Blood suddenly ignites, burning you!")
- var/turf/T = get_turf(B)
- T.hotspot_expose(700,125)
- qdel(B)
+ return
+ else if(istype(I, /obj/item/weapon/nullrod))
+ if(iscultist(user))//cultist..what are doing..cultist..staph...
+ user.drop_item()
+ user.visible_message("[I] suddenly glows with white light, forcing [user] to drop it in pain!", \
+ "[I] suddenly glows with a white light that sears your hand, forcing you to drop it!")
+ return
+ to_chat(user,"You disrupt the magic of [src] with [I].")
qdel(src)
-
-////////// Rune 24 (counting burningblood, which kinda doesnt work yet.)
-
-/obj/effect/rune/proc/runestun(var/mob/living/T as mob)
- if(istype(src,/obj/effect/rune)) ///When invoked as rune, flash and stun everyone around.
- usr.say("Fuu ma[pick("'","`")]jin!")
- for(var/mob/living/L in viewers(src))
-
- if(iscarbon(L))
- var/mob/living/carbon/C = L
- C.flash_eyes()
- if(C.stuttering < 1 && (!(HULK in C.mutations)))
- C.stuttering = 1
- C.Weaken(1)
- C.Stun(1)
- C.show_message("\red The rune explodes in a bright flash.", 3)
-
- else if(issilicon(L))
- var/mob/living/silicon/S = L
- S.Weaken(5)
- S.show_message("\red BZZZT... The rune has exploded in a bright flash.", 3)
- qdel(src)
- else ///When invoked as talisman, stun and mute the target mob.
- usr.say("Dream sign ''Evil sealing talisman'[pick("'","`")]!")
- var/obj/item/weapon/nullrod/N = locate() in T
- if(N)
- for(var/mob/O in viewers(T, null))
- O.show_message(text("\red [] invokes a talisman at [], but they are unaffected!", usr, T), 1)
- else
- for(var/mob/O in viewers(T, null))
- O.show_message(text("\red [] invokes a talisman at []", usr, T), 1)
-
- if(issilicon(T))
- T.Weaken(10)
-
- else if(iscarbon(T))
- var/mob/living/carbon/C = T
- C.flash_eyes()
- if(!(HULK in C.mutations))
- C.silent += 15
- C.Weaken(10)
- C.Stun(10)
return
-/////////////////////////////////////////TWENTY-FIFTH RUNE
-
-/obj/effect/rune/proc/armor()
- var/mob/living/carbon/human/user = usr
- if(istype(src,/obj/effect/rune))
- usr.say("N'ath reth sh'yro eth d[pick("'","`")]raggathnor!")
+/obj/effect/rune/attack_hand(mob/living/user)
+ if(!iscultist(user))
+ to_chat(user, "You aren't able to understand the words of [src].")
+ return
+ var/list/invokers = can_invoke(user)
+ if(invokers.len >= req_cultists)
+ invoke(invokers)
else
- usr.whisper("N'ath reth sh'yro eth d[pick("'","`")]raggathnor!")
- usr.visible_message("\red The rune disappears with a flash of red light, and a set of armor appears on [usr]...", \
- "\red You are blinded by the flash of red light! After you're able to see again, you see that you are now wearing a set of armor.")
+ fail_invoke(user)
- user.equip_to_slot_or_del(new /obj/item/clothing/suit/hooded/cultrobes/alt(user), slot_wear_suit)
- user.equip_to_slot_or_del(new /obj/item/clothing/shoes/cult(user), slot_shoes)
- user.equip_to_slot_or_del(new /obj/item/weapon/storage/backpack/cultpack(user), slot_back)
- //the above update their overlay icons cache but do not call update_icons()
- //the below calls update_icons() at the end, which will update overlay icons by using the (now updated) cache
- user.put_in_hands(new /obj/item/weapon/melee/cultblade(user)) //put in hands or on floor
+/obj/effect/rune/attack_animal(mob/living/simple_animal/M)
+ if(istype(M, /mob/living/simple_animal/shade) || istype(M, /mob/living/simple_animal/hostile/construct))
+ if(construct_invoke || !iscultist(M)) //if you're not a cult construct we want the normal fail message
+ attack_hand(M)
+ else
+ to_chat(M, "You are unable to invoke the rune!")
+
+/obj/effect/rune/proc/talismanhide() //for talisman of revealing/hiding
+ visible_message("[src] fades away.")
+ invisibility = INVISIBILITY_OBSERVER
+ alpha = 100 //To help ghosts distinguish hidden runes
+
+/obj/effect/rune/proc/talismanreveal() //for talisman of revealing/hiding
+ invisibility = 0
+ visible_message("[src] suddenly appears!")
+ alpha = initial(alpha)
+
+/obj/effect/rune/proc/talismanfake() //for rune disguising
+ var/runenum = pick(1,2,3,4,5,6)
+ visible_message("[src] takes on a waxy apperance!")
+ icon = 'icons/effects/crayondecal.dmi'
+ icon_state = "rune[runenum]"
+ color = rgb(255, 0, 0)
+
+/*
+There are a few different procs each rune runs through when a cultist activates it.
+can_invoke() is called when a cultist activates the rune with an empty hand. If there are multiple cultists, this rune determines if the required amount is nearby.
+invoke() is the rune's actual effects.
+fail_invoke() is called when the rune fails, via not enough people around or otherwise. Typically this just has a generic 'fizzle' effect.
+structure_check() searches for nearby cultist structures required for the invocation. Proper structures are pylons, forges, archives, and altars.
+*/
+
+/obj/effect/rune/proc/can_invoke(var/mob/living/user)
+ //This proc determines if the rune can be invoked at the time. If there are multiple required cultists, it will find all nearby cultists.
+ var/list/invokers = list() //people eligible to invoke the rune
+ var/list/chanters = list() //people who will actually chant the rune when passed to invoke()
+ chanters |= user
+ invokers |= user
+ if(req_cultists > 1 || allow_excess_invokers)
+ for(var/mob/living/L in range(1, src))
+ if(iscultist(L))
+ if(L == user)
+ continue
+ if(ishuman(L))
+ var/mob/living/carbon/human/H = L
+ if((H.disabilities & MUTE) || H.silent)
+ continue
+ if(L.stat)
+ continue
+ invokers |= L
+ if(invokers.len >= req_cultists)
+ if(allow_excess_invokers)
+ chanters |= invokers
+ else
+ invokers -= user
+ shuffle(invokers)
+ for(var/i in 0 to req_cultists)
+ var/L = pick_n_take(invokers)
+ chanters |= L
+ return chanters
+
+/obj/effect/rune/proc/invoke(var/list/invokers)
+ //This proc contains the effects of the rune as well as things that happen afterwards. If you want it to spawn an object and then delete itself, have both here.
+ if(invocation)
+ for(var/M in invokers)
+ var/mob/living/L = M
+ L.say(invocation)
+ var/oldtransform = transform
+ spawn(0) //animate is a delay, we want to avoid being delayed
+ animate(transform = matrix()*2, alpha = 0, time = 5) //fade out
+ animate(transform = oldtransform, alpha = 255, time = 0)
+
+/obj/effect/rune/proc/fail_invoke(var/mob/living/user)
+ //This proc contains the effects of a rune if it is not invoked correctly, through either invalid wording or not enough cultists. By default, it's just a basic fizzle.
+ visible_message("The markings pulse with a small flash of red light, then fall dark.")
+ spawn(0) //animate is a delay, we want to avoid being delayed
+ animate(src, color = rgb(255, 0, 0), time = 0)
+ animate(src, color = initial(color), time = 5)
+
+//Malformed Rune: This forms if a rune is not drawn correctly. Invoking it does nothing but hurt the user.
+/obj/effect/rune/malformed
+ cultist_name = "malformed rune"
+ cultist_desc = "a senseless rune written in gibberish. No good can come from invoking this."
+ invocation = "Ra'sha yoka!"
+
+/obj/effect/rune/malformed/invoke(var/list/invokers)
+ ..()
+ for(var/M in invokers)
+ var/mob/living/L = M
+ to_chat(M, "You feel your life force draining. [ticker.mode.cultdat.entity_title3] is displeased.")
+ L.apply_damage(30, BRUTE)
qdel(src)
+
+/mob/proc/null_rod_check() //The null rod, if equipped, will protect the holder from the effects of most runes
+ var/obj/item/weapon/nullrod/N = locate() in src
+ if(N)
+ return N
+ return 0
+
+//Rite of Binding: A paper on top of the rune to a talisman.
+/obj/effect/rune/imbue
+ cultist_name = "Rite of Binding"
+ cultist_desc = "transforms paper into powerful magic talismans."
+ invocation = "H'drak v'loso, mir'kanas verbot!"
+ icon_state = "3"
+
+/obj/effect/rune/imbue/invoke(var/list/invokers)
+ var/mob/living/user = invokers[1] //the first invoker is always the user
+ var/turf/T = get_turf(src)
+ var/list/papers_on_rune = list()
+ var/entered_talisman_name
+ var/obj/item/weapon/paper/talisman/talisman_type
+ var/list/possible_talismans = list()
+ for(var/obj/item/weapon/paper/P in T)
+ if(!P.info)
+ papers_on_rune.Add(P)
+ if(!papers_on_rune.len)
+ to_chat(user, "There must be a blank paper on top of [src]!")
+ fail_invoke()
+ log_game("Talisman Creation rune failed - no blank papers on rune")
+ return
+ if(rune_in_use)
+ to_chat(user, "[src] can only support one ritual at a time!")
+ fail_invoke()
+ log_game("Talisman Creation rune failed - already in use")
+ return
+ var/obj/item/weapon/paper/paper_to_imbue = pick(papers_on_rune)
+ for(var/I in subtypesof(/obj/item/weapon/paper/talisman) - /obj/item/weapon/paper/talisman/malformed - /obj/item/weapon/paper/talisman/supply - /obj/item/weapon/paper/talisman/supply/weak)
+ var/obj/item/weapon/paper/talisman/J = I
+ var/talisman_cult_name = initial(J.cultist_name)
+ if(talisman_cult_name)
+ possible_talismans[talisman_cult_name] = J //This is to allow the menu to let cultists select talismans by name
+ entered_talisman_name = input(user, "Choose a talisman to imbue.", "Talisman Choices") as null|anything in possible_talismans
+ talisman_type = possible_talismans[entered_talisman_name]
+ if(!Adjacent(user) || !src || qdeleted(src) || user.incapacitated() || rune_in_use || !talisman_type)
+ return
+ ..()
+ visible_message("Dark power begins to channel into the paper!.")
+ rune_in_use = 1
+ if(!do_after(user, 100, target = get_turf(user)))
+ rune_in_use = 0
+ return
+ new talisman_type(get_turf(src))
+ visible_message("[src] glows with power, and bloody images form themselves on [paper_to_imbue].")
+ qdel(paper_to_imbue)
+ rune_in_use = 0
+
+var/list/teleport_runes = list()
+/obj/effect/rune/teleport
+ cultist_name = "Teleport"
+ cultist_desc = "warps everything above it to another chosen teleport rune."
+ invocation = "Sas'so c'arta forbici!"
+ icon_state = "2"
+ req_keyword = 1
+ var/listkey
+
+/obj/effect/rune/teleport/New(loc, set_keyword)
+ ..()
+ var/area/A = get_area(src)
+ var/locname = initial(A.name)
+ listkey = set_keyword ? "[set_keyword] [locname]":"[locname]"
+ teleport_runes += src
+
+/obj/effect/rune/teleport/Destroy()
+ teleport_runes -= src
+ return ..()
+
+/obj/effect/rune/teleport/invoke(var/list/invokers)
+ var/mob/living/user = invokers[1] //the first invoker is always the user
+ var/list/potential_runes = list()
+ var/list/teleportnames = list()
+ var/list/duplicaterunecount = list()
+ for(var/R in teleport_runes)
+ var/obj/effect/rune/teleport/T = R
+ var/resultkey = T.listkey
+ if(resultkey in teleportnames)
+ duplicaterunecount[resultkey]++
+ resultkey = "[resultkey] ([duplicaterunecount[resultkey]])"
+ else
+ teleportnames.Add(resultkey)
+ duplicaterunecount[resultkey] = 1
+ if(T != src && (T.z <= MAX_Z))
+ potential_runes[resultkey] = T
+
+ if(!potential_runes.len)
+ to_chat(user, "There are no valid runes to teleport to!")
+ log_game("Teleport rune failed - no other teleport runes")
+ fail_invoke()
+ return
+
+ if(user.z > MAX_Z)
+ to_chat(user, "You are not in the right dimension!")
+ log_game("Teleport rune failed - user in away mission")
+ fail_invoke()
+ return
+
+ var/input_rune_key = input(user, "Choose a rune to teleport to.", "Rune to Teleport to") as null|anything in potential_runes //we know what key they picked
+ var/obj/effect/rune/teleport/actual_selected_rune = potential_runes[input_rune_key] //what rune does that key correspond to?
+ if(!Adjacent(user) || !src || qdeleted(src) || user.incapacitated() || !actual_selected_rune)
+ fail_invoke()
+ return
+
+ var/turf/T = get_turf(src)
+ var/movedsomething = 0
+ var/moveuserlater = 0
+ for(var/atom/movable/A in T)
+ if(A == user)
+ moveuserlater = 1
+ movedsomething = 1
+ continue
+ if(!A.anchored)
+ movedsomething = 1
+ A.forceMove(get_turf(actual_selected_rune))
+ if(movedsomething)
+ ..()
+ visible_message("There is a sharp crack of inrushing air, and everything above the rune disappears!")
+ to_chat(user, "You[moveuserlater ? "r vision blurs, and you suddenly appear somewhere else":" send everything above the rune away"].")
+ if(moveuserlater)
+ user.forceMove(get_turf(actual_selected_rune))
+ else
+ fail_invoke()
+
+
+//Rite of Enlightenment: Converts a normal crewmember to the cult. Faster for every cultist nearby.
+/obj/effect/rune/convert
+ cultist_name = "Rite of Enlightenment"
+ cultist_desc = "converts a normal crewmember on top of it to the cult. Does not work on loyalty-implanted crew."
+ invocation = "Mah'weyh pleggh at e'ntrath!"
+ icon_state = "3"
+ req_cultists = 2
+
+/obj/effect/rune/convert/invoke(var/list/invokers)
+ var/list/convertees = list()
+ var/turf/T = get_turf(src)
+ for(var/mob/living/M in T.contents)
+ if(!iscultist(M) && !isloyal(M))
+ convertees.Add(M)
+ if(!convertees.len)
+ fail_invoke()
+ log_game("Convert rune failed - no eligible convertees")
+ return
+ var/mob/living/new_cultist = pick(convertees)
+ if(!is_convertable_to_cult(new_cultist.mind) || new_cultist.null_rod_check())
+ for(var/M in invokers)
+ to_chat(M, "Something is shielding [new_cultist]'s mind!")
+ if(is_sacrifice_target(new_cultist.mind))
+ to_chat(M, "\"I desire this one for myself. SACRIFICE THEM!\"")
+ fail_invoke()
+ log_game("Convert rune failed - convertee could not be converted")
+ return
+ ..()
+ new_cultist.visible_message("[new_cultist] writhes in pain as the markings below them glow a bloody red!", \
+ "AAAAAAAAAAAAAA-")
+ ticker.mode.add_cultist(new_cultist.mind, 1)
+ new /obj/item/weapon/tome(get_turf(src))
+ new_cultist.mind.special_role = "Cultist"
+ to_chat(new_cultist, "Your blood pulses. Your head throbs. The world goes red. All at once you are aware of a horrible, horrible, truth. The veil of reality has been ripped away \
+ and something evil takes root.")
+ to_chat(new_cultist, "Assist your new compatriots in their dark dealings. Your goal is theirs, and theirs is yours. You serve [ticker.mode.cultdat.entity_title3] above all else. Bring it back.\
+ ")
+
+//Rite of Tribute: Sacrifices a crew member to Nar-Sie. Places them into a soul shard if they're in their body.
+/obj/effect/rune/sacrifice
+ cultist_name = "Rite of Tribute"
+ cultist_desc = "sacrifices a crew member to your god. May place them into a soul shard if their spirit remains in their body."
+ icon_state = "3"
+ allow_excess_invokers = 1
+ invocation = "Barhah hra zar'garis!"
+ rune_in_use = 0
+
+/obj/effect/rune/sacrifice/New()
+ ..()
+ cultist_desc = "sacrifices a crew member to [ticker.mode.cultdat.entity_title3]. May place them into a soul shard if their spirit remains in their body."
+
+/obj/effect/rune/sacrifice/invoke(var/list/invokers)
+ if(rune_in_use)
+ return
+ rune_in_use = 1
+ var/mob/living/user = invokers[1] //the first invoker is always the user
+ var/turf/T = get_turf(src)
+ var/list/possible_targets = list()
+ for(var/mob/living/M in T.contents)
+ if(M.mind)
+ if(M.mind in sacrificed)
+ continue
+ if(!iscultist(M))
+ possible_targets.Add(M)
+ var/mob/offering
+ if(possible_targets.len > 1) //If there's more than one target, allow choice
+ offering = input(user, "Choose an offering to sacrifice.", "Unholy Tribute") as null|anything in possible_targets
+ if(!Adjacent(user) || !src || qdeleted(src) || user.incapacitated())
+ return
+ else if(possible_targets.len) //Otherwise, if there's a target at all, pick the only one
+ offering = possible_targets[possible_targets.len]
+ if(!offering)
+ rune_in_use = 0
+ return
+ if(((ishuman(offering) || isrobot(offering)) && offering.stat != DEAD) || is_sacrifice_target(offering.mind)) //Requires three people to sacrifice living targets
+ if(invokers.len < 3)
+ for(var/M in invokers)
+ to_chat(M, "[offering] is too greatly linked to the world! You need three acolytes!")
+ fail_invoke()
+ log_game("Sacrifice rune failed - not enough acolytes and target is living")
+ rune_in_use = 0
+ return
+ visible_message("[src] pulses blood red!")
+ color = rgb(126, 23, 23)
+ ..()
+ sac(invokers, offering)
+ color = initial(color)
+
+/obj/effect/rune/sacrifice/proc/sac(var/list/invokers, mob/living/T)
+ var/sacrifice_fulfilled
+ if(T)
+ if(istype(T, /mob/living/simple_animal/pet/corgi))
+ for(var/M in invokers)
+ var/mob/living/L = M
+ to_chat(L, "\"Even I have standards, such as they are!\"")
+ if(L.reagents)
+ L.reagents.add_reagent("hell_water", 2)
+ if(T.mind)
+ sacrificed.Add(T.mind)
+ if(is_sacrifice_target(T.mind))
+ sacrifice_fulfilled = 1
+ new /obj/effect/overlay/temp/cult/sac(loc)
+ for(var/M in invokers)
+ if(sacrifice_fulfilled)
+ to_chat(M, "\"Yes! This is the one I desire! You have done well.\"")
+ else
+ if(ishuman(T) || isrobot(T))
+ to_chat(M, "\"I accept this sacrifice.\"")
+ else
+ to_chat(M, "\"I accept this meager sacrifice.\"")
+ if(T.mind)
+ var/obj/item/device/soulstone/stone = new /obj/item/device/soulstone(get_turf(src))
+ stone.invisibility = INVISIBILITY_MAXIMUM //so it's not picked up during transfer_soul()
+ if(!stone.transfer_soul("FORCE", T, usr)) //If it cannot be added
+ qdel(stone)
+ if(stone)
+ stone.invisibility = 0
+ if(!T)
+ rune_in_use = 0
+ return
+ if(isrobot(T))
+ playsound(T, 'sound/effects/EMPulse.ogg', 100, 1)
+ T.dust() //To prevent the MMI from remaining
+ else
+ playsound(T, 'sound/magic/Disintegrate.ogg', 100, 1)
+ T.gib()
+ rune_in_use = 0
+
+//Ritual of Dimensional Rending: Calls forth the avatar of Nar-Sie upon the station.
+/obj/effect/rune/narsie
+ cultist_name = "Tear Reality (God)"
+ cultist_desc = "tears apart dimensional barriers, calling forth your god. Requires 9 invokers."
+ invocation = "TOK-LYR RQA-NAP G'OLT-ULOFT!!"
+ req_cultists = 9
+ icon = 'icons/effects/96x96.dmi'
+ color = rgb(125,23,23)
+ icon_state = "rune_large"
+ pixel_x = -32 //So the big ol' 96x96 sprite shows up right
+ pixel_y = -32
+ mouse_opacity = 1 //we're huge and easy to click
+ scribe_delay = 450 //how long the rune takes to create
+ scribe_damage = 40.1 //how much damage you take doing it
+ var/used
+
+/obj/effect/rune/narsie/New()
+ ..()
+ cultist_name = "Summon [ticker.mode.cultdat.entity_name]"
+ cultist_desc = "tears apart dimensional barriers, calling forth [ticker.mode.cultdat.entity_title3]. Requires 9 invokers."
+
+
+/obj/effect/rune/narsie/check_icon()
return
+
+/obj/effect/rune/narsie/talismanhide() //can't hide this, and you wouldn't want to
+ return
+
+/obj/effect/rune/narsie/invoke(var/list/invokers)
+ if(used)
+ return
+ var/mob/living/user = invokers[1]
+ if(istype(ticker.mode.name, "cult"))
+ var/datum/game_mode/cult/cult_mode = ticker.mode
+ if(user.z != ZLEVEL_STATION)
+ message_admins("[user.real_name]([user.ckey]) tried to summon Nar-Sie off station")
+ for(var/M in invokers)
+ var/mob/living/L = M
+ to_chat(L, "\"YOUR SOUL BURNS WITH YOUR ARROGANCE!!!\"")
+ if(L.reagents)
+ L.reagents.add_reagent("hell_water", 10)
+ L.Weaken(7)
+ L.Stun(7)
+ fail_invoke()
+ log_game("Summon Nar-Sie rune failed - off station Z level")
+ return
+ if(!cult_mode.eldergod)
+ for(var/M in invokers)
+ to_chat(M, "[ticker.mode.cultdat.entity_name] is already on this plane!")
+ log_game("Summon Nar-Sie rune failed - already summoned")
+ return
+ //BEGIN THE SUMMONING
+ used = 1
+ color = rgb(255, 0, 0)
+ ..()
+ world << 'sound/effects/dimensional_rend.ogg'
+ to_chat(world, "The veil... is... TORN!!!--")
+ icon_state = "rune_large_distorted"
+ var/turf/T = get_turf(src)
+ sleep(40)
+ new /obj/singularity/narsie/large(T) //Causes Nar-Sie to spawn even if the rune has been removed
+ cult_mode.eldergod = 0
+
+/obj/effect/rune/narsie/attackby(obj/I, mob/user, params) //Since the narsie rune takes a long time to make, add logging to removal.
+ if((istype(I, /obj/item/weapon/tome) && iscultist(user)))
+ user.visible_message("[user.name] begins erasing the [src]...", "You begin erasing the [src]...")
+ if(do_after(user, 50, target = src)) //Prevents accidental erasures.
+ log_game("Summon Narsie rune erased by [user.mind.key] (ckey) with a tome")
+ message_admins("[key_name_admin(user)] erased a Narsie rune with a tome")
+ ..()
+ return
+ else
+ if(istype(I, /obj/item/weapon/nullrod)) //Begone foul magiks. You cannot hinder me.
+ log_game("Summon Narsie rune erased by [user.mind.key] (ckey) using a null rod")
+ message_admins("[key_name_admin(user)] erased a Narsie rune with a null rod")
+ ..()
+ return
+
+
+
+/obj/effect/rune/slaughter
+ cultist_name = "Call Forth The Slaughter (Demons)"
+ cultist_desc = "Calls forth the doom of a eldrtich being. Three slaughter demons will appear to wreak havoc on the station."
+ invocation = null
+ req_cultists = 9
+ color = rgb(125,23,23)
+ scribe_delay = 450
+ scribe_damage = 40.1 //how much damage you take doing it
+ icon = 'icons/effects/96x96.dmi'
+ icon_state = "rune_large"
+ pixel_x = -32
+ pixel_y = -32
+
+ var/used = 0
+
+/obj/effect/rune/slaughter/check_icon()
+ return
+
+/obj/effect/rune/slaughter/talismanhide() //can't hide this, and you wouldn't want to
+ return
+
+/obj/effect/rune/slaughter/attackby(obj/I, mob/user, params) //Since the narsie rune takes a long time to make, add logging to removal.
+ if((istype(I, /obj/item/weapon/tome) && iscultist(user)))
+ user.visible_message("[user.name] begins erasing the [src]...", "You begin erasing the [src]...")
+ if(do_after(user, 50, target = src)) //Prevents accidental erasures.
+ log_game("Summon demon rune erased by [user.mind.key] (ckey) with a tome")
+ message_admins("[key_name_admin(user)] erased a demon rune with a tome")
+ ..()
+ return
+ else
+ if(istype(I, /obj/item/weapon/nullrod)) //Begone foul magiks. You cannot hinder me.
+ log_game("Summon demon rune erased by [user.mind.key] (ckey) using a null rod")
+ message_admins("[key_name_admin(user)] erased a demon rune with a null rod")
+ ..()
+ return
+
+
+/obj/effect/rune/slaughter/invoke(var/list/invokers)
+ if(used)
+ return
+ var/mob/living/user = invokers[1]
+ if(istype(ticker.mode.name, "cult"))
+ var/datum/game_mode/cult/cult_mode = ticker.mode
+ if(!("slaughter" in cult_mode.objectives))
+ message_admins("[usr.real_name]([user.ckey]) tried to summon demons when the objective was wrong")
+ for(var/M in invokers)
+ var/mob/living/L = M
+ to_chat(L, "\"YOUR SOUL BURNS WITH YOUR ARROGANCE!!!\"")
+ if(L.reagents)
+ L.reagents.add_reagent("hell_water", 10)
+ L.Weaken(7)
+ L.Stun(7)
+ fail_invoke()
+ log_game("Summon Demons rune failed - improper objective")
+ return
+ if(user.z != ZLEVEL_STATION)
+ message_admins("[user.real_name]([user.ckey]) tried to summon demons off station")
+ for(var/M in invokers)
+ var/mob/living/L = M
+ to_chat(L, "\"YOUR SOUL BURNS WITH YOUR ARROGANCE!!!\"")
+ if(L.reagents)
+ L.reagents.add_reagent("hell_water", 10)
+ L.Weaken(7)
+ L.Stun(7)
+ fail_invoke()
+ log_game("Summon demons rune failed - off station Z level")
+ return
+ if(cult_mode.demons_summoned)
+ for(var/M in invokers)
+ to_chat(M, "Demons are already on this plane!")
+ log_game("Summon Demons rune failed - already summoned")
+ return
+ //BEGIN THE SLAUGHTER
+ used = 1
+ for(var/mob/living/M in range(1,src))
+ if(iscultist(M))
+ M.say("TOK-LYR RQA-NAP SHA-NEX!!")
+ world << 'sound/effects/dimensional_rend.ogg'
+ to_chat(world, "A hellish cacaphony bombards from all around as something awful tears through the world...")
+ icon_state = "rune_large_distorted"
+ sleep(55)
+ to_chat(world, "\"LIBREATE TE EX INFERIS!\"")//Fethas note:I COULDN'T HELP IT OKAY?!
+ visible_message("[src] melts away into blood, and three horrific figures emerge from within!")
+ var/turf/T = get_turf(src)
+ new /mob/living/simple_animal/slaughter/cult(T)
+ new /mob/living/simple_animal/slaughter/cult(T, pick(NORTH, EAST, SOUTH, WEST))
+ new /mob/living/simple_animal/slaughter/cult(T, pick(NORTHEAST, SOUTHEAST, NORTHWEST, SOUTHWEST))
+ cult_mode.demons_summoned = 1
+ shuttle_master.emergency.request(null, 0.5,null)
+ cult_mode.third_phase()
+ qdel(src)
+
+
+//Rite of Resurrection: Requires two corpses. Revives one and gibs the other.
+/obj/effect/rune/raise_dead
+ cultist_name = "Rite of Resurrection"
+ cultist_desc = "requires two corpses, one on the rune and one adjacent to the rune. The one on the rune is brought to life, the other is turned to ash."
+ invocation = null //Depends on the name of the user - see below
+ icon_state = "1"
+
+/obj/effect/rune/raise_dead/invoke(var/list/invokers)
+ var/turf/T = get_turf(src)
+ var/mob/living/mob_to_sacrifice
+ var/mob/living/mob_to_revive
+ var/list/potential_sacrifice_mobs = list()
+ var/list/potential_revive_mobs = list()
+ var/mob/living/user = invokers[1]
+ if(rune_in_use)
+ return
+ for(var/mob/living/M in orange(1,src))
+ if(M.stat == DEAD && !iscultist(M))
+ potential_sacrifice_mobs.Add(M)
+ if(!potential_sacrifice_mobs.len)
+ to_chat(user, "There are no eligible sacrifices nearby!")
+ log_game("Raise Dead rune failed - no catalyst corpse")
+ return
+ mob_to_sacrifice = input(user, "Choose a corpse to sacrifice.", "Corpse to Sacrifice") as null|anything in potential_sacrifice_mobs
+ if(!Adjacent(user) || !src || qdeleted(src) || user.incapacitated() || !mob_to_revive || !mob_to_sacrifice || rune_in_use)
+ return
+ for(var/mob/living/M in T.contents)
+ if(M.stat == DEAD)
+ potential_revive_mobs.Add(M)
+ if(!potential_revive_mobs.len)
+ to_chat(user, "There is no eligible revival target on the rune!")
+ log_game("Raise Dead rune failed - no corpse to revived")
+ return
+ mob_to_revive = input(user, "Choose a corpse to revive.", "Corpse to Revive") as null|anything in potential_revive_mobs
+ if(!Adjacent(user) || !src || qdeleted(src) || user.incapacitated() || rune_in_use)
+ return
+ if(!in_range(mob_to_sacrifice,src))
+ to_chat(user, "The sacrificial target has been moved!")
+ fail_invoke()
+ log_game("Raise Dead rune failed - catalyst corpse moved")
+ return
+ if(!(mob_to_revive in T.contents))
+ to_chat(user, "The corpse to revive has been moved!")
+ fail_invoke()
+ log_game("Raise Dead rune failed - revival target moved")
+ return
+ if(mob_to_sacrifice.stat != DEAD)
+ to_chat(user, "The sacrificial target must be dead!")
+ fail_invoke()
+ log_game("Raise Dead rune failed - catalyst corpse is not dead")
+ return
+ rune_in_use = 1
+ if(user.name == "Herbert West")
+ user.say("To life, to life, I bring them!")
+ else
+ user.say("Pasnar val'keriam usinar. Savrae ines amutan. Yam'toth remium il'tarat!")
+ ..()
+ mob_to_sacrifice.visible_message("[mob_to_sacrifice]'s body rises into the air, connected to [mob_to_revive] by a glowing tendril!")
+ mob_to_revive.Beam(mob_to_sacrifice,icon_state="sendbeam",icon='icons/effects/effects.dmi',time=20)
+ sleep(20)
+ if(!mob_to_sacrifice || !in_range(mob_to_sacrifice, src))
+ mob_to_sacrifice.visible_message("[mob_to_sacrifice] disintegrates into a pile of bones")
+ return
+ mob_to_sacrifice.dust()
+ if(!mob_to_revive || mob_to_revive.stat != DEAD)
+ visible_message("The glowing tendril snaps against the rune with a shocking crack.")
+ rune_in_use = 0
+ return
+ mob_to_revive.revive() //This does remove disabilities and such, but the rune might actually see some use because of it!
+ to_chat(mob_to_revive, "\"PASNAR SAVRAE YAM'TOTH. Arise.\"")
+ mob_to_revive.visible_message("[mob_to_revive] draws in a huge breath, red light shining from their eyes.", \
+ "You awaken suddenly from the void. You're alive!")
+ rune_in_use = 0
+
+
+/obj/effect/rune/raise_dead/fail_invoke()
+ ..()
+ for(var/mob/living/M in range(1,src))
+ if(M.stat == DEAD)
+ M.visible_message("[M] twitches.")
+
+
+//Rite of Disruption: Emits an EMP blast.
+/obj/effect/rune/emp
+ cultist_name = "Rite of Disruption"
+ cultist_desc = "emits a large electromagnetic pulse, increasing in size for each cultist invoking it, hindering electronics and disabling silicons."
+ invocation = "Ta'gh fara'qha fel d'amar det!"
+ icon_state = "5"
+ allow_excess_invokers = 1
+
+/obj/effect/rune/emp/invoke(var/list/invokers)
+ var/turf/E = get_turf(src)
+ ..()
+ visible_message("[src] glows blue for a moment before vanishing.")
+ switch(invokers.len)
+ if(1 to 2)
+ playsound(E, 'sound/items/Welder2.ogg', 25, 1)
+ for(var/M in invokers)
+ to_chat(M, "You feel a minute vibration pass through you...")
+ if(3 to 6)
+ playsound(E, 'sound/effects/EMPulse.ogg', 50, 1)
+ for(var/M in invokers)
+ to_chat(M, "Your hair stands on end as a shockwave eminates from the rune!")
+ if(7 to INFINITY)
+ playsound(E, 'sound/effects/EMPulse.ogg', 100, 1)
+ for(var/M in invokers)
+ var/mob/living/L = M
+ to_chat(L, "You chant in unison and a colossal burst of energy knocks you backward!")
+ L.Weaken(2)
+ qdel(src) //delete before pulsing because it's a delay reee
+ empulse(E, 9*invokers.len, 12*invokers.len) // Scales now, from a single room to most of the station depending on # of chanters
+
+//Rite of Astral Communion: Separates one's spirit from their body. They will take damage while it is active.
+/obj/effect/rune/astral
+ cultist_name = "Astral Communion"
+ cultist_desc = "severs the link between one's spirit and body. This effect is taxing and one's physical body will take damage while this is active."
+ invocation = "Fwe'sh mah erl nyag r'ya!"
+ icon_state = "6"
+ rune_in_use = 0 //One at a time, please!
+ construct_invoke = 0
+ var/mob/living/affecting = null
+
+/obj/effect/rune/astral/examine(mob/user)
+ ..()
+ if(affecting)
+ to_chat(user, "A translucent field encases [user] above the rune!")
+
+/obj/effect/rune/astral/can_invoke(mob/living/user)
+ if(rune_in_use)
+ to_chat(user, "[src] cannot support more than one body!")
+ log_game("Astral Communion rune failed - more than one user")
+ return list()
+ var/turf/T = get_turf(src)
+ if(!user in T.contents)
+ to_chat(user, "You must be standing on top of [src]!")
+ log_game("Astral Communion rune failed - user not standing on rune")
+ return list()
+ return ..()
+
+/obj/effect/rune/astral/invoke(var/list/invokers)
+ var/mob/living/user = invokers[1]
+ ..()
+ var/turf/T = get_turf(src)
+ rune_in_use = 1
+ affecting = user
+ user.color = "#7e1717"
+ user.visible_message("[user] freezes statue-still, glowing an unearthly red.", \
+ "You see what lies beyond. All is revealed. While this is a wondrous experience, your physical form will waste away in this state. Hurry...")
+ user.ghostize(1)
+ while(user)
+ if(!affecting)
+ visible_message("[src] pulses gently before falling dark.")
+ affecting = null //In case it's assigned to a number or something
+ rune_in_use = 0
+ return
+ affecting.apply_damage(1, BRUTE)
+ if(!(user in T.contents))
+ user.visible_message("A spectral tendril wraps around [user] and pulls them back to the rune!")
+ Beam(user,icon_state="drainbeam",icon='icons/effects/effects.dmi',time=2)
+ user.forceMove(get_turf(src)) //NO ESCAPE :^)
+ if(user.key)
+ user.visible_message("[user] slowly relaxes, the glow around them dimming.", \
+ "You are re-united with your physical form. [src] releases its hold over you.")
+ user.color = initial(user.color)
+ user.Weaken(3)
+ rune_in_use = 0
+ affecting = null
+ return
+ if(user.stat == UNCONSCIOUS)
+ if(prob(10))
+ var/mob/dead/observer/G = user.get_ghost()
+ if(G)
+ to_chat(G, "You feel the link between you and your body weakening... you must hurry!")
+ if(user.stat == DEAD)
+ user.color = initial(user.color)
+ rune_in_use = 0
+ affecting = null
+ var/mob/dead/observer/G = user.get_ghost()
+ if(G)
+ to_chat(G, "You suddenly feel your physical form pass on. [src]'s exertion has killed you!")
+ return
+ sleep(10)
+ rune_in_use = 0
+
+
+//Rite of the Corporeal Shield: When invoked, becomes solid and cannot be passed. Invoke again to undo.
+/obj/effect/rune/wall
+ cultist_name = "Rite of the Corporeal Shield"
+ cultist_desc = "when invoked, makes an invisible wall to block passage. Can be invoked again to reverse this."
+ invocation = "Khari'd! Eske'te tannin!"
+ icon_state = "1"
+
+/obj/effect/rune/wall/examine(mob/user)
+ ..()
+ if(density)
+ to_chat(user, "There is a barely perceptible shimmering of the air above [src].")
+
+/obj/effect/rune/wall/invoke(var/list/invokers)
+ var/mob/living/user = invokers[1]
+ ..()
+ density = !density
+ user.visible_message("[user] places their hands on [src], and [density ? "the air above it begins to shimmer" : "the shimmer above it fades"].", \
+ "You channel your life energy into [src], [density ? "preventing" : "allowing"] passage above it.")
+ if(iscarbon(user))
+ var/mob/living/carbon/C = user
+ C.apply_damage(2, BRUTE, pick("l_arm", "r_arm"))
+
+
+//Rite of Joined Souls: Summons a single cultist.
+/obj/effect/rune/summon
+ cultist_name = "Rite of Joined Souls"
+ cultist_desc = "summons a single cultist to the rune. Requires 2 invokers."
+ invocation = "N'ath reth sh'yro eth d'rekkathnor!"
+ req_cultists = 2
+ allow_excess_invokers = 1
+ icon_state = "5"
+
+/obj/effect/rune/summon/invoke(var/list/invokers)
+ var/mob/living/user = invokers[1]
+ var/list/cultists = list()
+ for(var/datum/mind/M in ticker.mode.cult)
+ if(!(M.current in invokers) && M.current.stat != DEAD)
+ cultists |= M.current
+ var/mob/living/cultist_to_summon = input(user, "Who do you wish to call to [src]?", "Followers of [ticker.mode.cultdat.entity_title3]") as null|anything in cultists
+ if(!Adjacent(user) || !src || qdeleted(src) || user.incapacitated())
+ return
+ if(!cultist_to_summon)
+ to_chat(user, "You require a summoning target!")
+ fail_invoke()
+ log_game("Summon Cultist rune failed - no target")
+ return
+ if(!iscultist(cultist_to_summon))
+ to_chat(user, "[cultist_to_summon] is not a follower of [ticker.mode.cultdat.entity_title3]!")
+ fail_invoke()
+ log_game("Summon Cultist rune failed - no target")
+ return
+ if(cultist_to_summon.z > MAX_Z)
+ to_chat(user, "[cultist_to_summon] is not in our dimension!")
+ fail_invoke()
+ log_game("Summon Cultist rune failed - target in away mission")
+ return
+ cultist_to_summon.visible_message("[cultist_to_summon] suddenly disappears in a flash of red light!", \
+ "Overwhelming vertigo consumes you as you are hurled through the air!")
+ ..()
+ visible_message("A foggy shape materializes atop [src] and solidifes into [cultist_to_summon]!")
+ user.apply_damage(10, BRUTE, "head")
+ cultist_to_summon.forceMove(get_turf(src))
+ qdel(src)
+
+//Rite of Boiling Blood: Deals extremely high amounts of damage to non-cultists nearby
+/obj/effect/rune/blood_boil
+ cultist_name = "Boil Blood"
+ cultist_desc = "boils the blood of non-believers who can see the rune, dealing extreme amounts of damage. Requires 3 invokers."
+ invocation = "Dedo ol'btoh!"
+ icon_state = "4"
+ construct_invoke = 0
+ req_cultists = 3
+
+/obj/effect/rune/blood_boil/invoke(var/list/invokers)
+ ..()
+ var/turf/T = get_turf(src)
+ visible_message("[src] briefly bubbles before exploding!")
+ for(var/mob/living/carbon/C in viewers(T))
+ if(!iscultist(C))
+ var/obj/item/weapon/nullrod/N = C.null_rod_check()
+ if(N)
+ to_chat(C, "\The [N] suddenly burns hotly before returning to normal!")
+ continue
+ to_chat(C, "Your blood boils in your veins!")
+ C.take_overall_damage(45,45)
+ C.Stun(7)
+ for(var/M in invokers)
+ var/mob/living/L = M
+ L.apply_damage(15, BRUTE, pick("l_arm", "r_arm"))
+ to_chat(L,"[src] saps your strength!")
+ qdel(src)
+ explosion(T, -1, 0, 1, 5)
+
+
+//Rite of Spectral Manifestation: Summons a ghost on top of the rune as a cultist human with no items. User must stand on the rune at all times, and takes damage for each summoned ghost.
+/obj/effect/rune/manifest
+ cultist_name = "Rite of Spectral Manifestation"
+ cultist_desc = "manifests a spirit as a servant of your god. The invoker must not move from atop the rune, and will take damage for each summoned spirit."
+ invocation = "Gal'h'rfikk harfrandid mud'gib!" //how the fuck do you pronounce this
+ icon_state = "6"
+ construct_invoke = 0
+ color = rgb(200, 0, 0)
+
+/obj/effect/rune/manifest/New(loc)
+ ..()
+ cultist_desc = "manifests a spirit as a servant of [ticker.mode.cultdat.entity_title3]. The invoker must not move from atop the rune, and will take damage for each summoned spirit."
+
+ notify_ghosts("Manifest rune created in [get_area(src)].", 'sound/effects/ghost2.ogg', source = src)
+
+/obj/effect/rune/manifest/can_invoke(mob/living/user)
+ if(!(user in get_turf(src)))
+ to_chat(user,"You must be standing on [src]!")
+ fail_invoke()
+ log_game("Manifest rune failed - user not standing on rune")
+ return list()
+ var/list/ghosts_on_rune = list()
+ for(var/mob/dead/observer/O in get_turf(src))
+ if(O.client && !jobban_isbanned(O, ROLE_CULTIST))
+ ghosts_on_rune |= O
+ if(!ghosts_on_rune.len)
+ to_chat(user, "There are no spirits near [src]!")
+ fail_invoke()
+ log_game("Manifest rune failed - no nearby ghosts")
+ return list()
+ return ..()
+
+/obj/effect/rune/manifest/invoke(var/list/invokers)
+ var/mob/living/user = invokers[1]
+ var/list/ghosts_on_rune = list()
+ for(var/mob/dead/observer/O in get_turf(src))
+ if(O.client && !jobban_isbanned(O, ROLE_CULTIST))
+ ghosts_on_rune |= O
+ var/mob/dead/observer/ghost_to_spawn = pick(ghosts_on_rune)
+ var/mob/living/carbon/human/new_human = new(get_turf(src))
+ new_human.real_name = ghost_to_spawn.real_name
+ new_human.alpha = 150 //Makes them translucent
+ ..()
+ visible_message("A cloud of red mist forms above [src], and from within steps... a man.")
+ to_chat(user, "Your blood begins flowing into [src]. You must remain in place and conscious to maintain the forms of those summoned. This will hurt you slowly but surely...")
+ var/obj/machinery/shield/N = new(get_turf(src))
+ N.name = "Invoker's Shield"
+ N.desc = "A weak shield summoned by cultists to protect them while they carry out delicate rituals"
+ N.color = "red"
+ N.health = 20
+ N.mouse_opacity = 0
+ new_human.key = ghost_to_spawn.key
+ ticker.mode.add_cultist(new_human.mind, 0)
+ to_chat(new_human, "You are a servant of [ticker.mode.cultdat.entity_title3]. You have been made semi-corporeal by the cult of [ticker.mode.cultdat.entity_name], and you are to serve them at all costs.")
+
+ while(user in get_turf(src))
+ if(user.stat)
+ break
+ user.apply_damage(0.1, BRUTE)
+ sleep(3)
+
+ qdel(N)
+ if(new_human)
+ new_human.visible_message("[new_human] suddenly dissolves into bones and ashes.", \
+ "Your link to the world fades. Your form breaks apart.")
+ for(var/obj/I in new_human)
+ new_human.unEquip(I)
+ new_human.dust()
\ No newline at end of file
diff --git a/code/game/gamemodes/cult/talisman.dm b/code/game/gamemodes/cult/talisman.dm
index af678813fae..18911c7762c 100644
--- a/code/game/gamemodes/cult/talisman.dm
+++ b/code/game/gamemodes/cult/talisman.dm
@@ -1,255 +1,400 @@
/obj/item/weapon/paper/talisman
icon_state = "paper_talisman"
- var/imbue = null
- var/uses = 0
+ var/cultist_name = "talisman"
+ var/cultist_desc = "A basic talisman. It serves no purpose."
+ var/invocation = "Naise meam!"
info = "
"
+ var/uses = 1
+ var/health_cost = 0 //The amount of health taken from the user when invoking the talisman
- attack_self(mob/living/user as mob)
- if(iscultist(user))
- var/delete = 1
- switch(imbue)
- if("newtome")
- call(/obj/effect/rune/proc/tomesummon)()
- if("armor")
- call(/obj/effect/rune/proc/armor)()
- if("emp")
- call(/obj/effect/rune/proc/emp)(usr.loc,3)
- if("conceal")
- call(/obj/effect/rune/proc/obscure)(2)
- if("revealrunes")
- call(/obj/effect/rune/proc/revealrunes)(src)
- if("ire", "ego", "nahlizet", "certum", "veri", "jatkaa", "balaq", "mgar", "karazet", "geeri")
- call(/obj/effect/rune/proc/teleport)(imbue)
- if("communicate")
- //If the user cancels the talisman this var will be set to 0
- delete = call(/obj/effect/rune/proc/communicate)()
- if("deafen")
- call(/obj/effect/rune/proc/deafen)()
- if("blind")
- call(/obj/effect/rune/proc/blind)()
- if("runestun")
- to_chat(user, "\red To use this talisman, attack your target directly.")
- return
- if("supply")
- supply()
- user.take_organ_damage(5, 0)
- if(src && src.imbue!="supply" && src.imbue!="runestun")
- if(delete)
- qdel(src)
- return
- else
- to_chat(user, "You see strange symbols on the paper. Are they supposed to mean something?")
- return
+/obj/item/weapon/paper/talisman/examine(mob/user)
+ if(iscultist(user) || user.stat == DEAD)
+ to_chat(user, "Name: [cultist_name]")
+ to_chat(user, "Effect: [cultist_desc]")
+ to_chat(user, "Uses Remaining: [uses]")
+ else
+ to_chat(user, "You see strange symbols on the paper. Are they supposed to mean something?")
-
- attack(mob/living/carbon/T as mob, mob/living/user as mob)
- if(iscultist(user))
- if(imbue == "runestun")
- user.take_organ_damage(5, 0)
- call(/obj/effect/rune/proc/runestun)(T)
- qdel(src)
- else
- ..() ///If its some other talisman, use the generic attack code, is this supposed to work this way?
- else
- ..()
-
-
- proc/supply(var/key)
- if(!src.uses)
- qdel(src)
- return
-
- var/dat = "There are [src.uses] bloody runes on the parchment.
"
- dat += "Please choose the chant to be imbued into the fabric of reality.
"
- dat += "
"
- dat += "N'ath reth sh'yro eth d'raggathnor! - Allows you to summon a new arcane tome.
"
- dat += "Sas'so c'arta forbici! - Allows you to move to a rune with the same last word.
"
- dat += "Ta'gh fara'qha fel d'amar det! - Allows you to destroy technology in a short range.
"
- dat += "Kla'atu barada nikt'o! - Allows you to conceal the runes you placed on the floor.
"
- dat += "O bidai nabora se'sma! - Allows you to coordinate with others of your cult.
"
- dat += "Fuu ma'jin - Allows you to stun a person by attacking them with the talisman.
"
- dat += "Sa tatha najin - Allows you to summon armoured robes and an unholy blade
"
- dat += "Kal om neth - Summons a soul stone
"
- dat += "Da A'ig Osk - Summons a construct shell for use with captured souls. It is too large to carry on your person.
"
- usr << browse(dat, "window=id_com;size=350x200")
+/obj/item/weapon/paper/talisman/attack_self(mob/living/user)
+ if(!iscultist(user))
+ to_chat(user, "You see strange symbols on the paper. Are they supposed to mean something?")
return
+ if(invoke(user))
+ uses--
+ if(uses <= 0)
+ user.drop_item()
+ qdel(src)
+/obj/item/weapon/paper/talisman/proc/invoke(mob/living/user, successfuluse = 1)
+ . = successfuluse
+ if(successfuluse) //if the calling whatever says we succeed, do the fancy stuff
+ if(invocation)
+ user.whisper(invocation)
+ if(health_cost && iscarbon(user))
+ var/mob/living/carbon/C = user
+ C.apply_damage(health_cost, BRUTE, pick("l_arm", "r_arm"))
- Topic(href, href_list)
- if(!src) return
- if(usr.stat || usr.restrained() || !in_range(src, usr)) return
-
- if(href_list["rune"])
- if(istype(usr, /mob/living/carbon/human))
- var/mob/living/carbon/human/M = usr
-
- switch(href_list["rune"])
- if("newtome")
-
- var/obj/item/weapon/paper/talisman/T = new(M)
- T.imbue = "newtome"
-
- var/list/slots = list (
- "backpack" = slot_in_backpack,
- "left pocket" = slot_l_store,
- "right pocket" = slot_r_store,
- "left hand" = slot_l_hand,
- "right hand" = slot_r_hand,
- )
-
- var/where = M.equip_in_one_of_slots(T, slots)
- if(!where)
- to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.")
- else
- to_chat(M, "The [href_list["rune"]] talisman in your [where]")
- M.update_icons()
- src.uses--
- supply()
-
-
- if("teleport")
- var/obj/item/weapon/paper/talisman/T = new(M)
- T.imbue = "[pick("ire", "ego", "nahlizet", "certum", "veri", "jatkaa", "balaq", "mgar", "karazet", "geeri", "orkan", "allaq")]"
- T.info = "[T.imbue]"
-
- var/list/slots = list (
- "backpack" = slot_in_backpack,
- "left pocket" = slot_l_store,
- "right pocket" = slot_r_store,
- "left hand" = slot_l_hand,
- "right hand" = slot_r_hand,
- )
-
- var/where = M.equip_in_one_of_slots(T, slots)
- if(!where)
- to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.")
- else
- to_chat(M, "The [href_list["rune"]] talisman in your [where]")
- M.update_icons()
- src.uses--
- supply()
-
- if("emp")
- var/obj/item/weapon/paper/talisman/T = new(M)
- T.imbue = "emp"
-
- var/list/slots = list (
- "backpack" = slot_in_backpack,
- "left pocket" = slot_l_store,
- "right pocket" = slot_r_store,
- "left hand" = slot_l_hand,
- "right hand" = slot_r_hand,
- )
-
- var/where = M.equip_in_one_of_slots(T, slots)
- if(!where)
- to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.")
- else
- to_chat(M, "The [href_list["rune"]] talisman in your [where]")
- M.update_icons()
- src.uses--
- supply()
-
- if("conceal")
- var/obj/item/weapon/paper/talisman/T = new(M)
- T.imbue = "conceal"
-
- var/list/slots = list (
- "backpack" = slot_in_backpack,
- "left pocket" = slot_l_store,
- "right pocket" = slot_r_store,
- "left hand" = slot_l_hand,
- "right hand" = slot_r_hand,
- )
-
- var/where = M.equip_in_one_of_slots(T, slots)
- if(!where)
- to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.")
- else
- to_chat(M, "The [href_list["rune"]] talisman in your [where]")
- M.update_icons()
- src.uses--
- supply()
-
- if("communicate")
- var/obj/item/weapon/paper/talisman/T = new(M)
- T.imbue = "communicate"
-
- var/list/slots = list (
- "backpack" = slot_in_backpack,
- "left pocket" = slot_l_store,
- "right pocket" = slot_r_store,
- "left hand" = slot_l_hand,
- "right hand" = slot_r_hand,
- )
-
- var/where = M.equip_in_one_of_slots(T, slots)
- if(!where)
- to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.")
- else
- to_chat(M, "The [href_list["rune"]] talisman in your [where]")
- M.update_icons()
- src.uses--
- supply()
-
- if("runestun")
- var/obj/item/weapon/paper/talisman/T = new(M)
- T.imbue = "runestun"
-
- var/list/slots = list (
- "backpack" = slot_in_backpack,
- "left pocket" = slot_l_store,
- "right pocket" = slot_r_store,
- "left hand" = slot_l_hand,
- "right hand" = slot_r_hand,
- )
-
- var/where = M.equip_in_one_of_slots(T, slots)
- if(!where)
- to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.")
- else
- to_chat(M, "The [href_list["rune"]] talisman in your [where]")
- M.update_icons()
- src.uses--
- supply()
-
- if("armor")
- var/obj/item/weapon/paper/talisman/T = new(M)
- T.imbue = "armor"
-
- var/list/slots = list (
- "backpack" = slot_in_backpack,
- "left pocket" = slot_l_store,
- "right pocket" = slot_r_store,
- "left hand" = slot_l_hand,
- "right hand" = slot_r_hand,
- )
-
- var/where = M.equip_in_one_of_slots(T, slots)
- if(!where)
- to_chat(M, "You need a space in your backpack, pocket or hand for the new paper.")
- else
- to_chat(M, "The [href_list["rune"]] talisman in your [where]")
- M.update_icons()
- src.uses--
- supply()
-
- if("soulstone")
- new /obj/item/device/soulstone(get_turf(usr))
- src.uses--
- supply()
- if("construct")
- new /obj/structure/constructshell(get_turf(usr))
- src.uses--
- supply()
- else
- return
-
-
-
- return
+//Malformed Talisman: If something goes wrong.
+/obj/item/weapon/paper/talisman/malformed
+ cultist_name = "malformed talisman"
+ cultist_desc = "A talisman with gibberish scrawlings. No good can come from invoking this."
+ invocation = "Ra'sha yoka!"
+/obj/item/weapon/paper/talisman/malformed/invoke(mob/living/user, successfuluse = 1)
+ to_chat(user, "You feel a pain in your head. [ticker.mode.cultdat.entity_title3] is displeased.")
+ if(iscarbon(user))
+ var/mob/living/carbon/C = user
+ C.apply_damage(10, BRUTE, "head")
+//Supply Talisman: Has a few unique effects. Granted only to starter cultists.
/obj/item/weapon/paper/talisman/supply
- imbue = "supply"
- uses = 5
\ No newline at end of file
+ cultist_name = "Supply Talisman"
+ cultist_desc = "A multi-use talisman that can create various objects. Intended to increase the cult's strength early on."
+ invocation = null
+ uses = 3
+
+/obj/item/weapon/paper/talisman/supply/invoke(mob/living/user, successfuluse = 1)
+ var/dat = "There are [uses] bloody runes on the parchment.
"
+ dat += "Please choose the chant to be imbued into the fabric of reality.
"
+ dat += "
"
+ dat += "N'ath reth sh'yro eth d'raggathnor! - Summons an arcane tome, used to scribe runes and communicate with other cultists.
"
+ dat += "Sas'so c'arta forbici! - Allows you to move to a selected teleportation rune.
"
+ dat += "Ta'gh fara'qha fel d'amar det! - Allows you to destroy technology in a short range.
"
+ dat += "Fuu ma'jin! - Allows you to stun a person by attacking them with the talisman.
"
+ dat += "Kla'atu barada nikt'o! - Two use talisman, first use makes all nearby runes invisible, second use reveals nearby hidden runes.
"
+ dat += "Kal'om neth! - Summons a soul stone, used to capure the spirits of dead or dying humans.
"
+ dat += "Daa'ig osk! - Summons a construct shell for use with soulstone-captured souls. It is too large to carry on your person.
"
+ var/datum/browser/popup = new(user, "talisman", "", 400, 400)
+ popup.set_content(dat)
+ popup.open()
+ return 0
+
+/obj/item/weapon/paper/talisman/supply/Topic(href, href_list)
+ if(src)
+ if(usr.stat || usr.restrained() || !in_range(src, usr))
+ return
+ if(href_list["rune"])
+ switch(href_list["rune"])
+ if("newtome")
+ var/obj/item/weapon/tome/T = new(usr)
+ usr.put_in_hands(T)
+ if("teleport")
+ var/obj/item/weapon/paper/talisman/teleport/T = new(usr)
+ usr.put_in_hands(T)
+ if("emp")
+ var/obj/item/weapon/paper/talisman/emp/T = new(usr)
+ usr.put_in_hands(T)
+ if("runestun")
+ var/obj/item/weapon/paper/talisman/stun/T = new(usr)
+ usr.put_in_hands(T)
+ if("soulstone")
+ var/obj/item/device/soulstone/T = new(usr)
+ usr.put_in_hands(T)
+ if("construct")
+ new /obj/structure/constructshell(get_turf(usr))
+ if("veiling")
+ var/obj/item/weapon/paper/talisman/true_sight/T = new(usr)
+ usr.put_in_hands(T)
+ uses--
+ if(uses <= 0)
+ if(iscarbon(usr))
+ var/mob/living/carbon/C = usr
+ C.drop_item()
+ visible_message("[src] crumbles to dust.")
+ qdel(src)
+
+/obj/item/weapon/paper/talisman/supply/weak
+ uses = 2
+
+//Rite of Translocation: Same as rune
+/obj/item/weapon/paper/talisman/teleport
+ cultist_name = "Talisman of Teleportation"
+ cultist_desc = "A single-use talisman that will teleport a user to a random rune of the same keyword."
+ invocation = "Sas'so c'arta forbici!"
+ health_cost = 5
+
+/obj/item/weapon/paper/talisman/teleport/invoke(mob/living/user, successfuluse = 1)
+ var/list/potential_runes = list()
+ var/list/teleportnames = list()
+ var/list/duplicaterunecount = list()
+ for(var/R in teleport_runes)
+ var/obj/effect/rune/teleport/T = R
+ var/resultkey = T.listkey
+ if(resultkey in teleportnames)
+ duplicaterunecount[resultkey]++
+ resultkey = "[resultkey] ([duplicaterunecount[resultkey]])"
+ else
+ teleportnames.Add(resultkey)
+ duplicaterunecount[resultkey] = 1
+ potential_runes[resultkey] = T
+
+ if(!potential_runes.len)
+ to_chat(user, "There are no valid runes to teleport to!")
+ log_game("Teleport talisman failed - no other teleport runes")
+ return ..(user, 0)
+
+ if(user.z > MAX_Z)
+ to_chat(user, "You are not in the right dimension!")
+ log_game("Teleport talisman failed - user in away mission")
+ return ..(user, 0)
+
+ var/input_rune_key = input(user, "Choose a rune to teleport to.", "Rune to Teleport to") as null|anything in potential_runes //we know what key they picked
+ var/obj/effect/rune/teleport/actual_selected_rune = potential_runes[input_rune_key] //what rune does that key correspond to?
+ if(!actual_selected_rune)
+ return ..(user, 0)
+ user.visible_message("Dust flows from [user]'s hand, and they disappear in a flash of red light!", \
+ "You speak the words of the talisman and find yourself somewhere else!")
+ user.forceMove(get_turf(actual_selected_rune))
+ return ..()
+
+
+/obj/item/weapon/paper/talisman/summon_tome
+ cultist_name = "Talisman of Tome Summoning"
+ cultist_desc = "A one-use talisman that will call an untranslated tome from the archives of a cult."
+ invocation = "N'ath reth sh'yro eth d'raggathnor!"
+ health_cost = 1
+
+/obj/item/weapon/paper/talisman/summon_tome/invoke(mob/living/user, successfuluse = 1)
+ . = ..()
+ user.visible_message("[user]'s hand glows red for a moment.", \
+ "You speak the words of the talisman!")
+ new /obj/item/weapon/tome(get_turf(user))
+ user.visible_message("A tome appears at [user]'s feet!", \
+ "An arcane tome materializes at your feet.")
+
+/obj/item/weapon/paper/talisman/true_sight
+ cultist_name = "Talisman of Veiling"
+ cultist_desc = "A multi-use talisman that hides nearby runes. On its second use, will reveal nearby runes."
+ invocation = "Kla'atu barada nikt'o!"
+ health_cost = 1
+ uses = 2
+ var/revealing = FALSE //if it reveals or not
+
+/obj/item/weapon/paper/talisman/true_sight/invoke(mob/living/user, successfuluse = 1)
+ . = ..()
+ if(!revealing)
+ user.visible_message("Thin grey dust falls from [user]'s hand!", \
+ "You speak the words of the talisman, hiding nearby runes.")
+ invocation = "Nikt'o barada kla'atu!"
+ revealing = TRUE
+ for(var/obj/effect/rune/R in range(3,user))
+ R.talismanhide()
+ else
+ user.visible_message("A flash of light shines from [user]'s hand!", \
+ "You speak the words of the talisman, revealing nearby runes.")
+ for(var/obj/effect/rune/R in range(3,user))
+ R.talismanreveal()
+
+//Rite of False Truths: Same as rune
+/obj/item/weapon/paper/talisman/make_runes_fake
+ cultist_name = "Talisman of Disguising"
+ cultist_desc = "A talisman that will make nearby runes appear fake."
+ invocation = "By'o nar'nar!"
+
+/obj/item/weapon/paper/talisman/make_runes_fake/invoke(mob/living/user, successfuluse = 1)
+ . = ..()
+ user.visible_message("Dust flows from [user]s hand.", \
+ "You speak the words of the talisman, making nearby runes appear fake.")
+ for(var/obj/effect/rune/R in orange(6,user))
+ R.talismanfake()
+ R.desc = "A rune drawn in crayon."
+
+
+//Rite of Disruption: Weaker than rune
+/obj/item/weapon/paper/talisman/emp
+ cultist_name = "Talisman of Electromagnetic Pulse"
+ cultist_desc = "A talisman that will cause a moderately-sized electromagnetic pulse."
+ invocation = "Ta'gh fara'qha fel d'amar det!"
+ health_cost = 5
+
+/obj/item/weapon/paper/talisman/emp/invoke(mob/living/user, successfuluse = 1)
+ . = ..()
+ user.visible_message("[user]'s hand flashes a bright blue!", \
+ "You speak the words of the talisman, emitting an EMP blast.")
+ empulse(src, 4, 8)
+
+
+//Rite of Disorientation: Stuns and inhibit speech on a single target for quite some time
+/obj/item/weapon/paper/talisman/stun
+ cultist_name = "Talisman of Stunning"
+ cultist_desc = "A talisman that will stun and inhibit speech on a single target. To use, attack target directly."
+ invocation = "Dream sign:Evil sealing talisman!"
+ health_cost = 10
+
+/obj/item/weapon/paper/talisman/stun/invoke(mob/living/user, successfuluse = 0)
+ if(successfuluse) //if we're forced to be successful(we normally aren't) then do the normal stuff
+ return ..()
+ if(iscultist(user))
+ to_chat(user, "To use this talisman, attack the target directly.")
+ else
+ to_chat(user, "You see strange symbols on the paper. Are they supposed to mean something?")
+ return 0
+
+/obj/item/weapon/paper/talisman/stun/attack(mob/living/target, mob/living/user, successfuluse = 1)
+ if(iscultist(user))
+ invoke(user, 1)
+ user.visible_message("[user] holds up [src], which explodes in a flash of red light!", \
+ "You stun [target] with the talisman!")
+ var/obj/item/weapon/nullrod/N = locate() in target
+ if(N)
+ target.visible_message("[target]'s holy weapon absorbs the talisman's light!", \
+ "Your holy weapon absorbs the blinding light!")
+ else
+ target.Weaken(10)
+ target.Stun(10)
+ target.flash_eyes(1,1)
+ if(issilicon(target))
+ var/mob/living/silicon/S = target
+ S.emp_act(1)
+ if(iscarbon(target))
+ var/mob/living/carbon/C = target
+ C.silent += 5
+ C.stuttering += 15
+ C.cultslurring += 5
+ C.Jitter(15)
+ user.drop_item()
+ qdel(src)
+ return
+ ..()
+
+
+//Rite of Arming: Equips cultist armor on the user, where available
+/obj/item/weapon/paper/talisman/armor
+ cultist_name = "Talisman of Arming"
+ cultist_desc = "A talisman that will equip the invoker with cultist equipment if there is a slot to equip it to."
+ invocation = "N'ath reth sh'yro eth draggathnor!"
+
+/obj/item/weapon/paper/talisman/armor/invoke(mob/living/user, successfuluse = 1)
+ . = ..()
+ var/mob/living/carbon/human/H = user
+ user.visible_message("Otherworldly armor suddenly appears on [user]!", \
+ "You speak the words of the talisman, arming yourself!")
+ H.equip_or_collect(new /obj/item/clothing/suit/hooded/cultrobes/alt(user), slot_wear_suit)
+ H.equip_or_collect(new /obj/item/weapon/storage/backpack/cultpack(user), slot_back)
+ H.drop_item()
+ H.put_in_hands(new /obj/item/weapon/melee/cultblade(user))
+ H.put_in_hands(new /obj/item/weapon/legcuffs/bolas/cult(user))
+
+/obj/item/weapon/paper/talisman/armor/attack(mob/living/target, mob/living/user)
+ if(iscultist(user) && iscultist(target))
+ user.drop_item()
+ invoke(target)
+ qdel(src)
+ return
+ ..()
+
+
+//Talisman of Horrors: Breaks the mind of the victim with nightmarish hallucinations
+/obj/item/weapon/paper/talisman/horror
+ cultist_name = "Talisman of Horrors"
+ cultist_desc = "A talisman that will break the mind of the victim with nightmarish hallucinations."
+ invocation = "Lo'Nab Na'Dm!"
+
+/obj/item/weapon/paper/talisman/horror/attack(mob/living/target, mob/living/user)
+ if(iscultist(user))
+ to_chat(user, "You disturb [target] with visons of the end!")
+ if(iscarbon(target))
+ var/mob/living/carbon/H = target
+ H.reagents.add_reagent("lsd", 10)
+ qdel(src)
+
+
+//Talisman of Fabrication: Creates a construct shell out of 25 metal sheets.
+/obj/item/weapon/paper/talisman/construction
+ cultist_name = "Talisman of Construction"
+ cultist_desc = "Use this talisman on at least twenty-five metal sheets to create an empty construct shell or on plasteel to make runed metal"
+ invocation = "Ethra p'ni dedol!"
+
+/obj/item/weapon/paper/talisman/construction/attack_self(mob/living/user)
+ if(iscultist(user))
+ to_chat(user, "To use this talisman, place it upon a stack of metal sheets.")
+ else
+ to_chat(user, "You see strange symbols on the paper. Are they supposed to mean something?")
+
+
+/obj/item/weapon/paper/talisman/construction/attack(obj/M,mob/living/user)
+ if(iscultist(user))
+ to_chat(user, "This talisman will only work on a stack of metal sheets!")
+ log_game("Construct talisman failed - not a valid target")
+
+/obj/item/weapon/paper/talisman/construction/afterattack(obj/item/stack/sheet/target, mob/user, proximity_flag, click_parameters)
+ ..()
+ if(proximity_flag && iscultist(user))
+ if(istype(target, /obj/item/stack/sheet/metal))
+ var/turf/T = get_turf(target)
+ if(target.use(25))
+ new /obj/structure/constructshell(T)
+ to_chat(user, "The talisman clings to the metal and twists it into a construct shell!")
+ user << sound('sound/magic/Staff_Chaos.ogg',0,1,25)
+ qdel(src)
+ if(istype(target, /obj/item/stack/sheet/plasteel))
+ var/quantity = target.amount
+ var/turf/T = get_turf(target)
+ new /obj/item/stack/sheet/runed_metal(T,quantity)
+ target.use(quantity)
+ to_chat(user, "The talisman clings to the plasteel, transforming it into runed metal!")
+ user << sound('sound/magic/Staff_Chaos.ogg',0,1,25)
+ qdel(src)
+ else
+ to_chat(user, "The talisman must be used on metal or plasteel!")
+
+
+//Talisman of Shackling: Applies special cuffs directly from the talisman
+/obj/item/weapon/paper/talisman/shackle
+ cultist_name = "Talisman of Shackling"
+ cultist_desc = "Use this talisman on a victim to handcuff them with dark bindings."
+ invocation = "In'totum Lig'abis!"
+ uses = 4
+
+/obj/item/weapon/paper/talisman/shackle/invoke(mob/living/user, successfuluse = 0)
+ if(successfuluse) //if we're forced to be successful(we normally aren't) then do the normal stuff
+ return ..()
+ if(iscultist(user))
+ to_chat(user, "To use this talisman, attack the target directly.")
+ else
+ to_chat(user, "You see strange symbols on the paper. Are they supposed to mean something?")
+ return 0
+
+/obj/item/weapon/paper/talisman/shackle/attack(mob/living/carbon/target, mob/living/user)
+ if(iscultist(user) && istype(target))
+ if(target.stat == DEAD)
+ user.visible_message("This talisman's magic does not affect the dead!")
+ return
+ CuffAttack(target, user)
+ return
+ ..()
+
+/obj/item/weapon/paper/talisman/shackle/proc/CuffAttack(mob/living/carbon/C, mob/living/user)
+ if(!C.handcuffed)
+ invoke(user, 1)
+ playsound(loc, 'sound/weapons/cablecuff.ogg', 30, 1, -2)
+ C.visible_message("[user] begins restraining [C] with dark magic!", \
+ "[user] begins shaping a dark magic around your wrists!")
+ if(do_mob(user, C, 30))
+ if(!C.handcuffed)
+ C.handcuffed = new /obj/item/weapon/restraints/handcuffs/energy/cult/used(C)
+ C.update_handcuffed()
+ to_chat(user, "You shackle [C].")
+ add_logs(user, C, "handcuffed")
+ uses--
+ else
+ to_chat(user, "[C] is already bound.")
+ else
+ to_chat(user, "You fail to shackle [C].")
+ else
+ to_chat(user, "[C] is already bound.")
+ if(uses <= 0)
+ user.drop_item()
+ qdel(src)
+ return
+
+/obj/item/weapon/restraints/handcuffs/energy/cult //For the talisman of shackling
+ name = "cult shackles"
+ desc = "Shackles that bind the wrists with sinister magic."
+ trashtype = /obj/item/weapon/restraints/handcuffs/energy/used
+ origin_tech = "materials=2;magnets=5"
+
+/obj/item/weapon/restraints/handcuffs/energy/cult/used/dropped(mob/user)
+ user.visible_message("[user]'s shackles shatter in a discharge of dark magic!", \
+ "Your [src] shatters in a discharge of dark magic!")
+ qdel(src)
\ No newline at end of file
diff --git a/code/game/machinery/cloning.dm b/code/game/machinery/cloning.dm
index 6da0eb3fd55..4e961aa5e98 100644
--- a/code/game/machinery/cloning.dm
+++ b/code/game/machinery/cloning.dm
@@ -250,7 +250,6 @@
if(H.mind in ticker.mode.syndicates)
ticker.mode.update_synd_icons_added()
if(H.mind in ticker.mode.cult)
- ticker.mode.add_cult_viewpoint(H)
ticker.mode.add_cultist(occupant.mind)
ticker.mode.update_cult_icons_added() //So the icon actually appears
if(("\ref[H.mind]" in ticker.mode.implanter) || (H.mind in ticker.mode.implanted))
diff --git a/code/game/turfs/simulated/floor/plating.dm b/code/game/turfs/simulated/floor/plating.dm
index dcc05e5acfe..8292206402b 100644
--- a/code/game/turfs/simulated/floor/plating.dm
+++ b/code/game/turfs/simulated/floor/plating.dm
@@ -133,6 +133,10 @@
name = "engraved floor"
icon_state = "cult"
+/turf/simulated/floor/engine/cult/New()
+ ..()
+ icon_state = ticker.mode.cultdat.cult_floor_icon_state
+
/turf/simulated/floor/engine/cult/narsie_act()
return
diff --git a/code/game/turfs/simulated/walls_misc.dm b/code/game/turfs/simulated/walls_misc.dm
index 2d65018ceea..2f6205eff20 100644
--- a/code/game/turfs/simulated/walls_misc.dm
+++ b/code/game/turfs/simulated/walls_misc.dm
@@ -9,6 +9,7 @@
/turf/simulated/wall/cult/New()
new /obj/effect/overlay/temp/cult/turf(src)
..()
+ icon_state = ticker.mode.cultdat.cult_wall_icon_state
/turf/simulated/wall/cult/artificer
name = "runed stone wall"
diff --git a/code/modules/admin/topic.dm b/code/modules/admin/topic.dm
index a7fc809aa88..ffef6c8051b 100644
--- a/code/modules/admin/topic.dm
+++ b/code/modules/admin/topic.dm
@@ -340,9 +340,9 @@
if("coffee") M.change_mob_type( /mob/living/simple_animal/crab/Coffee , null, null, delmob, 1 )
if("parrot") M.change_mob_type( /mob/living/simple_animal/parrot , null, null, delmob, 1 )
if("polyparrot") M.change_mob_type( /mob/living/simple_animal/parrot/Poly , null, null, delmob, 1 )
- if("constructarmoured") M.change_mob_type( /mob/living/simple_animal/construct/armoured , null, null, delmob, 1 )
- if("constructbuilder") M.change_mob_type( /mob/living/simple_animal/construct/builder , null, null, delmob, 1 )
- if("constructwraith") M.change_mob_type( /mob/living/simple_animal/construct/wraith , null, null, delmob, 1 )
+ if("constructarmoured") M.change_mob_type( /mob/living/simple_animal/hostile/construct/armoured , null, null, delmob, 1 )
+ if("constructbuilder") M.change_mob_type( /mob/living/simple_animal/hostile/construct/builder , null, null, delmob, 1 )
+ if("constructwraith") M.change_mob_type( /mob/living/simple_animal/hostile/construct/wraith , null, null, delmob, 1 )
if("shade") M.change_mob_type( /mob/living/simple_animal/shade , null, null, delmob, 1 )
@@ -1421,19 +1421,6 @@
log_admin("[key_name(usr)] AIized [key_name(H)]")
H.AIize()
-
- else if(href_list["makemask"])
- if(!check_rights(R_SPAWN)) return
-
- if(alert(usr, "Confirm make mask?",, "Yes", "No") != "Yes")
- return
-
- var/mob/currentMob = locate(href_list["makemask"])
- message_admins("\red Admin [key_name_admin(usr)] made [key_name_admin(currentMob)] into a Mask of Nar'Sie!", 1)
- log_admin("[key_name(usr)] made [key_name(currentMob)] into a Mask of Nar'Sie!")
- currentMob.make_into_mask(0,0)
-
-
else if(href_list["makealien"])
if(!check_rights(R_SPAWN)) return
diff --git a/code/modules/mob/living/say.dm b/code/modules/mob/living/say.dm
index dbcefec7365..e09cc96ae0f 100644
--- a/code/modules/mob/living/say.dm
+++ b/code/modules/mob/living/say.dm
@@ -78,7 +78,10 @@ proc/get_radio_key_from_channel(var/channel)
message = stutter(message)
verb = "stammers"
speech_problem_flag = 1
-
+ if(cultslurring)
+ message = cultslur(message)
+ verb = "slurs"
+ speech_problem_flag = 1
if(COMIC in mutations)
message = "[message]"
diff --git a/code/modules/mob/living/simple_animal/constructs.dm b/code/modules/mob/living/simple_animal/constructs.dm
index 1d5b4da0e83..6d22ce83b5c 100644
--- a/code/modules/mob/living/simple_animal/constructs.dm
+++ b/code/modules/mob/living/simple_animal/constructs.dm
@@ -1,5 +1,5 @@
-/mob/living/simple_animal/construct
+/mob/living/simple_animal/hostile/construct
name = "Construct"
real_name = "Construct"
desc = ""
@@ -19,27 +19,32 @@
faction = list("cult")
flying = 1
universal_speak = 1
+ AIStatus = AI_OFF //normal constructs don't have AI
+ var/const_type = "shade"
var/list/construct_spells = list()
+ var/playstyle_string = "You are a generic construct! Your job is to not exist, and you should probably adminhelp this."
loot = list(/obj/item/weapon/reagent_containers/food/snacks/ectoplasm)
del_on_death = 1
deathmessage = "collapses in a shattered heap."
-/mob/living/simple_animal/construct/New()
+/mob/living/simple_animal/hostile/construct/New()
..()
- name = text("[initial(name)] ([rand(1, 1000)])")
- real_name = name
+ name = "[ticker.mode.cultdat.get_name(const_type)] ([rand(1, 1000)])"
+ real_name = ticker.mode.cultdat.get_name(const_type)
+ icon_state = ticker.mode.cultdat.get_icon(const_type)
for(var/spell in construct_spells)
AddSpell(new spell(null))
- updateglow()
-/mob/living/simple_animal/construct/examine(mob/user)
- to_chat(user, "*---------*")
+ if(ticker.mode.cultdat.theme == "blood")
+ updateglow()
+
+/mob/living/simple_animal/hostile/construct/examine(mob/user)
..(user)
- var/msg = ""
- if(src.health < src.maxHealth)
+ var/msg = ""
+ if (src.health < src.maxHealth)
msg += ""
- if(src.health >= src.maxHealth/2)
+ if (src.health >= src.maxHealth/2)
msg += "It looks slightly dented.\n"
else
msg += "It looks severely dented!\n"
@@ -48,32 +53,34 @@
to_chat(user, msg)
-/mob/living/simple_animal/construct/attack_animal(mob/living/simple_animal/M as mob)
- if(istype(M, /mob/living/simple_animal/construct/builder))
- health += 5
- M.custom_emote(1,"mends some of \the [src]'s wounds.")
- else
- if(M.melee_damage_upper <= 0)
- M.custom_emote(1, "[M.friendly] \the [src]")
+/mob/living/simple_animal/hostile/construct/attack_animal(mob/living/simple_animal/M)
+ if(istype(M, /mob/living/simple_animal/hostile/construct/builder))
+ if(health < maxHealth)
+ adjustBruteLoss(-5)
+ if(src != M)
+ Beam(M,icon_state="sendbeam",icon='icons/effects/effects.dmi',time=4)
+ M.visible_message("[M] repairs some of \the [src]'s dents.", \
+ "You repair some of [src]'s dents, leaving [src] at [health]/[maxHealth] health.")
+ else
+ M.visible_message("[M] repairs some of its own dents.", \
+ "You repair some of your own dents, leaving you at [M.health]/[M.maxHealth] health.")
else
- M.do_attack_animation(src)
- if(M.attack_sound)
- playsound(loc, M.attack_sound, 50, 1, 1)
- for(var/mob/O in viewers(src, null))
- O.show_message("\The [M] [M.attacktext] \the [src]!", 1)
- add_logs(M, src, "attacked")
- var/damage = rand(M.melee_damage_lower, M.melee_damage_upper)
- adjustBruteLoss(damage)
+ if(src != M)
+ to_chat(M, "You cannot repair [src]'s dents, as it has none!")
+ else
+ to_chat(M, "You cannot repair your own dents, as you have none!")
+ else if(src != M)
+ ..()
-/mob/living/simple_animal/construct/narsie_act()
+/mob/living/simple_animal/hostile/construct/narsie_act()
return
/////////////////Juggernaut///////////////
-/mob/living/simple_animal/construct/armoured
+/mob/living/simple_animal/hostile/construct/armoured
name = "Juggernaut"
real_name = "Juggernaut"
desc = "A possessed suit of armour driven by the will of the restless dead"
@@ -91,15 +98,22 @@
environment_smash = 2
attack_sound = 'sound/weapons/punch3.ogg'
status_flags = 0
+ const_type = "juggernaut"
construct_spells = list(/obj/effect/proc_holder/spell/aoe_turf/conjure/lesserforcewall)
force_threshold = 11
+ playstyle_string = "You are a Juggernaut. Though slow, your shell can withstand extreme punishment, \
+ create shield walls, rip apart enemies and walls alike, and even deflect energy weapons."
-/mob/living/simple_animal/construct/armoured/Life()
+/mob/living/simple_animal/hostile/construct/armoured/hostile //actually hostile, will move around, hit things
+ AIStatus = AI_ON
+ environment_smash = 1 //only token destruction, don't smash the cult wall NO STOP
+
+/mob/living/simple_animal/hostile/construct/armoured/Life()
weakened = 0
return ..()
-/mob/living/simple_animal/construct/armoured/bullet_act(var/obj/item/projectile/P)
+/mob/living/simple_animal/hostile/construct/armoured/bullet_act(var/obj/item/projectile/P)
if(istype(P, /obj/item/projectile/energy) || istype(P, /obj/item/projectile/beam))
var/reflectchance = 80 - round(P.damage/3)
if(prob(reflectchance))
@@ -132,7 +146,7 @@
-/mob/living/simple_animal/construct/wraith
+/mob/living/simple_animal/hostile/construct/wraith
name = "Wraith"
real_name = "Wraith"
desc = "A wicked bladed shell contraption piloted by a bound spirit"
@@ -146,15 +160,19 @@
attacktext = "slashes"
see_in_dark = 7
attack_sound = 'sound/weapons/bladeslice.ogg'
+ const_type = "wraith"
construct_spells = list(/obj/effect/proc_holder/spell/targeted/ethereal_jaunt/shift)
+ retreat_distance = 2 //AI wraiths will move in and out of combat
+ playstyle_string = "You are a Wraith. Though relatively fragile, you are fast, deadly, and even able to phase through walls."
-
+/mob/living/simple_animal/hostile/construct/wraith/hostile //actually hostile, will move around, hit things
+ AIStatus = AI_ON
/////////////////////////////Artificer/////////////////////////
-/mob/living/simple_animal/construct/builder
+/mob/living/simple_animal/hostile/construct/builder
name = "Artificer"
real_name = "Artificer"
desc = "A bulbous construct dedicated to building and maintaining The Cult of Nar-Sie's armies"
@@ -169,18 +187,70 @@
melee_damage_upper = 5
attacktext = "rams"
environment_smash = 2
+ retreat_distance = 10
+ minimum_distance = 10 //AI artificers will flee like fuck
attack_sound = 'sound/weapons/punch2.ogg'
+ const_type = "builder"
construct_spells = list(/obj/effect/proc_holder/spell/aoe_turf/conjure/construct/lesser,
/obj/effect/proc_holder/spell/aoe_turf/conjure/wall,
/obj/effect/proc_holder/spell/aoe_turf/conjure/floor,
+ /obj/effect/proc_holder/spell/aoe_turf/conjure/pylon,
/obj/effect/proc_holder/spell/aoe_turf/conjure/soulstone,
/obj/effect/proc_holder/spell/targeted/projectile/magic_missile/lesser)
+ playstyle_string = "You are an Artificer. You are incredibly weak and fragile, but you are able to construct fortifications, \
+ use magic missile, repair allied constructs (by clicking on them), \
+ and, most important of all, create new constructs by producing soulstones to capture souls, \
+ and shells to place those soulstones into."
+
+
+/mob/living/simple_animal/hostile/construct/builder/Found(atom/A) //what have we found here?
+ if(istype(A, /mob/living/simple_animal/hostile/construct)) //is it a construct?
+ var/mob/living/simple_animal/hostile/construct/C = A
+ if(C.health < C.maxHealth) //is it hurt? let's go heal it if it is
+ return 1
+ else
+ return 0
+ else
+ return 0
+
+/mob/living/simple_animal/hostile/construct/builder/CanAttack(atom/the_target)
+ if(see_invisible < the_target.invisibility)//Target's invisible to us, forget it
+ return 0
+ if(Found(the_target) || ..()) //If we Found it or Can_Attack it normally, we Can_Attack it as long as it wasn't invisible
+ return 1 //as a note this shouldn't be added to base hostile mobs because it'll mess up retaliate hostile mobs
+
+/mob/living/simple_animal/hostile/construct/builder/MoveToTarget(var/list/possible_targets)
+ ..()
+ if(isliving(target))
+ var/mob/living/L = target
+ if(istype(L, /mob/living/simple_animal/hostile/construct) && L.health >= L.maxHealth) //is this target an unhurt construct? stop trying to heal it
+ LoseTarget()
+ return 0
+ if(L.health <= melee_damage_lower+melee_damage_upper) //ey bucko you're hurt as fuck let's go hit you
+ retreat_distance = null
+ minimum_distance = 1
+
+/mob/living/simple_animal/hostile/construct/builder/Aggro()
+ ..()
+ if(istype(target, /mob/living/simple_animal/hostile/construct)) //oh the target is a construct no need to flee
+ retreat_distance = null
+ minimum_distance = 1
+
+/mob/living/simple_animal/hostile/construct/builder/LoseAggro()
+ ..()
+ retreat_distance = initial(retreat_distance)
+ minimum_distance = initial(minimum_distance)
+
+/mob/living/simple_animal/hostile/construct/builder/hostile //actually hostile, will move around, hit things, heal other constructs
+ AIStatus = AI_ON
+ environment_smash = 1 //only token destruction, don't smash the cult wall NO STOP
+
/////////////////////////////Behemoth/////////////////////////
-/mob/living/simple_animal/construct/behemoth
+/mob/living/simple_animal/hostile/construct/behemoth
name = "Behemoth"
real_name = "Behemoth"
desc = "The pinnacle of occult technology, Behemoths are the ultimate weapon in the Cult of Nar-Sie's arsenal."
@@ -199,13 +269,22 @@
environment_smash = 2
attack_sound = 'sound/weapons/punch4.ogg'
force_threshold = 11
+ const_type = "behemoth"
var/energy = 0
var/max_energy = 1000
+/mob/living/simple_animal/hostile/construct/behemoth/hostile //actually hostile, will move around, hit things
+ AIStatus = AI_ON
+ environment_smash = 1 //only token destruction, don't smash the cult wall NO STOP
+
+/mob/living/simple_animal/hostile/construct/behemoth/Life()
+ weakened = 0
+ return ..()
+
/////////////////////////////Harvester/////////////////////////
-/mob/living/simple_animal/construct/harvester
+/mob/living/simple_animal/hostile/construct/harvester
name = "Harvester"
real_name = "Harvester"
desc = "A harbinger of Nar-Sie's enlightenment. It'll be all over soon."
@@ -219,16 +298,25 @@
attacktext = "prods"
speed = 0
environment_smash = 1
- see_in_dark = 7
+ see_in_dark = 8
attack_sound = 'sound/weapons/tap.ogg'
+ const_type = "harvester"
construct_spells = list(/obj/effect/proc_holder/spell/targeted/smoke/disable)
+ retreat_distance = 2 //AI harvesters will move in and out of combat, like wraiths, but shittier
+ playstyle_string = "You are a Harvester. You are not strong, but your powers of domination will assist you in your role: \
+ Bring those who still cling to this world of illusion back to the master so they may know Truth."
-/mob/living/simple_animal/construct/harvester/Process_Spacemove(var/movement_dir = 0)
+
+/mob/living/simple_animal/hostile/construct/harvester/Process_Spacemove(var/movement_dir = 0)
return 1
+/mob/living/simple_animal/hostile/construct/harvester/hostile //actually hostile, will move around, hit things
+ AIStatus = AI_ON
+
+
////////////////Glow////////////////////
-/mob/living/simple_animal/construct/proc/updateglow()
+/mob/living/simple_animal/hostile/construct/proc/updateglow()
overlays = 0
var/overlay_layer = LIGHTING_LAYER + 1
if(layer != MOB_LAYER)
@@ -245,7 +333,7 @@
set category = "Behemoth"
set name = "Summon Cultist (300)"
set desc = "Teleport a cultist to your location"
- if(istype(usr,/mob/living/simple_animal/constructbehemoth))
+ if (istype(usr,/mob/living/simple_animal/hostile/constructbehemoth))
if(usr.energy<300)
to_chat(usr, "\red You do not have enough power stored!")
@@ -257,12 +345,86 @@
usr.energy -= 300
var/list/mob/living/cultists = new
for(var/datum/mind/H in ticker.mode.cult)
- if(istype(H.current,/mob/living))
+ if (istype(H.current,/mob/living))
cultists+=H.current
var/mob/cultist = input("Choose the one who you want to summon", "Followers of Geometer") as null|anything in (cultists - usr)
if(!cultist)
return
- if(cultist == usr) //just to be sure.
+ if (cultist == usr) //just to be sure.
return
cultist.loc = usr.loc
usr.visible_message("/red [cultist] appears in a flash of red light as [usr] glows with power")*/
+
+
+///ui stuff
+
+/mob/living/simple_animal/hostile/construct/armoured/handle_hud_icons_health()
+ ..()
+ if(healths)
+ switch(health)
+ if(250 to INFINITY) healths.icon_state = "juggernaut_health0"
+ if(208 to 249) healths.icon_state = "juggernaut_health1"
+ if(167 to 207) healths.icon_state = "juggernaut_health2"
+ if(125 to 166) healths.icon_state = "juggernaut_health3"
+ if(84 to 124) healths.icon_state = "juggernaut_health4"
+ if(42 to 83) healths.icon_state = "juggernaut_health5"
+ if(1 to 41) healths.icon_state = "juggernaut_health6"
+ else healths.icon_state = "juggernaut_health7"
+
+
+/mob/living/simple_animal/hostile/construct/behemoth/handle_hud_icons_health()
+ ..()
+ if(healths)
+ switch(health)
+ if(750 to INFINITY) healths.icon_state = "juggernaut_health0"
+ if(625 to 749) healths.icon_state = "juggernaut_health1"
+ if(500 to 624) healths.icon_state = "juggernaut_health2"
+ if(375 to 499) healths.icon_state = "juggernaut_health3"
+ if(250 to 374) healths.icon_state = "juggernaut_health4"
+ if(125 to 249) healths.icon_state = "juggernaut_health5"
+ if(1 to 124) healths.icon_state = "juggernaut_health6"
+ else healths.icon_state = "juggernaut_health7"
+
+/mob/living/simple_animal/hostile/construct/builder/handle_hud_icons_health()
+ ..()
+ if(healths)
+ switch(health)
+ if(50 to INFINITY) healths.icon_state = "artificer_health0"
+ if(42 to 49) healths.icon_state = "artificer_health1"
+ if(34 to 41) healths.icon_state = "artificer_health2"
+ if(26 to 33) healths.icon_state = "artificer_health3"
+ if(18 to 25) healths.icon_state = "artificer_health4"
+ if(10 to 17) healths.icon_state = "artificer_health5"
+ if(1 to 9) healths.icon_state = "artificer_health6"
+ else healths.icon_state = "artificer_health7"
+
+
+
+/mob/living/simple_animal/hostile/construct/wraith/handle_hud_icons_health()
+
+ ..()
+ if(healths)
+ switch(health)
+ if(75 to INFINITY) healths.icon_state = "wraith_health0"
+ if(62 to 74) healths.icon_state = "wraith_health1"
+ if(50 to 61) healths.icon_state = "wraith_health2"
+ if(37 to 49) healths.icon_state = "wraith_health3"
+ if(25 to 36) healths.icon_state = "wraith_health4"
+ if(12 to 24) healths.icon_state = "wraith_health5"
+ if(1 to 11) healths.icon_state = "wraith_health6"
+ else healths.icon_state = "wraith_health7"
+
+
+/mob/living/simple_animal/hostile/construct/harvester/handle_hud_icons_health()
+
+ ..()
+ if(healths)
+ switch(health)
+ if(150 to INFINITY) healths.icon_state = "harvester_health0"
+ if(125 to 149) healths.icon_state = "harvester_health1"
+ if(100 to 124) healths.icon_state = "harvester_health2"
+ if(75 to 99) healths.icon_state = "harvester_health3"
+ if(50 to 74) healths.icon_state = "harvester_health4"
+ if(25 to 49) healths.icon_state = "harvester_health5"
+ if(1 to 24) healths.icon_state = "harvester_health6"
+ else healths.icon_state = "harvester_health7"
\ No newline at end of file
diff --git a/code/modules/mob/mob_defines.dm b/code/modules/mob/mob_defines.dm
index 37bb39b7754..6aa69787090 100644
--- a/code/modules/mob/mob_defines.dm
+++ b/code/modules/mob/mob_defines.dm
@@ -129,6 +129,7 @@
var/datum/dna/dna = null//Carbon
var/radiation = 0 //Carbon
+ var/cultslurring = 0
var/list/mutations = list() //Carbon -- Doohl
//see: setup.dm for list of mutations
diff --git a/code/modules/mob/spirit/movement.dm b/code/modules/mob/spirit/movement.dm
index b014fb42927..c3a780c07ed 100644
--- a/code/modules/mob/spirit/movement.dm
+++ b/code/modules/mob/spirit/movement.dm
@@ -29,26 +29,6 @@ mob/spirit/proc/Spirit_Move(direct)
// if we're trying to move, we want to stop following our target
follow_target = null
-
-/mob/spirit/proc/follow_cultist(mob/living/target as mob)
- if(!istype(target)) return
- var/obj/cult_viewpoint/currentView = getCultViewpoint(target)
- var/mob/spirit/U = usr
-
- if(!currentView)
- to_chat(U, "As a spirit, you may only track cultists.")
-
- U.follow_target = target
- to_chat(U, "Now following [currentView.get_cult_name()].")
-
- spawn (0)
- while(U.follow_target == target)
- if(U.follow_target == null)
- return
- U.setLoc(get_turf(target))
- sleep(10)
-
-
mob/spirit/setLoc(var/T)
T = get_turf(T)
loc = T
diff --git a/code/modules/mob/transform_procs.dm b/code/modules/mob/transform_procs.dm
index 98e33ee5f6b..ea710335c77 100644
--- a/code/modules/mob/transform_procs.dm
+++ b/code/modules/mob/transform_procs.dm
@@ -70,56 +70,6 @@
qdel(src)
return O
-/mob/living/carbon/human/make_into_mask(var/should_gib = 0)
- for(var/t in organs)
- qdel(t)
- return ..(should_gib)
-
-
-/mob/proc/make_into_mask(var/should_gib = 0, var/should_remove_items = 0)
-
- if(!should_gib)
- icon = null
- invisibility = 101
-
- if(!should_remove_items)
- for(var/obj/item/W in src)
- unEquip(W)
-
- var/mob/spirit/mask/new_spirit = new()
-
- if(mind)
- new_spirit.mind = mind
- new_spirit.mind.assigned_role = "Mask"
- new_spirit.mind.original = new_spirit
-
- new_spirit.key = key
- new_spirit.loc=loc
-
- if(should_gib)
- spawn(0)
- src.gib() // gib the body
- else
- spawn(0)//To prevent the proc from returning null.
- src.visible_message( \
- "[src] disappears into the shadows, never to be seen again.", \
- "You disappear into the shadows, never to be seen again.", \
- "You hear strange noise, you can't quite place it.")
- qdel(src)
-
- to_chat(new_spirit, "You are a Mask of Nar'sie now. You are a tiny fragment of the unknowable entity that is the god.")
- to_chat(new_spirit, "Your job is to help your acolytes complete their goals. Be spooky. Do evil.")
-
- new_spirit.set_name()
-
- // let spirits identify cultists
- if(ticker.mode)
- ticker.mode.add_cult_icon_to_spirit(new_spirit)
-
- // highlander test
- there_can_be_only_one_mask(new_spirit)
-
- return new_spirit
//human -> robot
diff --git a/code/modules/power/singularity/narsie.dm b/code/modules/power/singularity/narsie.dm
index eb54497b69e..795e94f1d61 100644
--- a/code/modules/power/singularity/narsie.dm
+++ b/code/modules/power/singularity/narsie.dm
@@ -24,6 +24,8 @@
/obj/singularity/narsie/large/New()
..()
+ icon_state = ticker.mode.cultdat.entity_icon_state
+ name = ticker.mode.cultdat.entity_name
to_chat(world, "NAR-SIE HAS RISEN")
world << pick(sound('sound/hallucinations/im_here1.ogg'), sound('sound/hallucinations/im_here2.ogg'))
@@ -38,7 +40,7 @@
shuttle_master.emergency.request(null, 0.3) // Cannot recall
/obj/singularity/narsie/large/attack_ghost(mob/dead/observer/user as mob)
- makeNewConstruct(/mob/living/simple_animal/construct/harvester, user, null, 1)
+ makeNewConstruct(/mob/living/simple_animal/hostile/construct/harvester, user, null, 1)
new /obj/effect/effect/sleep_smoke(user.loc)
@@ -121,12 +123,12 @@
/obj/singularity/narsie/proc/acquire(var/mob/food)
- to_chat(target, "NAR-SIE HAS LOST INTEREST IN YOU")
+ to_chat(target, "[uppertext(ticker.mode.cultdat.entity_name)] HAS LOST INTEREST IN YOU")
target = food
if(ishuman(target))
- to_chat(target, "NAR-SIE HUNGERS FOR YOUR SOUL")
+ to_chat(target, "[uppertext(ticker.mode.cultdat.entity_name)] HUNGERS FOR YOUR SOUL")
else
- to_chat(target, "NAR-SIE HAS CHOSEN YOU TO LEAD HIM TO HIS NEXT MEAL")
+ to_chat(target, "[uppertext(ticker.mode.cultdat.entity_name)] HAS CHOSEN YOU TO LEAD HER TO HER NEXT MEAL")
//Wizard narsie
/obj/singularity/narsie/wizard
diff --git a/data/mode.txt b/data/mode.txt
index ef18df98db4..53cfb4d03af 100644
--- a/data/mode.txt
+++ b/data/mode.txt
@@ -1 +1 @@
-extended
+cult
diff --git a/icons/effects/effects.dmi b/icons/effects/effects.dmi
index 725d97ce21b..95d8f86e425 100644
Binary files a/icons/effects/effects.dmi and b/icons/effects/effects.dmi differ
diff --git a/icons/mob/actions.dmi b/icons/mob/actions.dmi
index 3269c8ae7b5..df89f5d5135 100644
Binary files a/icons/mob/actions.dmi and b/icons/mob/actions.dmi differ
diff --git a/icons/mob/mob.dmi b/icons/mob/mob.dmi
index 491349985d4..fd305492464 100644
Binary files a/icons/mob/mob.dmi and b/icons/mob/mob.dmi differ
diff --git a/icons/mob/suit.dmi b/icons/mob/suit.dmi
index 9f851fc894c..170a034f95b 100644
Binary files a/icons/mob/suit.dmi and b/icons/mob/suit.dmi differ
diff --git a/icons/obj/clothing/suits.dmi b/icons/obj/clothing/suits.dmi
index 0be3a5a32d7..e9fd284f49c 100644
Binary files a/icons/obj/clothing/suits.dmi and b/icons/obj/clothing/suits.dmi differ
diff --git a/icons/obj/narsie.dmi b/icons/obj/narsie.dmi
index b367734cff5..ac11a2730cb 100644
Binary files a/icons/obj/narsie.dmi and b/icons/obj/narsie.dmi differ
diff --git a/icons/turf/floors.dmi b/icons/turf/floors.dmi
index 98e01f18cfa..6ee3894bc61 100644
Binary files a/icons/turf/floors.dmi and b/icons/turf/floors.dmi differ
diff --git a/icons/turf/walls/cult_fire_wall.dmi b/icons/turf/walls/cult_fire_wall.dmi
new file mode 100644
index 00000000000..85e549341d4
Binary files /dev/null and b/icons/turf/walls/cult_fire_wall.dmi differ