Skip to content

Commit

Permalink
add_language(lan.name)
Browse files Browse the repository at this point in the history
  • Loading branch information
timchigaming committed Oct 8, 2024
1 parent 921bf70 commit 5c3a440
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/datums/diseases/viruses/babylon_feve.dm
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"Уээ... Уэээ... УЭЭЭЭ...",
"Ээ... ээ... ээ...",
"Ии... ии... ии...",
"Двести... двадцать..."
"Двести... двадцать..."\
)
)

Expand All @@ -49,15 +49,18 @@
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

/datum/disease/virus/babylonian_fever/has_cure()
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
Expand Down

0 comments on commit 5c3a440

Please sign in to comment.