From f03510c01058c42888593065628328e7be410ada Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Tue, 16 Apr 2024 22:09:31 +0300 Subject: [PATCH] initial commit --- code/datums/elements/weapon_description.dm | 24 +++++++++---------- code/modules/clothing/clothing.dm | 8 +++---- .../projectiles/ammunition/_ammunition.dm | 6 ++--- .../boxes_magazines/_box_magazine.dm | 4 ++-- code/modules/projectiles/guns/ballistic.dm | 2 +- code/modules/projectiles/guns/energy.dm | 12 +++++----- 6 files changed, 28 insertions(+), 28 deletions(-) diff --git a/code/datums/elements/weapon_description.dm b/code/datums/elements/weapon_description.dm index 0897b571159bb..d2cd6d08cb141 100644 --- a/code/datums/elements/weapon_description.dm +++ b/code/datums/elements/weapon_description.dm @@ -39,7 +39,7 @@ SIGNAL_HANDLER if(item.force >= 5 || item.throwforce >= 5 || item.override_notes || item.offensive_notes || attached_proc) /// Only show this tag for items that could feasibly be weapons, shields, or those that have special notes - examine_texts += span_notice("See combat information.") + examine_texts += span_notice("Боевые характеристики.") /** * @@ -75,16 +75,16 @@ if(!source.override_notes) // Make sure not to divide by 0 on accident if(source.force > 0) - readout += "It takes about [span_warning("[HITS_TO_CRIT(source.force)] melee hit\s")] to take down an enemy." + readout += "Примерно нужно ударов, чтобы обезвредить врага - [span_warning("[HITS_TO_CRIT(source.force)]")]" else - readout += "It does not deal noticeable melee damage." + readout += "Не наносит значимого урона ударами." if(source.throwforce > 0) - readout += "It takes about [span_warning("[HITS_TO_CRIT(source.throwforce)] throwing hit\s")] to take down an enemy." + readout += "Примерно нужно бросков, чтобы обезвредить врага - [span_warning("[HITS_TO_CRIT(source.throwforce)]")]" else - readout += "It does not deal noticeable throwing damage." + readout += "Не наносит значимого урона бросками." if(source.armour_penetration > 0 || source.block_chance > 0) - readout += "It has [span_warning("[weapon_tag_convert(source.armour_penetration)]")] armor-piercing capability and [span_warning("[weapon_tag_convert(source.block_chance)]")] blocking capability." + readout += "Имеет [span_warning("[weapon_tag_convert(source.armour_penetration)]")] способность к пробитию брони и [span_warning("[weapon_tag_convert(source.block_chance)]")] вероятность блокирования." // Custom manual notes if(source.offensive_notes) readout += source.offensive_notes @@ -107,14 +107,14 @@ /datum/element/weapon_description/proc/weapon_tag_convert(tag_val) switch(tag_val) if(0) - return "NO" + return "НИКАКУЮ" if(1 to 25) - return "LITTLE" + return "НИЗКУЮ" if(26 to 50) - return "AVERAGE" + return "СРЕДНЮЮ" if(51 to 75) - return "ABOVE-AVERAGE" + return "ВЫШЕ-СРЕДНЕГО" if(76 to INFINITY) - return "EXCELLENT" + return "ПРЕВОСХОДНУЮ" else - return "WEIRD" + return "СТРАННУЮ" diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 7722cf791a6db..4a39020c41630 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -347,13 +347,13 @@ . += how_cool_are_your_threads.Join() if(get_armor().has_any_armor() || (flags_cover & (HEADCOVERSMOUTH|PEPPERPROOF))) - . += span_notice("It has a tag listing its protection classes.") + . += span_notice("Имеется бирка, указывающая классы защиты.") /obj/item/clothing/Topic(href, href_list) . = ..() if(href_list["list_armor"]) - var/list/readout = list("PROTECTION CLASSES") + var/list/readout = list("КЛАССЫ ЗАЩИТЫ") var/datum/armor/armor = get_armor() var/added_damage_header = FALSE @@ -362,7 +362,7 @@ if(!rating) continue if(!added_damage_header) - readout += "\nARMOR (I-X)" + readout += "\nБРОНЯ (I-X)" added_damage_header = TRUE readout += "\n[armor_to_protection_name(damage_key)] [armor_to_protection_class(rating)]" @@ -372,7 +372,7 @@ if(!rating) continue if(!added_durability_header) - readout += "\nDURABILITY (I-X)" + readout += "\nПРОЧНОСТЬ (I-X)" added_damage_header = TRUE readout += "\n[armor_to_protection_name(durability_key)] [armor_to_protection_class(rating)]" diff --git a/code/modules/projectiles/ammunition/_ammunition.dm b/code/modules/projectiles/ammunition/_ammunition.dm index 45e09db624caf..e108444ccabf7 100644 --- a/code/modules/projectiles/ammunition/_ammunition.dm +++ b/code/modules/projectiles/ammunition/_ammunition.dm @@ -87,12 +87,12 @@ proj_damage_mult = our_gun.projectile_damage_multiplier var/list/readout = list() if(proj_damage_mult <= 0 || (initial_damage <= 0 && initial_stamina <= 0)) - return "Our legal team has determined the offensive nature of these [span_warning(caliber)] rounds to be esoteric." + return "Наша юридическая команда определила, что оружейная способность [span_warning(caliber)] патронов является эзотерическим." // No dividing by 0 if(initial_damage) - readout += "Most monkeys our legal team subjected to these [span_warning(caliber)] rounds succumbed to their wounds after [span_warning("[HITS_TO_CRIT((initial(exam_proj.damage) * proj_damage_mult) * pellets)] shot\s")] at point-blank, taking [span_warning("[pellets] shot\s")] per round." + readout += "Большинство мартышек, в которых стреляла наша юридическая команда [span_warning(caliber)] патронами, скончались от ран от следующего числа выстрелов в упор - [span_warning("[HITS_TO_CRIT((initial(exam_proj.damage) * proj_damage_mult) * pellets)]")], принимая попаданий за выстрел - [span_warning("[pellets]")]." if(initial_stamina) - readout += "[!readout.len ? "Most monkeys" : "More fortunate monkeys"] collapsed from exhaustion after [span_warning("[HITS_TO_CRIT((initial(exam_proj.stamina) * proj_damage_mult) * pellets)] impact\s")] of these [span_warning("[caliber]")] rounds." + readout += "[!readout.len ? "Большинство мартышек" : "Более везучие мартышки"] упали от усталости от [span_warning("[caliber]")] патронов от следующего числа выстрелов - [span_warning("[HITS_TO_CRIT((initial(exam_proj.stamina) * proj_damage_mult) * pellets)]")]" return readout.Join("\n") // Sending over a single string, rather than the whole list /obj/item/ammo_casing/update_icon_state() diff --git a/code/modules/projectiles/boxes_magazines/_box_magazine.dm b/code/modules/projectiles/boxes_magazines/_box_magazine.dm index 62f9185d2145c..7129ada3c6713 100644 --- a/code/modules/projectiles/boxes_magazines/_box_magazine.dm +++ b/code/modules/projectiles/boxes_magazines/_box_magazine.dm @@ -68,8 +68,8 @@ var/list/readout = list() if(caliber && max_ammo) // Text references a 'magazine' as only magazines generally have the caliber variable initialized - readout += "Up to [span_warning("[max_ammo] [caliber] [casing_phrasing]s")] can be found within this magazine. \ - \nAccidentally discharging any of these projectiles may void your insurance contract." + readout += "До [span_warning("[max_ammo] [caliber] [casing_phrasing]s")] могут находиться в магазине. \ + \nСлучайное применение любого из этих снарядов может привести к аннулированию страховки." var/obj/item/ammo_casing/mag_ammo = get_round(TRUE) diff --git a/code/modules/projectiles/guns/ballistic.dm b/code/modules/projectiles/guns/ballistic.dm index 9a4eb8dc5db98..e07e24c62ff7c 100644 --- a/code/modules/projectiles/guns/ballistic.dm +++ b/code/modules/projectiles/guns/ballistic.dm @@ -190,7 +190,7 @@ else if(chambered) // if you don't have a magazine, is there something chambered? return "\n[chambered.add_notes_ammo()]" else // we have a very expensive mechanical paperweight. - return "\nThe lack of magazine and usable cartridge in chamber makes its usefulness questionable, at best." + return "\nОтсутствие магазина и пригодного для стрельбы патрона в патроннике заставляет задуматься о полезности оружия." /obj/item/gun/ballistic/vv_edit_var(vname, vval) . = ..() diff --git a/code/modules/projectiles/guns/energy.dm b/code/modules/projectiles/guns/energy.dm index dfcb59f1e9c1c..b9208fe78ac67 100644 --- a/code/modules/projectiles/guns/energy.dm +++ b/code/modules/projectiles/guns/energy.dm @@ -97,21 +97,21 @@ if(!ammo_type.len) return var/obj/projectile/exam_proj - readout += "\nStandard models of this projectile weapon have [span_warning("[ammo_type.len] mode\s")]." - readout += "Our heroic interns have shown that one can theoretically stay standing after..." + readout += "\nСтандартные модели этого оружия имеют режимов - [span_warning("[ammo_type.len]")]." + readout += "Наши бравые интерны показали, что они могут выстоять..." if(projectile_damage_multiplier <= 0) - readout += "a theoretically infinite number of shots on [span_warning("every")] mode due to esoteric or nonexistent offensive potential." + readout += "теоретически бесконечное количество выстрелов на [span_warning("любом")] режиме из-за эзотерической или отстутсвующего боевого потенциала." return readout.Join("\n") // Sending over the singular string, rather than the whole list for(var/obj/item/ammo_casing/energy/for_ammo as anything in ammo_type) exam_proj = for_ammo.projectile_type if(!ispath(exam_proj)) continue if(initial(exam_proj.damage) > 0) // Don't divide by 0!!!!! - readout += "[span_warning("[HITS_TO_CRIT((initial(exam_proj.damage) * projectile_damage_multiplier) * for_ammo.pellets)] shot\s")] on [span_warning("[for_ammo.select_name]")] mode before collapsing from [initial(exam_proj.damage_type) == STAMINA ? "immense pain" : "their wounds"]." + readout += "выстрелов - [span_warning("[HITS_TO_CRIT((initial(exam_proj.damage) * projectile_damage_multiplier) * for_ammo.pellets)]")] на режиме [span_warning("[for_ammo.select_name]")], перед тем, как упасть от [initial(exam_proj.damage_type) == STAMINA ? "сильной боли" : "полученных ран"]." if(initial(exam_proj.stamina) > 0) // In case a projectile does damage AND stamina damage (Energy Crossbow) - readout += "[span_warning("[HITS_TO_CRIT((initial(exam_proj.stamina) * projectile_damage_multiplier) * for_ammo.pellets)] shot\s")] on [span_warning("[for_ammo.select_name]")] mode before collapsing from immense pain." + readout += "выстрелов - [span_warning("[HITS_TO_CRIT((initial(exam_proj.stamina) * projectile_damage_multiplier) * for_ammo.pellets)]")] на режиме [span_warning("[for_ammo.select_name]")], перед тем, как упасть от сильной боли." else - readout += "a theoretically infinite number of shots on [span_warning("[for_ammo.select_name]")] mode." + readout += "теоретически бесконечное количество выстрелов на режиме - [span_warning("[for_ammo.select_name]")]." return readout.Join("\n") // Sending over the singular string, rather than the whole list