Skip to content

Commit

Permalink
[MIRROR] Fix void adaptation not reapplying when born from a headslug…
Browse files Browse the repository at this point in the history
… [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 <[email protected]>
Co-authored-by: Autisem <[email protected]>
  • Loading branch information
3 people authored Dec 5, 2023
1 parent 71d141d commit 1c7a6c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/antagonists/changeling/changeling.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1c7a6c4

Please sign in to comment.