Slighty nerfs holy light favour gen + usability buffs (#20853)

* slightly nerf

* adds visual

* Update buffs.dm

* Update buffs.dm
This commit is contained in:
Molti
2023-11-28 08:38:15 -06:00
committed by GitHub
parent 7b084ce464
commit 2cb3c6186b
2 changed files with 13 additions and 3 deletions

View File

@@ -67,7 +67,7 @@
var/favor = ..()
boost_amount = initial(boost_amount)
if(favor)
GLOB.religious_sect.adjust_favor(round(min(favor, 40), 0.1))
GLOB.religious_sect.adjust_favor(round(favor/2, 0.1))
/datum/component/heal_react/boost/holylight/on_heal(var/mob/living/target,amount,damtype)
if(istype(get_area(target), /area/chapel))
@@ -75,4 +75,4 @@
var/favor = ..()
boost_amount = initial(boost_amount)
if(favor)
GLOB.religious_sect.adjust_favor(round(min(favor * 2, 40), 0.1))
GLOB.religious_sect.adjust_favor(round(favor/2, 0.1))

View File

@@ -717,9 +717,11 @@
REMOVE_TRAIT(owner, TRAIT_ANTIMAGIC, type)
owner.remove_atom_colour(TEMPORARY_COLOUR_PRIORITY)
#define HEALBOOST_FILTER "holy_glow"
/datum/status_effect/holylight_healboost
id = "holy healboost"
duration = 30 SECONDS
duration = 1 MINUTES
tick_interval = -1
status_type = STATUS_EFFECT_REFRESH
alert_type = /atom/movable/screen/alert/status_effect/holylight_healboost
@@ -734,7 +736,15 @@
. = ..()
if(.)
owner.AddComponent(/datum/component/heal_react/boost/holylight)
owner.add_filter(HEALBOOST_FILTER, 2, list("type" = "outline", "color" = "#60A2A8", "alpha" = 0, "size" = 1))
var/filter = owner.get_filter(HEALBOOST_FILTER)
animate(filter, alpha = 200, time = 2 SECONDS, loop = -1, easing = EASE_OUT | CUBIC_EASING)
animate(alpha = 0, time = 2 SECONDS, loop = -1, easing = EASE_OUT | CUBIC_EASING)
/datum/status_effect/holylight_healboost/on_remove()
var/datum/component/heal_react/boost/holylight/healing = owner.GetComponent(/datum/component/heal_react/boost/holylight)
healing?.RemoveComponent()
var/filter = owner.get_filter(HEALBOOST_FILTER)
if(filter)
animate(filter)
owner.remove_filter(HEALBOOST_FILTER)