diff --git a/code/__DEFINES/misc.dm b/code/__DEFINES/misc.dm index 0dfee4494782..b21ef56e9baa 100644 --- a/code/__DEFINES/misc.dm +++ b/code/__DEFINES/misc.dm @@ -39,10 +39,10 @@ #define GAME_STATE_FINISHED 4 //Security levels -#define SEC_LEVEL_GREEN 0 -#define SEC_LEVEL_BLUE 1 -#define SEC_LEVEL_RED 2 -#define SEC_LEVEL_DELTA 3 +#define SEC_LEVEL_GREEN 1 +#define SEC_LEVEL_BLUE 2 +#define SEC_LEVEL_RED 3 +#define SEC_LEVEL_DELTA 4 #define ROUNDSTART_LOGOUT_REPORT_TIME 6000 //Amount of time (in deciseconds) after the rounds starts, that the player disconnect report is issued. diff --git a/code/datums/wires/nuclearbomb.dm b/code/datums/wires/nuclearbomb.dm index 7472536be2f2..ecc3a9a621b9 100644 --- a/code/datums/wires/nuclearbomb.dm +++ b/code/datums/wires/nuclearbomb.dm @@ -34,7 +34,7 @@ var/global/const/NUKE_WIRE_SAFETY = 4 N.timing = 0 if(istype(N, /obj/machinery/nuclearbomb/fake)) return - if(get_security_level() == "delta") + if(code_name_eng[security_level] == "delta") set_security_level("red") if(NUKE_WIRE_SAFETY) diff --git a/code/game/machinery/alarm.dm b/code/game/machinery/alarm.dm index 092b8b5f781f..d44260e309c3 100644 --- a/code/game/machinery/alarm.dm +++ b/code/game/machinery/alarm.dm @@ -1134,7 +1134,7 @@ FIRE ALARM d2 = text("Initiate Time Lock", src) var/second = round(time) % 60 var/minute = (round(time) - second) / 60 - var/dat = "[d1]\n
The current alert level is: [get_security_level()]

\nTimer System: [d2]
\nTime Left: [(minute ? "[minute]:" : null)][second] - - + +\n" + var/dat = "[d1]\n
The current alert level is: [code_name_eng[security_level]]

\nTimer System: [d2]
\nTime Left: [(minute ? "[minute]:" : null)][second] - - + +\n" var/datum/browser/popup = new(user, "window=firealarm", src.name) popup.set_content(dat) @@ -1151,7 +1151,7 @@ FIRE ALARM d2 = text("[]", src, stars("Initiate Time Lock")) var/second = round(time) % 60 var/minute = (round(time) - second) / 60 - var/dat = "[d1]\n
The current alert level is: [stars(get_security_level())]

\nTimer System: [d2]
\nTime Left: [(minute ? text("[]:", minute) : null)][second] - - + +\n" + var/dat = "[d1]\n
The current alert level is: [stars(code_name_eng[security_level])]

