-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Перевод кухонной машинерии #292
Changes from 30 commits
0ee3f41
1c19997
d5dcb30
d7c3b22
ad41cb6
a15a958
f806095
b9de23f
81e663d
af67a38
7baa54a
0193f18
270c094
ac68ea7
e7feb12
8fbb99f
5d96859
175bd31
027470d
3ce8d9c
f6e6ec1
37d8cf3
4a73c1e
3fd0a99
da0793a
783c058
5f247cf
18f72a4
ee79a1b
058b984
2e0d16a
442259a
176aa42
04f3681
79cc275
d63a1d4
ffc14a3
49e1413
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -93,19 +93,19 @@ | |||||
var/list/asomnia_hadders = list() | ||||||
for(var/mob/smeller in get_hearers_in_view(DEFAULT_MESSAGE_RANGE, used_oven)) | ||||||
if(HAS_TRAIT(smeller, TRAIT_ANOSMIA)) | ||||||
asomnia_hadders += smeller | ||||||
asomnia_hadders += smeller | ||||||
|
||||||
if(positive_result) | ||||||
used_oven.visible_message( | ||||||
span_notice("You smell something great coming from [used_oven]."), | ||||||
blind_message = span_notice("You smell something great..."), | ||||||
span_notice("Вы чувствует как [used_oven.name] источает приятный запах."), | ||||||
blind_message = span_notice("Вы чувствуете приятный запах..."), | ||||||
ignored_mobs = asomnia_hadders, | ||||||
) | ||||||
BLACKBOX_LOG_FOOD_MADE(baked_result.type) | ||||||
else | ||||||
used_oven.visible_message( | ||||||
span_warning("You smell a burnt smell coming from [used_oven]."), | ||||||
blind_message = span_warning("You smell a burnt smell..."), | ||||||
span_warning("Вы чувствует как [used_oven.name] испускает горелое зловоние."), | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
blind_message = span_warning("Вы чувствуете запах горелого..."), | ||||||
ignored_mobs = asomnia_hadders, | ||||||
) | ||||||
SEND_SIGNAL(parent, COMSIG_ITEM_BAKED, baked_result) | ||||||
|
@@ -118,15 +118,15 @@ | |||||
if(!current_bake_time) //Not baked yet | ||||||
if(positive_result) | ||||||
if(initial(bake_result.gender) == PLURAL) | ||||||
examine_list += span_notice("[parent] can be [span_bold("baked")] into some [initial(bake_result.name)].") | ||||||
examine_list += span_notice("Это [parent.name]. [initial(bake_result.name)] могут [span_bold("готовиться")] из нее.") | ||||||
Check failure on line 121 in code/datums/components/bakeable.dm GitHub Actions / Run Linters
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Я не уверен, что это компилируется. Так как это сигнал, нам повезло. Скорее всего,
Suggested change
|
||||||
else | ||||||
examine_list += span_notice("[parent] can be [span_bold("baked")] into \a [initial(bake_result.name)].") | ||||||
examine_list += span_notice("Это [parent.name]. [span_bold("Готовится")] в [initial(bake_result.name)].") | ||||||
Check failure on line 123 in code/datums/components/bakeable.dm GitHub Actions / Run Linters
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
return | ||||||
|
||||||
if(positive_result) | ||||||
if(current_bake_time <= required_bake_time * 0.75) | ||||||
examine_list += span_notice("[parent] probably needs to be baked a bit longer!") | ||||||
examine_list += span_notice("Наверное, [parent.name] нужно выпекать немного дольше!") | ||||||
Check failure on line 128 in code/datums/components/bakeable.dm GitHub Actions / Run Linters
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
else if(current_bake_time <= required_bake_time) | ||||||
examine_list += span_notice("[parent] seems to be almost finished baking!") | ||||||
examine_list += span_notice("Кажется, что [parent.name] почти готов!") | ||||||
Check failure on line 130 in code/datums/components/bakeable.dm GitHub Actions / Run Linters
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
else | ||||||
examine_list += span_danger("[parent] should probably not be put in the oven.") | ||||||
examine_list += span_danger("[parent.name] не стоит засовывать в духовку.") | ||||||
Check failure on line 132 in code/datums/components/bakeable.dm GitHub Actions / Run Linters
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -16,8 +16,8 @@ GLOBAL_LIST_INIT(oilfry_blacklisted_items, typecacheof(list( | |||||
))) | ||||||
|
||||||
/obj/machinery/deepfryer | ||||||
name = "deep fryer" | ||||||
desc = "Deep fried <i>everything</i>." | ||||||
name = "фритюрница" | ||||||
desc = "Жарит <i>всё</i>." | ||||||
icon = 'icons/obj/machines/kitchen.dmi' | ||||||
icon_state = "fryer_off" | ||||||
density = TRUE | ||||||
|
@@ -78,9 +78,9 @@ GLOBAL_LIST_INIT(oilfry_blacklisted_items, typecacheof(list( | |||||
/obj/machinery/deepfryer/examine(mob/user) | ||||||
. = ..() | ||||||
if(frying) | ||||||
. += "You can make out \a [frying] in the oil." | ||||||
. += "Вы сможете разглядеть [frying] в масле." | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
if(in_range(user, src) || isobserver(user)) | ||||||
. += span_notice("The status display reads: Frying at <b>[fry_speed*100]%</b> speed.<br>Using <b>[oil_use]</b> units of oil per second.") | ||||||
. += span_notice("На дисплее состояния отображается: Жарка на <b>[fry_speed*100]%</b> скорости.<br>Используется <b>[oil_use]</b> юнитов масла в секунду.") | ||||||
|
||||||
/obj/machinery/deepfryer/wrench_act(mob/living/user, obj/item/tool) | ||||||
. = ..() | ||||||
|
@@ -91,23 +91,23 @@ GLOBAL_LIST_INIT(oilfry_blacklisted_items, typecacheof(list( | |||||
// Dissolving pills into the frier | ||||||
if(istype(weapon, /obj/item/reagent_containers/pill)) | ||||||
if(!reagents.total_volume) | ||||||
to_chat(user, span_warning("There's nothing to dissolve [weapon] in!")) | ||||||
to_chat(user, span_warning("Не в чем растворять [weapon]!")) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
return | ||||||
user.visible_message(span_notice("[user] drops [weapon] into [src]."), span_notice("You dissolve [weapon] in [src].")) | ||||||
user.visible_message(span_notice("[user] бросает [weapon.name] в [src.name]."), span_notice("Ты растворяешь [weapon.name] в [src.name].")) | ||||||
weapon.reagents.trans_to(src, weapon.reagents.total_volume, transferred_by = user) | ||||||
qdel(weapon) | ||||||
return | ||||||
// Make sure we have cooking oil | ||||||
if(!reagents.has_reagent(/datum/reagent/consumable/nutriment/fat, check_subtypes = TRUE)) | ||||||
to_chat(user, span_warning("[src] has no fat or oil to fry with!")) | ||||||
to_chat(user, span_warning("В [src.name] нет жира или масла для жарки!")) | ||||||
return | ||||||
// Don't deep fry indestructible things, for sanity reasons | ||||||
if(weapon.resistance_flags & INDESTRUCTIBLE) | ||||||
to_chat(user, span_warning("You don't feel it would be wise to fry [weapon]...")) | ||||||
to_chat(user, span_warning("Вы думаете, что не стоит жарить [weapon.name]...")) | ||||||
return | ||||||
// No fractal frying | ||||||
if(HAS_TRAIT(weapon, TRAIT_FOOD_FRIED)) | ||||||
to_chat(user, span_userdanger("Your cooking skills are not up to the legendary Doublefry technique.")) | ||||||
to_chat(user, span_userdanger("Ваши кулинарные способности не дотягивают до легендарной техники Doublefry.")) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
return | ||||||
// Handle opening up the fryer with tools | ||||||
if(default_deconstruction_screwdriver(user, "fryer_off", "fryer_off", weapon)) //where's the open maint panel icon?! | ||||||
|
@@ -144,14 +144,14 @@ GLOBAL_LIST_INIT(oilfry_blacklisted_items, typecacheof(list( | |||||
if(cook_time >= DEEPFRYER_COOKTIME && !frying_fried) | ||||||
frying_fried = TRUE //frying... frying... fried | ||||||
playsound(src.loc, 'sound/machines/ding.ogg', 50, TRUE) | ||||||
audible_message(span_notice("[src] dings!")) | ||||||
audible_message(span_notice("[src.name] звенит!")) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
else if (cook_time >= DEEPFRYER_BURNTIME && !frying_burnt) | ||||||
frying_burnt = TRUE | ||||||
var/list/asomnia_hadders = list() | ||||||
for(var/mob/smeller in get_hearers_in_view(DEFAULT_MESSAGE_RANGE, src)) | ||||||
if(HAS_TRAIT(smeller, TRAIT_ANOSMIA)) | ||||||
asomnia_hadders += smeller | ||||||
visible_message(span_warning("[src] emits an acrid smell!"), ignored_mobs = asomnia_hadders) | ||||||
visible_message(span_warning("[src.name] источает едкий запах!"), ignored_mobs = asomnia_hadders) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
use_energy(active_power_usage) | ||||||
|
||||||
|
@@ -172,10 +172,10 @@ GLOBAL_LIST_INIT(oilfry_blacklisted_items, typecacheof(list( | |||||
icon_state = "fryer_off" | ||||||
|
||||||
/obj/machinery/deepfryer/proc/start_fry(obj/item/frying_item, mob/user) | ||||||
to_chat(user, span_notice("You put [frying_item] into [src].")) | ||||||
to_chat(user, span_notice("Вы кладете [frying_item] в [src].")) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
if(istype(frying_item, /obj/item/freeze_cube)) | ||||||
log_bomber(user, "put a freeze cube in a", src) | ||||||
visible_message(span_userdanger("[src] starts glowing... Oh no...")) | ||||||
visible_message(span_userdanger("[src.name] начинает пылать... О нет...")) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
playsound(src, 'sound/effects/pray_chaplain.ogg', 100) | ||||||
add_filter("entropic_ray", 10, list("type" = "rays", "size" = 35, "color" = COLOR_VIVID_YELLOW)) | ||||||
addtimer(CALLBACK(src, PROC_REF(blow_up)), 5 SECONDS) | ||||||
|
@@ -192,7 +192,7 @@ GLOBAL_LIST_INIT(oilfry_blacklisted_items, typecacheof(list( | |||||
fry_loop.start() | ||||||
|
||||||
/obj/machinery/deepfryer/proc/blow_up() | ||||||
visible_message(span_userdanger("[src] blows up from the entropic reaction!")) | ||||||
visible_message(span_userdanger("[src.name] взрывается в результате энтропийной реакции!")) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
explosion(src, devastation_range = 1, heavy_impact_range = 3, light_impact_range = 5, flame_range = 7) | ||||||
deconstruct(FALSE) | ||||||
|
||||||
|
@@ -201,28 +201,28 @@ GLOBAL_LIST_INIT(oilfry_blacklisted_items, typecacheof(list( | |||||
|
||||||
/obj/machinery/deepfryer/attack_hand(mob/living/user, list/modifiers) | ||||||
if(frying) | ||||||
to_chat(user, span_notice("You eject [frying] from [src].")) | ||||||
to_chat(user, span_notice("Вы вытаскиваете [frying.name] из [src.name].")) | ||||||
frying.forceMove(drop_location()) | ||||||
if(Adjacent(user) && !issilicon(user)) | ||||||
user.put_in_hands(frying) | ||||||
return | ||||||
|
||||||
else if(user.pulling && iscarbon(user.pulling) && reagents.total_volume) | ||||||
if(user.grab_state < GRAB_AGGRESSIVE) | ||||||
to_chat(user, span_warning("You need a better grip to do that!")) | ||||||
to_chat(user, span_warning("Тебе нужно получше схватить для этого!")) | ||||||
return | ||||||
var/mob/living/carbon/dunking_target = user.pulling | ||||||
log_combat(user, dunking_target, "dunked", null, "into [src]") | ||||||
user.visible_message(span_danger("[user] dunks [dunking_target]'s face in [src]!")) | ||||||
log_combat(user, dunking_target, "dunked", null, "into [src.name]") | ||||||
user.visible_message(span_danger("[user] макает лицо [dunking_target.name] в [src.name]!")) | ||||||
reagents.expose(dunking_target, TOUCH) | ||||||
var/bio_multiplier = dunking_target.getarmor(BODY_ZONE_HEAD, BIO) * 0.01 | ||||||
var/target_temp = dunking_target.bodytemperature | ||||||
var/cold_multiplier = 1 | ||||||
if(target_temp < TCMB + 10) // a tiny bit of leeway | ||||||
dunking_target.visible_message(span_userdanger("[dunking_target] explodes from the entropic difference! Holy fuck!")) | ||||||
dunking_target.investigate_log("has been gibbed by entropic difference (being dunked into [src]).", INVESTIGATE_DEATHS) | ||||||
dunking_target.visible_message(span_userdanger("[dunking_target.name] взрывается от энтропийной разницы! Блять!")) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
dunking_target.investigate_log("has been gibbed by entropic difference (being dunked into [src.name]).", INVESTIGATE_DEATHS) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
не трогаем логи |
||||||
dunking_target.gib(DROP_ALL_REMAINS) | ||||||
log_combat(user, dunking_target, "blew up", null, "by dunking them into [src]") | ||||||
log_combat(user, dunking_target, "blew up", null, "by dunking them into [src.name]") | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
return | ||||||
|
||||||
else if(target_temp < T0C) | ||||||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,7 +1,7 @@ | ||||||
|
||||||
/obj/machinery/food_cart | ||||||
name = "food cart" | ||||||
desc = "A compact unpackable mobile cooking stand. Wow! When unpacked, it reminds you of those greasy gamer setups some people on NTNet have." | ||||||
name = "тележка с едой" | ||||||
desc = "Компактная мобильная стойка для кулинарных работ с возможностью распаковки. Вот это да! В распакованном виде она напоминает те жирные геймерские установки, которые есть у некоторых людей в NTNet." | ||||||
icon = 'icons/obj/service/kitchen.dmi' | ||||||
icon_state = "foodcart" | ||||||
density = TRUE | ||||||
|
@@ -44,16 +44,16 @@ | |||||
. = ..() | ||||||
if(!(machine_stat & BROKEN)) | ||||||
if(cart_griddle.machine_stat & BROKEN) | ||||||
. += span_warning("The stand's <b>griddle</b> is completely broken!") | ||||||
. += span_warning("<b>Гриль</b> стойки сломан!") | ||||||
else | ||||||
. += span_notice("The stand's <b>griddle</b> is intact.") | ||||||
. += span_notice("The stand's <b>fridge</b> seems fine.") //weirdly enough, these fridges don't break | ||||||
. += span_notice("The stand's <b>table</b> seems fine.") | ||||||
. += span_notice("<b>Гриль</b> стойки целый.") | ||||||
. += span_notice("<b>Холодильник</b> стойки целый.") //weirdly enough, these fridges don't break | ||||||
. += span_notice("<b>Стол</b> стойки целый.") | ||||||
|
||||||
/obj/machinery/food_cart/proc/pack_up() | ||||||
if(!unpacked) | ||||||
return | ||||||
visible_message(span_notice("[src] retracts all of it's unpacked components.")) | ||||||
visible_message(span_notice("[src.name] втягивает все свои распакованные части.")) | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
for(var/o in packed_things) | ||||||
var/obj/object = o | ||||||
UnregisterSignal(object, COMSIG_MOVABLE_MOVED) | ||||||
|
@@ -65,9 +65,9 @@ | |||||
if(unpacked) | ||||||
return | ||||||
if(!check_setup_place()) | ||||||
to_chat(user, span_warning("There isn't enough room to unpack here! Bad spaces were marked in red.")) | ||||||
to_chat(user, span_warning("Здесь не хватит места, чтобы все распаковать! Плохие места отмечены красным цветом.")) | ||||||
return | ||||||
visible_message(span_notice("[src] expands into a full stand.")) | ||||||
visible_message(span_notice("[src.name] расширяется, превращаясь в полноценную стойку.")) | ||||||
set_anchored(TRUE) | ||||||
var/iteration = 1 | ||||||
var/turf/grabbed_turf = get_step(get_turf(src), EAST) | ||||||
|
@@ -82,15 +82,15 @@ | |||||
/obj/machinery/food_cart/attack_hand(mob/living/user, list/modifiers) | ||||||
. = ..() | ||||||
if(machine_stat & BROKEN) | ||||||
to_chat(user, span_warning("[src] is completely busted.")) | ||||||
to_chat(user, span_warning("[src.name] полностью разрушена.")) | ||||||
return | ||||||
var/obj/item/card/id/id_card = user.get_idcard(hand_first = TRUE) | ||||||
if(!check_access(id_card)) | ||||||
playsound(src, 'sound/machines/buzz-sigh.ogg', 30, TRUE) | ||||||
return | ||||||
to_chat(user, span_notice("You attempt to [unpacked ? "pack up" :"unpack"] [src]...")) | ||||||
to_chat(user, span_notice("Вы пытаетесь [unpacked ? "распаковать" :"разобрать"] [src.name]...")) | ||||||
if(!do_after(user, 5 SECONDS, src)) | ||||||
to_chat(user, span_warning("Your [unpacked ? "" :"un"]packing of [src] was interrupted!")) | ||||||
to_chat(user, span_warning("Ваша [unpacked ? "распаковка" :"разборка"] [src.name] была прервана!")) | ||||||
return | ||||||
if(unpacked) | ||||||
pack_up() | ||||||
|
@@ -132,8 +132,8 @@ | |||||
QDEL_NULL(cart_tent) | ||||||
|
||||||
/obj/effect/food_cart_stand | ||||||
name = "food cart tent" | ||||||
desc = "Something to battle the sun, for there are no breaks for the burger flippers." | ||||||
name = "палатка тележки с едой" | ||||||
desc = "Что-нибудь для борьбы с солнцем, ведь перерывов в работе у работников бургерной нет." | ||||||
icon = 'icons/obj/fluff/3x3.dmi' | ||||||
icon_state = "stand" | ||||||
layer = ABOVE_MOB_LAYER//big mobs will still go over the tent, this is fine and cool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.