From 5c3a44083110cfa1abb3147a366364b3e5c967bf Mon Sep 17 00:00:00 2001 From: TimChi Date: Tue, 8 Oct 2024 17:46:51 +0300 Subject: [PATCH] add_language(lan.name) --- code/datums/diseases/viruses/babylon_feve.dm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/datums/diseases/viruses/babylon_feve.dm b/code/datums/diseases/viruses/babylon_feve.dm index 4ec4236f100..f88cd6723f8 100644 --- a/code/datums/diseases/viruses/babylon_feve.dm +++ b/code/datums/diseases/viruses/babylon_feve.dm @@ -37,7 +37,7 @@ "Уээ... Уэээ... УЭЭЭЭ...", "Ээ... ээ... ээ...", "Ии... ии... ии...", - "Двести... двадцать..." + "Двести... двадцать..."\ ) ) @@ -49,7 +49,9 @@ stored_languages += affected_mob.languages.Copy() // Remove existing languages - affected_mob.languages.Cut() + if(affected_mob.languages) + for(var/datum/language/lan in affected_mob.languages) + affected_mob.remove_language(lan.name) return TRUE @@ -57,7 +59,8 @@ if(..()) // Restore previously known languages if(stored_languages.len) - affected_mob.languages = stored_languages.Copy() + for(var/datum/language/lan in stored_languages) + affected_mob.add_language(lan.name) stored_languages.Cut() // Clear the stored languages return TRUE