From 4795c606700044bbb0cdabc433a0f7468294df5f Mon Sep 17 00:00:00 2001
From: Ghommie <42542238+Ghommie@users.noreply.github.com>
Date: Mon, 23 Sep 2019 16:48:21 +0200
Subject: [PATCH 1/5] Reduces holy water message spam for blood/clock cultists.
---
.../chemistry/reagents/other_reagents.dm | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/code/modules/reagents/chemistry/reagents/other_reagents.dm b/code/modules/reagents/chemistry/reagents/other_reagents.dm
index bc64d6636b..ff4d806c54 100644
--- a/code/modules/reagents/chemistry/reagents/other_reagents.dm
+++ b/code/modules/reagents/chemistry/reagents/other_reagents.dm
@@ -200,22 +200,17 @@
pH = 7.5 //God is alkaline
/datum/reagent/water/holywater/on_mob_metabolize(mob/living/L)
- ..()
+ . = ..()
ADD_TRAIT(L, TRAIT_HOLY, id)
+ if(is_servant_of_ratvar(L))
+ to_chat(L, "A fog spreads through your mind, purging the Justiciar's influence!")
+ else if(iscultist(L))
+ to_chat(L, "A fog spreads through your mind, weakening your connection to the veil and purging Nar-sie's influence")
+
/datum/reagent/water/holywater/on_mob_end_metabolize(mob/living/L)
REMOVE_TRAIT(L, TRAIT_HOLY, id)
- ..()
-
-/datum/reagent/water/holywater/reaction_mob(mob/living/M, method=TOUCH, reac_volume)
- if(is_servant_of_ratvar(M))
- to_chat(M, "A fog spreads through your mind, purging the Justiciar's influence!")
- ..()
-
-/datum/reagent/water/holywater/reaction_mob(mob/living/M, method=TOUCH, reac_volume)
- if(iscultist(M))
- to_chat(M, "A fog spreads through your mind, weakening your connection to the veil and purging Nar-sie's influence")
- ..()
+ return ..()
/datum/reagent/water/holywater/on_mob_life(mob/living/carbon/M)
if(!data)
From 05a9b63b79d16e6b5471a4906c7f2858663aceec Mon Sep 17 00:00:00 2001
From: Ghommie <42542238+Ghommie@users.noreply.github.com>
Date: Mon, 23 Sep 2019 17:06:15 +0200
Subject: [PATCH 2/5] spam.
---
code/modules/reagents/chemistry/reagents/other_reagents.dm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/code/modules/reagents/chemistry/reagents/other_reagents.dm b/code/modules/reagents/chemistry/reagents/other_reagents.dm
index ff4d806c54..66c99bce7a 100644
--- a/code/modules/reagents/chemistry/reagents/other_reagents.dm
+++ b/code/modules/reagents/chemistry/reagents/other_reagents.dm
@@ -219,9 +219,12 @@
M.jitteriness = min(M.jitteriness+4,10)
if(iscultist(M))
for(var/datum/action/innate/cult/blood_magic/BM in M.actions)
- to_chat(M, "Your blood rites falter as holy water scours your body!")
+ var/msg = FALSE
for(var/datum/action/innate/cult/blood_spell/BS in BM.spells)
qdel(BS)
+ inform = TRUE
+ if(msg)
+ to_chat(M, "Your blood rites falter as holy water scours your body!")
if(data >= 25) // 10 units, 45 seconds @ metabolism 0.4 units & tick rate 1.8 sec
if(!M.stuttering)
M.stuttering = 1
From 1fa40dac38742e68d2073e2799ba45ce0a70a890 Mon Sep 17 00:00:00 2001
From: Ghommie <42542238+Ghommie@users.noreply.github.com>
Date: Mon, 23 Sep 2019 17:25:08 +0200
Subject: [PATCH 3/5] Changes.
---
code/modules/antagonists/cult/blood_magic.dm | 7 +++++--
.../reagents/chemistry/reagents/other_reagents.dm | 12 +++++++-----
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/code/modules/antagonists/cult/blood_magic.dm b/code/modules/antagonists/cult/blood_magic.dm
index 1dbae4ca98..eed78156c5 100644
--- a/code/modules/antagonists/cult/blood_magic.dm
+++ b/code/modules/antagonists/cult/blood_magic.dm
@@ -4,6 +4,7 @@
desc = "Prepare blood magic by carving runes into your flesh. This rite is most effective with an empowering rune"
var/list/spells = list()
var/channeling = FALSE
+ var/holy_dispel = FALSE
/datum/action/innate/cult/blood_magic/Grant()
..()
@@ -33,6 +34,8 @@
B.button.moved = B.button.screen_loc
/datum/action/innate/cult/blood_magic/Activate()
+ if(holy_dispel)
+ to_chat(owner, "Holy water currently scours your body, nullifying the power of the rites!")
var/rune = FALSE
var/limit = RUNELESS_MAX_BLOODCHARGE
for(var/obj/effect/rune/empower/R in range(1, owner))
@@ -64,7 +67,7 @@
qdel(nullify_spell)
return
BS = possible_spells[entered_spell_name]
- if(QDELETED(src) || owner.incapacitated() || !BS || (rune && !(locate(/obj/effect/rune/empower) in range(1, owner))) || (spells.len >= limit))
+ if(QDELETED(src) || owner.incapacitated() || !BS || holy_dispel || (rune && !(locate(/obj/effect/rune/empower) in range(1, owner))) || (spells.len >= limit))
return
to_chat(owner,"You begin to carve unnatural symbols into your flesh!")
SEND_SOUND(owner, sound('sound/weapons/slice.ogg',0,1,10))
@@ -73,7 +76,7 @@
else
to_chat(owner, "You are already invoking blood magic!")
return
- if(do_after(owner, 100 - rune*60, target = owner))
+ if(do_after(owner, 100 - rune*60, target = owner) && !holy_dispel)
if(ishuman(owner))
var/mob/living/carbon/human/H = owner
H.bleed(40 - rune*32)
diff --git a/code/modules/reagents/chemistry/reagents/other_reagents.dm b/code/modules/reagents/chemistry/reagents/other_reagents.dm
index 66c99bce7a..5d12fb47a9 100644
--- a/code/modules/reagents/chemistry/reagents/other_reagents.dm
+++ b/code/modules/reagents/chemistry/reagents/other_reagents.dm
@@ -210,6 +210,9 @@
/datum/reagent/water/holywater/on_mob_end_metabolize(mob/living/L)
REMOVE_TRAIT(L, TRAIT_HOLY, id)
+ if(iscultist(M))
+ for(var/datum/action/innate/cult/blood_magic/BM in M.actions)
+ BM.holy_dispel = FALSE
return ..()
/datum/reagent/water/holywater/on_mob_life(mob/living/carbon/M)
@@ -219,12 +222,11 @@
M.jitteriness = min(M.jitteriness+4,10)
if(iscultist(M))
for(var/datum/action/innate/cult/blood_magic/BM in M.actions)
- var/msg = FALSE
- for(var/datum/action/innate/cult/blood_spell/BS in BM.spells)
- qdel(BS)
- inform = TRUE
- if(msg)
+ if(!BM.holy_dispel)
+ BM.holy_dispel = TRUE
to_chat(M, "Your blood rites falter as holy water scours your body!")
+ for(var/datum/action/innate/cult/blood_spell/BS in BM.spells)
+ qdel(BS)
if(data >= 25) // 10 units, 45 seconds @ metabolism 0.4 units & tick rate 1.8 sec
if(!M.stuttering)
M.stuttering = 1
From 5a822d95a4e27bb78d0141a5b848b5e874dfd43a Mon Sep 17 00:00:00 2001
From: Ghommie <42542238+Ghommie@users.noreply.github.com>
Date: Mon, 23 Sep 2019 18:20:45 +0200
Subject: [PATCH 4/5] M to L
---
code/modules/reagents/chemistry/reagents/other_reagents.dm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/code/modules/reagents/chemistry/reagents/other_reagents.dm b/code/modules/reagents/chemistry/reagents/other_reagents.dm
index 5d12fb47a9..d62ed8679c 100644
--- a/code/modules/reagents/chemistry/reagents/other_reagents.dm
+++ b/code/modules/reagents/chemistry/reagents/other_reagents.dm
@@ -210,8 +210,8 @@
/datum/reagent/water/holywater/on_mob_end_metabolize(mob/living/L)
REMOVE_TRAIT(L, TRAIT_HOLY, id)
- if(iscultist(M))
- for(var/datum/action/innate/cult/blood_magic/BM in M.actions)
+ if(iscultist(L))
+ for(var/datum/action/innate/cult/blood_magic/BM in L.actions)
BM.holy_dispel = FALSE
return ..()
From 274fdf8c0607dcf4bbc7dd833867955761fbf9f8 Mon Sep 17 00:00:00 2001
From: Ghommie <42542238+Ghommie@users.noreply.github.com>
Date: Tue, 24 Sep 2019 01:40:48 +0200
Subject: [PATCH 5/5] return.
---
code/modules/antagonists/cult/blood_magic.dm | 1 +
1 file changed, 1 insertion(+)
diff --git a/code/modules/antagonists/cult/blood_magic.dm b/code/modules/antagonists/cult/blood_magic.dm
index eed78156c5..a352dd3e78 100644
--- a/code/modules/antagonists/cult/blood_magic.dm
+++ b/code/modules/antagonists/cult/blood_magic.dm
@@ -36,6 +36,7 @@
/datum/action/innate/cult/blood_magic/Activate()
if(holy_dispel)
to_chat(owner, "Holy water currently scours your body, nullifying the power of the rites!")
+ return
var/rune = FALSE
var/limit = RUNELESS_MAX_BLOODCHARGE
for(var/obj/effect/rune/empower/R in range(1, owner))