mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Refactors anomanly neutralizer to use the effect remover component (#64864)
Anomalies are effects, effect remover is made to remove effects, might as well make use of it? Also makes some cool sparks around it now so that's neat
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
* certain effects (such as cult runes) in one attack.
|
||||
*/
|
||||
/datum/component/effect_remover
|
||||
dupe_mode = COMPONENT_DUPE_ALLOWED
|
||||
/// Line sent to the user on successful removal.
|
||||
var/success_feedback
|
||||
/// Line forcesaid by the user on successful removal.
|
||||
@@ -59,8 +60,10 @@
|
||||
if(success_forcesay)
|
||||
user.say(success_forcesay, forced = item_parent.name)
|
||||
if(success_feedback)
|
||||
var/real_feedback = replacetext(success_feedback, "%THEEFFECT", "[target]")
|
||||
real_feedback = replacetext(real_feedback, "%THEWEAPON", "[item_parent]")
|
||||
var/real_feedback = replacetext(success_feedback, "%THEEFFECT", "\the [target]")
|
||||
real_feedback = replacetext(real_feedback, "%THEWEAPON", "\the [item_parent]")
|
||||
to_chat(user, span_notice(real_feedback))
|
||||
on_clear_callback?.Invoke(target, user)
|
||||
qdel(target)
|
||||
|
||||
if(!QDELETED(target))
|
||||
qdel(target)
|
||||
|
||||
Reference in New Issue
Block a user