\nTimer System: [d2]
\nTime Left: [(minute ? text("[]:", minute) : null)][second] - - + +\n" var/datum/browser/popup = new(user, "window=firealarm", stars(src.name)) popup.set_content(dat) @@ -1216,16 +1216,20 @@ FIRE ALARM /obj/machinery/firealarm/examine(mob/user) . = ..() var/msg - switch(get_security_level()) + switch(code_name_eng[security_level]) if("green") - msg = "Green" + msg = "зелёный" + to_chat(user, "Маленький индикатор указывает на [msg] уровень тревоги.") if("blue") - msg = "Blue" + msg = "синий" + to_chat(user, "Маленький индикатор указывает на [msg] уровень тревоги.") if("red") - msg = "Red" + msg = "красный" + to_chat(user, "Маленький индикатор указывает на [msg] уровень тревоги.") if("delta") - msg = "Delta" - to_chat(user, "The small light indicates [msg] security level.") + msg = "дельта" + to_chat(user, "Маленький индикатор указывает об активированном коде [msg].") + /obj/machinery/firealarm/atom_init(mapload, dir, building) . = ..() @@ -1246,7 +1250,7 @@ FIRE ALARM if(is_station_level(z) || is_mining_level(z)) if(security_level) - add_overlay(image('icons/obj/monitors.dmi', "overlay_[get_security_level()]")) + add_overlay(image('icons/obj/monitors.dmi', "overlay_[code_name_eng[security_level]]")) else add_overlay(image('icons/obj/monitors.dmi', "overlay_green")) diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm index 16a6a6d8fb8f..339bafe6b163 100644 --- a/code/game/machinery/computer/communications.dm +++ b/code/game/machinery/computer/communications.dm @@ -1,7 +1,8 @@ // The communications computer /obj/machinery/computer/communications name = "Communications Console" - desc = "This can be used for various important functions. Still under developement." + cases = list("консоль коммуникаций", "консоли коммуникаций", "консоли коммуникаций", "консоль коммуникаций", "консолью коммуникаций", "консоли коммуникаций") + desc = "Эта консоль имеет функционал для управления станцией." icon_state = "comm" light_color = "#0099ff" req_access = list(access_heads) @@ -97,7 +98,7 @@ return if (!is_station_level(z)) - to_chat(usr, "Unable to establish a connection: You're too far away from the station!") + to_chat(usr, "Невозможно установить соединение: Вы слишком далеко от станции!") return FALSE if(!href_list["operation"]) return FALSE @@ -125,7 +126,7 @@ var/mob/M = usr var/obj/item/weapon/card/id/I = M.get_active_hand() if(last_seclevel_change > world.time) - to_chat(usr, "A red light flashes on the console. It looks like you can't change the security level that fast.") + to_chat(usr, "Красный индикатор загорелся на консоли. Вероятно, вы не можете менять код тревоги так быстро!") return else last_seclevel_change = world.time + 1 MINUTE @@ -141,8 +142,8 @@ set_security_level(tmp_alertlevel) if(security_level != old_level) //Only notify the admins if an actual change happened - log_game("[key_name(usr)] has changed the security level to [get_security_level()].") - message_admins("[key_name_admin(usr)] has changed the security level to [get_security_level()]. [ADMIN_JMP(usr)]") + log_game("[key_name(usr)] has changed the security level to [code_name_eng[security_level]].") + message_admins("[key_name_admin(usr)] has changed the security level to [code_name_eng[security_level]]. [ADMIN_JMP(usr)]") switch(security_level) if(SEC_LEVEL_GREEN) feedback_inc("alert_comms_green",1) @@ -150,20 +151,20 @@ feedback_inc("alert_comms_blue",1) tmp_alertlevel = 0 else - to_chat(usr, "You are not authorized to do this.") + to_chat(usr, "У вас недостаточно прав для выполнения этой операции!") tmp_alertlevel = 0 state = STATE_DEFAULT else - to_chat(usr, "You need to swipe your ID.") + to_chat(usr, "Проведите своей ID-картой.") if("announce") if(src.authenticated == 2) if(last_announcement > world.time) - to_chat(usr, "A red light flashes on the console. It looks like you can't make announcements that fast.") + to_chat(usr, "На консоли мигает красный индикатор. Вероятно, вы не можете делать оповещения так быстро!") return else last_announcement = world.time + 1 MINUTE - var/input = sanitize(input(usr, "Please choose a message to announce to the station crew.", "Priority Announcement") as null|message, extra = FALSE) + var/input = sanitize(input(usr, "Передайте оповещение, которое прозвучит на всю станцию.", "Приоритетное оповещение") as null|message, extra = FALSE) if(!input || !(usr in view(1,src))) return announcement.play(input) //This should really tell who is, IE HoP, CE, HoS, RD, Captain @@ -229,23 +230,23 @@ post_status(href_list["statdisp"]) if("setmsg1") - stat_msg1 = sanitize(input("Line 1", "Enter Message Text", stat_msg1) as text|null, MAX_LNAME_LEN) + stat_msg1 = sanitize(input("Линия 1", "Введите текст оповещения", stat_msg1) as text|null, MAX_LNAME_LEN) updateDialog() if("setmsg2") - stat_msg2 = sanitize(input("Line 2", "Enter Message Text", stat_msg2) as text|null, MAX_LNAME_LEN) + stat_msg2 = sanitize(input("Линия 2", "Введите текст оповещения", stat_msg2) as text|null, MAX_LNAME_LEN) updateDialog() // OMG CENTCOMM LETTERHEAD if("MessageCentcomm") if(src.authenticated==2) if(CM.cooldown) - to_chat(usr, "Arrays recycling. Please stand by.") + to_chat(usr, "Блюспейс-передатчик в состоянии перезагрузки. Ожидайте.") return - var/input = sanitize(input(usr, "Please choose a message to transmit to Centcomm via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response. There is a 30 second delay before you may send another message, be clear, full and concise.", "To abort, send an empty message.", "")) + var/input = sanitize(input(usr, "Передайте оповещение Центкому через квантовую связь. Этот процесс является крайне затратным, потому злоупотребление им приведёт к вашему... увольнению. Передача сообщения не гарантирует ответ. Между сообщениями есть промежуток в 30 секунд, поэтому они должны содержать полную информацию.", "Чтобы отменить, отправьте пустое сообщение.", "")) if(!input || !(usr in view(1,src))) return Centcomm_announce(input, usr) - to_chat(usr, "Message transmitted.") + to_chat(usr, "Сообщение отправлено.") log_say("[key_name(usr)] has made an IA Centcomm announcement: [input]") CM.cooldown = 55 @@ -254,18 +255,18 @@ if("MessageSyndicate") if((src.authenticated==2) && (src.emagged)) if(CM.cooldown) - to_chat(usr, "Arrays recycling. Please stand by.") + to_chat(usr, "Обработка информации. Ожидайте.") return - var/input = sanitize(input(usr, "Please choose a message to transmit to \[ABNORMAL ROUTING CORDINATES\] via quantum entanglement. Please be aware that this process is very expensive, and abuse will lead to... termination. Transmission does not guarantee a response. There is a 30 second delay before you may send another message, be clear, full and concise.", "To abort, send an empty message.", "")) + var/input = sanitize(input(usr, "Передайте оповещение \[НЕИЗВЕСТНЫМ\] через блюспейс-связь. Этот процесс является крайне затратным, потому злоупотребление им приведёт к вашему увольнению. Передача сообщения не гарантирует ответ. Между сообщениями есть промежуток в 30 секунд, поэтому они должны содержать полную информацию.", "Чтобы отменить, отправьте пустое сообщение.", "")) if(!input || !(usr in view(1,src))) return Syndicate_announce(input, usr) - to_chat(usr, "Message transmitted.") + to_chat(usr, "Сообщение отправлено!") log_say("[key_name(usr)] has made a Syndicate announcement: [input]") CM.cooldown = 55 //about one minute if("RestoreBackup") - to_chat(usr, "Backup routing data restored!") + to_chat(usr, "Резервные данные маршрутизации восстановлены!") src.emagged = 0 updateDialog() @@ -318,23 +319,23 @@ if(emagged) return FALSE src.emagged = 1 - to_chat(user, "You scramble the communication routing circuits!") + to_chat(user, "Вы шифруете схемы маршрутизации связи!") return TRUE /obj/machinery/computer/communications/ui_interact(mob/user) if (!SSmapping.has_level(z)) - to_chat(user, "Unable to establish a connection: You're too far away from the station!") + to_chat(user, "Невозможно установить соединение: Вы слишком далеко от станции!") return var/dat = "" if (SSshuttle.online && SSshuttle.location == 0) - dat += "Emergency shuttle\n
\nETA: [shuttleeta2text()]
" + dat += "Аварийный шаттл\n
\nПримерное время прибытия: [shuttleeta2text()]
" if (issilicon(user)) var/dat2 = interact_ai(user) // give the AI a different interact proc to limit its access if(dat2) dat += dat2 - var/datum/browser/popup = new(user, "communications", "Communications Console", 400, 500) + var/datum/browser/popup = new(user, "communications", "Консоль коммуникаций", 400, 500) popup.set_content(dat) popup.open() return @@ -342,76 +343,76 @@ switch(src.state) if(STATE_DEFAULT) if (src.authenticated) - dat += "
Log Out" + dat += "
Выйти из системы" if (src.authenticated==2) - dat += "
Make An Announcement" + dat += "
Сделать оповещение" if(src.emagged == 0) - dat += "
Send an emergency message to Centcomm" + dat += "
Отправить экстренное сообщение Центкому" else - dat += "
Send an emergency message to \[UNKNOWN\]" - dat += "
Restore Backup Routing Data" + dat += "
Отправить экстренное сообщение \[НЕИЗВЕСТНО\]" + dat += "
Восстановить резервные данные маршрутизации" - dat += "
Change alert level" + dat += "
Сменить код тревоги" if(SSshuttle.location==0) if (SSshuttle.online) - dat += "
Cancel Shuttle Call" + dat += "
Отменить вызов шаттла" else - dat += "
Call Emergency Shuttle" + dat += "
Вызвать экстренный шаттл" - dat += "
Set Status Display" + dat += "
Установить статус дисплея" else - dat += "
Log In" - dat += "
Message List" + dat += "
Авторизоваться" + dat += "
Список сообщений" if(STATE_CALLSHUTTLE) - dat += "Are you sure you want to call the shuttle? OK | Cancel" + dat += "Вы уверены, что хотите вызвать шаттл? ДА | НЕТ" if(STATE_CANCELSHUTTLE) - dat += "Are you sure you want to cancel the shuttle? OK | Cancel" + dat += "Вы уверены, что хотите отозвать шаттл? ДА | НЕТ" if(STATE_MESSAGELIST) - dat += "Messages:" + dat += "Сообщения:" for(var/i = 1; i<=src.messagetitle.len; i++) dat += "
[src.messagetitle[i]]" if(STATE_VIEWMESSAGE) if (src.currmsg) dat += "[src.messagetitle[src.currmsg]]

