Skip to content

Commit

Permalink
Готово к мержу.
Browse files Browse the repository at this point in the history
  • Loading branch information
timchigaming committed Jul 4, 2024
1 parent 74696a7 commit 57c8526
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
50 changes: 50 additions & 0 deletions code/datums/diseases/viruses/babylon_feve.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/datum/disease/virus/babylonian_fever
name = "Babylonian Fever"
agent = "Babylon fever agent"
desc = "If left untreated, the subject will be in a state of disorientation and will forget all the languages he knew."
max_stages = 3
spread_flags = AIRBORNE
visibility_flags = HIDDEN_HUD
cure_text = "Mannitol & Mitocholide"
cures = list("mannitol", "mitocholide")
cure_prob = 30
permeability_mod = 0.75
severity = MEDIUM
var/known_languages = list()

/datum/disease/virus/babylonian_fever/stage_act()
if(!..())
return FALSE
switch(stage)
if(1)
if(affected_mob.languages && !LAZYLEN(known_languages))
for(var/datum/language/lan in affected_mob.languages)
LAZYADD(known_languages, lan)
affected_mob.remove_language(lan.name)
if(2, 3)
if(prob(stage))
affected_mob.adjustBrainLoss(0.5)
if(prob(stage))
affected_mob.say(pick(
"Ммм... гхм...",
"А-а-а... эээ...",
"Брр... бл... бл...",
"Гх... гх... гх...",
"Ааа... ааа... ааа...",
"Ух... ух... ух...",
"Хм... хм... хм...",
"Шш... шш... шш...",
"Ыы... ыы... ыы...",
"Оо... оо... оо...",
"Ээ... ээ... ээ...",
"Ии... ии... ии...",
)
)
return FALSE

/datum/disease/virus/babylonian_fever/has_cure()
if(..())
if(LAZYLEN(known_languages))
for(var/datum/language/lan in known_languages)
affected_mob.add_language(lan.name)
return TRUE
3 changes: 2 additions & 1 deletion code/modules/events/disease_outbreak.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
1; /datum/disease/virus/pierrot_throat,
1; /datum/disease/virus/pierrot_throat/advanced,
1; /datum/disease/virus/tuberculosis,
1; /datum/disease/virus/wizarditis
1; /datum/disease/virus/wizarditis,
2; /datum/disease/virus/babylonian_fever
)
if(virus_type == /datum/disease/virus/advance)
//creates only contagious viruses, that are always visible in Pandemic
Expand Down
2 changes: 2 additions & 0 deletions paradise.dme
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@
#include "code\datums\diseases\vampire.dm"
#include "code\datums\diseases\viruses\_virus.dm"
#include "code\datums\diseases\viruses\anxiety.dm"
#include "code\datums\diseases\viruses\babylon_feve.dm"
#include "code\datums\diseases\viruses\beesease.dm"
#include "code\datums\diseases\viruses\brainrot.dm"
#include "code\datums\diseases\viruses\cadaver.dm"
Expand Down Expand Up @@ -1066,6 +1067,7 @@
#include "code\game\objects\items\documents.dm"
#include "code\game\objects\items\flag.dm"
#include "code\game\objects\items\gems.dm"
#include "code\game\objects\items\gib_on_examine.dm"
#include "code\game\objects\items\hand_item.dm"
#include "code\game\objects\items\hourglass.dm"
#include "code\game\objects\items\latexballoon.dm"
Expand Down

0 comments on commit 57c8526

Please sign in to comment.