[MIRROR] Changing changeling (Refactor) (#11142)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-07-05 04:54:55 +02:00
committed by GitHub
co-authored by Cameron Lennox Kashargul
parent 9feb91ec4c
commit a0c273ce1f
83 changed files with 1385 additions and 1382 deletions
+5 -4
View File
@@ -39,8 +39,9 @@
else
L = holder
L.mind.changeling.chem_charges = between(0, L.mind.changeling.chem_charges - chem_maintenance, L.mind.changeling.chem_storage)
if(L)
var/datum/component/antag/changeling/comp = L.GetComponent(/datum/component/antag/changeling)
comp.chem_charges = between(0, comp.chem_charges - chem_maintenance, comp.chem_storage)
/datum/modifier/changeling/thermal_sight
name = "Thermal Adaptation"
@@ -63,7 +64,7 @@
expire()
return
var/datum/changeling/changeling = L.changeling_power(0,0,100,CONSCIOUS)
var/datum/component/antag/changeling/changeling = L.changeling_power(0,0,100,CONSCIOUS)
if(!changeling)
expire()
@@ -85,7 +86,7 @@
L = holder
if(L)
var/datum/changeling/changeling = L.changeling_power(0,0,100,CONSCIOUS)
var/datum/component/antag/changeling/changeling = L.changeling_power(0,0,100,CONSCIOUS)
if(changeling)
changeling.thermal_sight = FALSE