Skip to content

Commit

Permalink
Правка по ревью и чистка
Browse files Browse the repository at this point in the history
  • Loading branch information
msw7007 committed Jul 12, 2024
1 parent 058b984 commit 2e0d16a
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 21 deletions.
15 changes: 8 additions & 7 deletions code/datums/components/bakeable.dm
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@

if(positive_result)
used_oven.visible_message(
span_notice("Вы чувствует как [used_oven.name] источает приятный запах."),
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("Вы чувствует как [used_oven.name] испускает горелое зловоние."),
span_warning("Вы чувствуете как [used_oven.name] испускает горелое зловоние."),
blind_message = span_warning("Вы чувствуете запах горелого..."),
ignored_mobs = asomnia_hadders,
)
Expand All @@ -115,18 +115,19 @@
/datum/component/bakeable/proc/on_examine(atom/source, mob/user, list/examine_list)
SIGNAL_HANDLER

var/obj/sourceobj = parent
if(!current_bake_time) //Not baked yet
if(positive_result)
if(initial(bake_result.gender) == PLURAL)
examine_list += span_notice("Это [parent.name]. [initial(bake_result.name)] могут [span_bold("готовиться")] из нее.")
examine_list += span_notice("Это [sourceobj.name]. [initial(bake_result.name)] могут [span_bold("готовиться")] из нее.")
else
examine_list += span_notice("Это [parent.name]. [span_bold("Готовится")] в [initial(bake_result.name)].")
examine_list += span_notice("Это [sourceobj.name]. [span_bold("Готовится")] в [initial(bake_result.name)].")
return

if(positive_result)
if(current_bake_time <= required_bake_time * 0.75)
examine_list += span_notice("Наверное, [parent.name] нужно выпекать немного дольше!")
examine_list += span_notice("Наверное, [sourceobj.name] нужно выпекать немного дольше!")
else if(current_bake_time <= required_bake_time)
examine_list += span_notice("Кажется, что [parent.name] почти готов!")
examine_list += span_notice("Кажется, что [sourceobj.name] почти готов!")
else
examine_list += span_danger("[parent.name] не стоит засовывать в духовку.")
examine_list += span_danger("[sourceobj.name] не стоит засовывать в духовку.")
2 changes: 1 addition & 1 deletion code/modules/food_and_drinks/machinery/griddle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
loaded++
AddToGrill(tray_item, user)
if(loaded)
to_chat(user, span_notice("Вы вываливаете [loaded.name] на [src.name]."))
to_chat(user, span_notice("Вы вываливаете [loaded] на [src.name]."))
update_appearance()
return ITEM_INTERACT_SUCCESS
return ITEM_INTERACT_BLOCKING
Expand Down
2 changes: 1 addition & 1 deletion code/modules/food_and_drinks/machinery/icecream_vat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
if(flavor.add_flavour(source, should_use_custom_ingredients ? custom_ice_cream_beaker.reagents : null))
for(var/reagents_used in flavor.ingredients)
reagents.remove_reagent(reagents_used, CONE_REAGENET_NEEDED)
balloon_alert_to_viewers("делается шарик [selected_flavour.name]", "делает шарик [selected_flavour.name]")
balloon_alert_to_viewers("набирает шарик, где содержится[selected_flavour]", "набирает шарик, где содержится [selected_flavour]")

if(istype(cone))
if(isnull(cone.crafted_food_buff))
Expand Down
14 changes: 7 additions & 7 deletions code/modules/food_and_drinks/machinery/microwave.dm
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@
return NONE

if(broken > NOT_BROKEN)
balloon_alert(user, "он сломан!")
return ITEM_INTERACT_BLOCKING
balloon_alert(user, "он сломан!")
return ITEM_INTERACT_BLOCKING

if(istype(item, /obj/item/stock_parts/power_store/cell) && cell_powered)
var/swapped = FALSE
Expand All @@ -403,12 +403,12 @@
return ITEM_INTERACT_SUCCESS

if(!anchored)
balloon_alert(user, "не прикручено!")
return ITEM_INTERACT_BLOCKING
balloon_alert(user, "не прикручено!")
return ITEM_INTERACT_BLOCKING

if(dirty >= MAX_MICROWAVE_DIRTINESS) // The microwave is all dirty so can't be used!
balloon_alert(user, "cлишком грязно!")
return TRUE
balloon_alert(user, "cлишком грязно!")
return TRUE

if(vampire_charging_capable && istype(item, /obj/item/modular_computer) && ingredients.len > 0)
balloon_alert(user, "максимум 1 устройство!")
Expand All @@ -435,7 +435,7 @@
ingredients += tray_item
if(loaded)
open(autoclose = 0.6 SECONDS)
to_chat(user, span_notice("Вы вставляете [loaded.name] в [src.name]."))
to_chat(user, span_notice("Вы вставляете [loaded] в [src.name]."))
update_appearance()
return ITEM_INTERACT_SUCCESS

Expand Down
2 changes: 1 addition & 1 deletion code/modules/food_and_drinks/machinery/oven.dm
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
loaded++
AddToPlate(tray_item, user)
if(loaded)
to_chat(user, span_notice("Вы вставляете [loaded.name] в [src.name]."))
to_chat(user, span_notice("Вы вставляете [loaded] в [src.name]."))
update_appearance()
return ITEM_INTERACT_SUCCESS
return ITEM_INTERACT_BLOCKING
Expand Down
2 changes: 1 addition & 1 deletion code/modules/food_and_drinks/machinery/processor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
loaded++

if(loaded)
to_chat(user, span_notice("Вы вставляете [loaded.name] в [src.name]."))
to_chat(user, span_notice("Вы вставляете [loaded] в [src.name]."))
return

var/datum/food_processor_process/recipe = PROCESSOR_SELECT_RECIPE(attacking_item)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/food_and_drinks/machinery/smartfridge.dm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
return ITEM_INTERACT_BLOCKING

user.visible_message(
span_notice("[user.name] начинает срезать [name.name] от пола."),
span_notice("[user] начинает срезать [name] от пола."),
span_notice("Вы начинаете срезать [src.name] от пола..."),
span_hear("Вы слышите сварку."),
)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/food_and_drinks/machinery/stove.dm
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
loaded++
LAZYADD(added_ingredients, tray_item)
if(loaded)
to_chat(user, span_notice("Вы добавляете [loaded.name] в [src.name]."))
to_chat(user, span_notice("Вы добавляете [loaded] в [src.name]."))
update_appearance(UPDATE_OVERLAYS)
return TRUE

Expand Down
2 changes: 1 addition & 1 deletion code/modules/food_and_drinks/machinery/stove_component.dm
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@

if(user.transferItemToLoc(attacking_item, parent))
add_container(attacking_item, user)
to_chat(user, span_notice("Вы положили [attacking_item.name] в [parent.name]."))
to_chat(user, span_notice("Вы положили [attacking_item.name] в [parent]."))
return COMPONENT_NO_AFTERATTACK

/datum/component/stove/proc/on_exited(obj/machinery/source, atom/movable/gone, direction)
Expand Down

0 comments on commit 2e0d16a

Please sign in to comment.