Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 6bd0faa

Browse files
authored
Update eldritch_antag.dm (#22550)
1 parent 2bdfec3 commit 6bd0faa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

code/modules/antagonists/eldritch_cult/eldritch_antag.dm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,16 @@
254254
current = mob_override
255255
current.faction -= "heretics"
256256

257+
/datum/antagonist/heretic/on_body_transfer(mob/living/old_body, mob/living/new_body)
258+
. = ..()
259+
if(old_body == new_body) // if they were using a temporary body
260+
return
261+
262+
for(var/knowledge_index in researched_knowledge)
263+
var/datum/eldritch_knowledge/knowledge = researched_knowledge[knowledge_index]
264+
knowledge.on_lose(old_body, src)
265+
knowledge.on_gain(new_body, src)
266+
257267
/datum/antagonist/heretic/get_admin_commands()
258268
. = ..()
259269
.["Equip"] = CALLBACK(src, PROC_REF(equip_cultist))

0 commit comments

Comments
 (0)