[src.messagetext[src.currmsg]]" if (src.authenticated) - dat += "

Delete" + dat += "

Удалить" else src.state = STATE_MESSAGELIST attack_hand(user) return if(STATE_DELMESSAGE) if (src.currmsg) - dat += "Are you sure you want to delete this message? OK | Cancel" + dat += "Вы уверены, что хотите удалить это сообщение? ДА | НЕТ" else src.state = STATE_MESSAGELIST attack_hand(user) return if(STATE_STATUSDISPLAY) - dat += "Set Status Displays
" - dat += "Clear
" - dat += "Default
" - dat += "Shuttle ETA
" - dat += "Message" - dat += "
" - dat += " Alert: Red Alert |" - dat += " Lockdown |" - dat += " Biohazard

" + dat += "Установить текст на дисплеях
" + dat += "Очистить
" + dat += "По умолчанию
" + dat += "Время до прибытия шаттла
" + dat += "Сообщение" + dat += "
" + dat += " Alert: Красный код тревоги |" + dat += " Карантин |" + dat += " Биологическая угроза

" if(STATE_ALERT_LEVEL) - dat += "Current alert level: [get_security_level()]
" + dat += "Текущий код тревоги: [code_name_ru[security_level]]
" if(security_level == SEC_LEVEL_DELTA) - dat += "The self-destruct mechanism is active. Find a way to deactivate the mechanism to lower the alert level or evacuate." + dat += "Активирован механизм самоуничтожения. Деактивируйте механизм для снижения кода или эвакуируйтесь." else - dat += "Blue
" - dat += "Green" + dat += "Синий
" + dat += "Зелёный" if(STATE_CONFIRM_LEVEL) - dat += "Current alert level: [get_security_level()]
" - dat += "Confirm the change to: [num2seclevel(tmp_alertlevel)]
" - dat += "Swipe ID to confirm change.
" + dat += "Текущий код тревоги: [code_name_ru[security_level]]
" + dat += "Подтвердить смену кода тревоги на: [code_name_ru[tmp_alertlevel]]
" + dat += "Проведите ID-картой для смены кода.
" - dat += "
[(src.state != STATE_DEFAULT) ? "Main Menu | " : ""]" + dat += "
[(src.state != STATE_DEFAULT) ? "Главное меню | " : ""]" - var/datum/browser/popup = new(user, "communications", "Communications Console", 400, 500) + var/datum/browser/popup = new(user, "communications", "Консоль коммуникаций", 400, 500) popup.set_content(dat) popup.open() @@ -421,11 +422,11 @@ switch(src.aistate) if(STATE_DEFAULT) if(SSshuttle.location==0 && !SSshuttle.online) - dat += "
Call Emergency Shuttle" - dat += "
Message List" - dat += "
Set Status Display" + dat += "
Вызвать экстренный шаттл" + dat += "
Список сообщений" + dat += "
Установить текст на дисплеях" if(STATE_CALLSHUTTLE) - dat += "Are you sure you want to call the shuttle? OK | Cancel" + dat += "Вы уверены, что хотите вызвать экстренный шаттл? ДА | НЕТ" if(STATE_MESSAGELIST) dat += "Messages:" for(var/i = 1; i<=src.messagetitle.len; i++) @@ -433,33 +434,34 @@ if(STATE_VIEWMESSAGE) if (src.aicurrmsg) dat += "[src.messagetitle[src.aicurrmsg]]

