mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Slighty nerfs holy light favour gen + usability buffs (#20853)
* slightly nerf * adds visual * Update buffs.dm * Update buffs.dm
This commit is contained in:
@@ -67,7 +67,7 @@
|
|||||||
var/favor = ..()
|
var/favor = ..()
|
||||||
boost_amount = initial(boost_amount)
|
boost_amount = initial(boost_amount)
|
||||||
if(favor)
|
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)
|
/datum/component/heal_react/boost/holylight/on_heal(var/mob/living/target,amount,damtype)
|
||||||
if(istype(get_area(target), /area/chapel))
|
if(istype(get_area(target), /area/chapel))
|
||||||
@@ -75,4 +75,4 @@
|
|||||||
var/favor = ..()
|
var/favor = ..()
|
||||||
boost_amount = initial(boost_amount)
|
boost_amount = initial(boost_amount)
|
||||||
if(favor)
|
if(favor)
|
||||||
GLOB.religious_sect.adjust_favor(round(min(favor * 2, 40), 0.1))
|
GLOB.religious_sect.adjust_favor(round(favor/2, 0.1))
|
||||||
|
|||||||
@@ -717,9 +717,11 @@
|
|||||||
REMOVE_TRAIT(owner, TRAIT_ANTIMAGIC, type)
|
REMOVE_TRAIT(owner, TRAIT_ANTIMAGIC, type)
|
||||||
owner.remove_atom_colour(TEMPORARY_COLOUR_PRIORITY)
|
owner.remove_atom_colour(TEMPORARY_COLOUR_PRIORITY)
|
||||||
|
|
||||||
|
|
||||||
|
#define HEALBOOST_FILTER "holy_glow"
|
||||||
/datum/status_effect/holylight_healboost
|
/datum/status_effect/holylight_healboost
|
||||||
id = "holy healboost"
|
id = "holy healboost"
|
||||||
duration = 30 SECONDS
|
duration = 1 MINUTES
|
||||||
tick_interval = -1
|
tick_interval = -1
|
||||||
status_type = STATUS_EFFECT_REFRESH
|
status_type = STATUS_EFFECT_REFRESH
|
||||||
alert_type = /atom/movable/screen/alert/status_effect/holylight_healboost
|
alert_type = /atom/movable/screen/alert/status_effect/holylight_healboost
|
||||||
@@ -734,7 +736,15 @@
|
|||||||
. = ..()
|
. = ..()
|
||||||
if(.)
|
if(.)
|
||||||
owner.AddComponent(/datum/component/heal_react/boost/holylight)
|
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()
|
/datum/status_effect/holylight_healboost/on_remove()
|
||||||
var/datum/component/heal_react/boost/holylight/healing = owner.GetComponent(/datum/component/heal_react/boost/holylight)
|
var/datum/component/heal_react/boost/holylight/healing = owner.GetComponent(/datum/component/heal_react/boost/holylight)
|
||||||
healing?.RemoveComponent()
|
healing?.RemoveComponent()
|
||||||
|
var/filter = owner.get_filter(HEALBOOST_FILTER)
|
||||||
|
if(filter)
|
||||||
|
animate(filter)
|
||||||
|
owner.remove_filter(HEALBOOST_FILTER)
|
||||||
|
|||||||
Reference in New Issue
Block a user