Permafat restored, cryo bug fix

Bug that caused cryopods to not teleport afk people fixed
Fixed issues regarding saving persistent fat or permanent weight while in another player's character
This commit is contained in:
Alphas00
2024-09-10 21:20:42 +02:00
parent 5ef1b7b466
commit ea735b47b0
8 changed files with 99 additions and 11 deletions
@@ -249,9 +249,10 @@
var/mob/living/mob_occupant = occupant
//GS13 Process permanent fat
if(mob_occupant.client.prefs)
if(mob_occupant.client.ckey)
mob_occupant.client.prefs.perma_fat_save(mob_occupant)
if(iscarbon(mob_occupant))
var/mob/living/carbon/C = mob_occupant
if(C)
C.perma_fat_save(C)
//Update any existing objectives involving this mob.
for(var/datum/objective/O in GLOB.objectives)