[src.messagetext[src.aicurrmsg]]" - dat += "

Delete" + dat += "

Удалить сообщение" else src.aistate = STATE_MESSAGELIST attack_hand(user) return null if(STATE_DELMESSAGE) if(src.aicurrmsg) - dat += "Are you sure you want to delete this message? OK | Cancel" + dat += "Вы уверены, что хотите удалить это сообщение? ДА | НЕТ" else src.aistate = STATE_MESSAGELIST attack_hand(user) return if(STATE_STATUSDISPLAY) - dat += "Set Status Displays
" - dat += "Clear
" - dat += "Shuttle ETA
" - dat += "Message" - dat += "
" - dat += "Alert: None |" - dat += " Red Alert |" - dat += " Lockdown |" - dat += " Biohazard

" - - - dat += "
[(src.aistate != STATE_DEFAULT) ? "Main Menu | " : ""]" + dat += "Установить текст на дисплеях
" + dat += "Очистить
" + dat += "Прилёт шаттла
" + dat += "Время прибытия шаттла
" + dat += "Режим передачи сообщений" + dat += "
" + dat += "Alert: Стандартный режим |" + dat += " Красный код тревоги |" + dat += " Изоляция |" + dat += " Биологическая опасность

" + + + dat += "
[(src.aistate != STATE_DEFAULT) ? "Главное меню | " : ""]" return dat /proc/call_shuttle_proc(mob/user) @@ -467,19 +469,20 @@ return if(sent_strike_team == 1) - to_chat(user, "Centcom will not allow the shuttle to be called. Consider all contracts terminated.") + to_chat(user, "Центком отказал в запросе шаттла на станцию. Все контракты расторгнуты.") return if(world.time < 6000) // Ten minute grace period to let the game get going without lolmetagaming. -- TLE - to_chat(user, "The emergency shuttle is refueling. Please wait another [round((6000-world.time)/600)] minutes before trying again.") + var/time_to_stay = round((6000-world.time)/600) + to_chat(user, "Шаттл находится на дозаправке. Пожалуйста, подождите еще [time_to_stay] [pluralize_russian(time_to_stay, "минута", "минуты", "минут")] до повторного вызова.") return if(SSshuttle.direction == -1) - to_chat(user, "The emergency shuttle may not be called while returning to CentCom.") + to_chat(user, "Аварийный шаттл возвращается к отделению Центкома, вызов невозможен.") return if(SSshuttle.online) - to_chat(user, "The emergency shuttle is already on its way.") + to_chat(user, "Аварийный шаттл уже вызван.") return SSshuttle.incall() @@ -492,29 +495,31 @@ return /proc/init_shift_change(mob/user, force = 0) - if ((!( SSticker ) || SSshuttle.location)) + if((!( SSticker ) || SSshuttle.location)) return if(SSshuttle.direction == -1) - to_chat(user, "The shuttle may not be called while returning to CentCom.") + to_chat(user, "Шаттл возвращается к Центкому, вызов невозможен.") return if(SSshuttle.online) - to_chat(user, "The shuttle is already on its way.") + to_chat(user, "Шаттл уже вызван.") return // if force is 0, some things may stop the shuttle call if(!force) if(SSshuttle.deny_shuttle) - to_chat(user, "Centcom does not currently have a shuttle available in your sector. Please try again later.") + to_chat(user, "Центком не имеет доступного шаттла в этом секторе, пожалуйста, подождите.") return if(sent_strike_team == 1) - to_chat(user, "Centcom will not allow the shuttle to be called. Consider all contracts terminated.") + to_chat(user, "Центком отказал в запросе шаттла на станцию. Все контракты расторгнуты.") return + if(world.time < 54000) // 30 minute grace period to let the game get going - to_chat(user, "The shuttle is refueling. Please wait another [round((54000-world.time)/600)] minutes before trying again.")//may need to change "/600" + var/time_to_stay = round((54000-world.time)/600) + to_chat(user, "Шаттл находится на дозаправке. Пожалуйста, подождите еще [time_to_stay] [pluralize_russian(time_to_stay, "минута", "минуты", "минут")] до повторного вызова.")//may need to change "/600" return SSshuttle.shuttlealert(1) @@ -527,10 +532,10 @@ /proc/cancel_call_proc(mob/user) if ((!( SSticker ) || SSshuttle.location || SSshuttle.direction == 0)) - to_chat(user, "The console is not responding.") + to_chat(user, "Консоль не отвечает.") return if(SSshuttle.timeleft() < 300) - to_chat(user, "Shuttle is close and it's too late for cancellation.") + to_chat(user, "Шаттл близко. Отменять запрос уже поздно.") return if(SSshuttle.direction != -1 && SSshuttle.online) //check that shuttle isn't already heading to centcomm diff --git a/code/game/machinery/computer/shop.dm b/code/game/machinery/computer/shop.dm index 203bf0cb4f7e..ff7ebeb225ae 100644 --- a/code/game/machinery/computer/shop.dm +++ b/code/game/machinery/computer/shop.dm @@ -37,16 +37,15 @@ var/data[0] data["stationTime"] = worldtime2text() - var/secLevelStr - switch(get_security_level()) - if("green") - secLevelStr = "" - if("blue") - secLevelStr = "" - if("red") - secLevelStr = "" - if("delta") - secLevelStr = "Δ" + var/secLevelStr = code_name_eng[security_level] + if(security_level == SEC_LEVEL_GREEN) + secLevelStr = "" + if(security_level == SEC_LEVEL_BLUE) + secLevelStr = "" + if(security_level == SEC_LEVEL_RED) + secLevelStr = "" + if(security_level == SEC_LEVEL_DELTA) + secLevelStr = "Δ" data["securityLevel"] = secLevelStr data["mode"] = mode diff --git a/code/game/objects/items/devices/PDA/PDA.dm b/code/game/objects/items/devices/PDA/PDA.dm index ce34416ce86c..ee110d8d8f73 100644 --- a/code/game/objects/items/devices/PDA/PDA.dm +++ b/code/game/objects/items/devices/PDA/PDA.dm @@ -614,16 +614,15 @@ data["stationTime"] = worldtime2text() - var/secLevelStr - switch(get_security_level()) - if("green") - secLevelStr = "" - if("blue") - secLevelStr = "" - if("red") - secLevelStr = "" - if("delta") - secLevelStr = "Δ" + var/secLevelStr = code_name_eng[security_level] + if(security_level == SEC_LEVEL_GREEN) + secLevelStr = "" + if(security_level == SEC_LEVEL_BLUE) + secLevelStr = "" + if(security_level == SEC_LEVEL_RED) + secLevelStr = "" + if(security_level == SEC_LEVEL_DELTA) + secLevelStr = "Δ" data["securityLevel"] = secLevelStr data["new_Message"] = newmessage diff --git a/code/game/response_team/response_team.dm b/code/game/response_team/response_team.dm index 3ffa4d6b390b..16172ee0adf6 100644 --- a/code/game/response_team/response_team.dm +++ b/code/game/response_team/response_team.dm @@ -42,7 +42,7 @@ var/global/can_call_ert return if(tgui_alert(usr, "Вы хотите отправить отряд быстрого реагирования?",, list("Да","Нет")) != "Да") return - if(get_security_level() != "red") // Allow admins to reconsider if the alert level isn't Red + if(code_name_eng[security_level] != "red") // Allow admins to reconsider if the alert level isn't Red if(tgui_alert(usr, "На станции не введён красный код. Вы всё ещё хотите отправить отряд быстрого реагирования?",, list("Да","Нет")) != "Да") return diff --git a/code/modules/admin/secrets.dm b/code/modules/admin/secrets.dm index 41b99d4066f4..2e311f924adf 100644 --- a/code/modules/admin/secrets.dm +++ b/code/modules/admin/secrets.dm @@ -483,16 +483,16 @@ message_admins("[key_name_admin(usr)] has triggered a battle to the death (only one)") // Security levels if("securitylevel0") - set_security_level(0) + set_security_level(SEC_LEVEL_GREEN) message_admins("[key_name_admin(usr)] change security level to Green.", 1) if("securitylevel1") - set_security_level(1) + set_security_level(SEC_LEVEL_BLUE) message_admins("[key_name_admin(usr)] change security level to Blue.", 1) if("securitylevel2") - set_security_level(2) + set_security_level(SEC_LEVEL_RED) message_admins("[key_name_admin(usr)] change security level to Red.", 1) if("securitylevel3") - set_security_level(3) + set_security_level(SEC_LEVEL_DELTA) message_admins("[key_name_admin(usr)] change security level to Delta.", 1) // Drop asteroid if("drop_asteroid") diff --git a/code/modules/security_levels/security_levels.dm b/code/modules/security_levels/security_levels.dm index a314bdb71199..9e9e2a138241 100644 --- a/code/modules/security_levels/security_levels.dm +++ b/code/modules/security_levels/security_levels.dm @@ -1,5 +1,7 @@ -/var/security_level = 0 +/var/security_level = SEC_LEVEL_GREEN /var/delta_timer_id = 0 +var/global/list/code_name_eng = list("green", "blue", "red", "delta") +var/global/list/code_name_ru = list("зелёный", "синий", "красный", "дельта") /proc/set_security_level(level) switch(level) @@ -93,36 +95,3 @@ var/global/list/quiet_alarm_areas = typecacheof(typesof(/area/station/maintenanc else if (is_type_in_typecache(A, loud_alarm_areas)) M.playsound_local(get_turf(M), 'sound/machines/alarm_delta.ogg', VOL_EFFECTS_MASTER, null, FALSE) return - -/proc/get_security_level() - switch(security_level) - if(SEC_LEVEL_GREEN) - return "green" - if(SEC_LEVEL_BLUE) - return "blue" - if(SEC_LEVEL_RED) - return "red" - if(SEC_LEVEL_DELTA) - return "delta" - -/proc/num2seclevel(num) - switch(num) - if(SEC_LEVEL_GREEN) - return "green" - if(SEC_LEVEL_BLUE) - return "blue" - if(SEC_LEVEL_RED) - return "red" - if(SEC_LEVEL_DELTA) - return "delta" - -/proc/seclevel2num(seclevel) - switch( lowertext(seclevel) ) - if("green") - return SEC_LEVEL_GREEN - if("blue") - return SEC_LEVEL_BLUE - if("red") - return SEC_LEVEL_RED - if("delta") - return SEC_LEVEL_DELTA