From 1c7a6c472e028cbe80b0f49495c252ce110e95b0 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Tue, 5 Dec 2023 10:09:12 +0300 Subject: [PATCH] [MIRROR] Fix void adaptation not reapplying when born from a headslug [MDB IGNORE] (#25422) (#970) * Fix void adaptation not reapplying when born from a headslug (#80108) ## About The Pull Request This bug happend because of 2 things, 1. the traits where applied to the current mob on *purchase* 2. When head slug calls regain_powers, it uses the grant proc There are 2 solutions for this. Either make void adapatation apply its effects on grant or change regain powers to be on purchase. This would break admin bussing non ling events into a lings innate_powers. but saves having to rewrite all ling thingies from on_purchase to on_grant ## Why It's Good For The Game Permantly losing void adaptation because of last resort is meh ## Changelog :cl: fix: Rebirthing from headslug properly reapplys void adaptation /:cl: * Fix void adaptation not reapplying when born from a headslug --------- Co-authored-by: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Co-authored-by: Autisem <36102060+Autisem@users.noreply.github.com> --- code/modules/antagonists/changeling/changeling.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/antagonists/changeling/changeling.dm b/code/modules/antagonists/changeling/changeling.dm index 7ae0d70c670..4191361c7a8 100644 --- a/code/modules/antagonists/changeling/changeling.dm +++ b/code/modules/antagonists/changeling/changeling.dm @@ -372,12 +372,12 @@ /datum/antagonist/changeling/proc/regain_powers() emporium_action.Grant(owner.current) for(var/datum/action/changeling/power as anything in innate_powers) - power.Grant(owner.current) + power.on_purchase(owner.current) for(var/power_path in purchased_powers) var/datum/action/changeling/power = purchased_powers[power_path] if(istype(power)) - power.Grant(owner.current) + power.on_purchase(owner.current) /* * The act of purchasing a certain power for a changeling.