Skip to content

Commit

Permalink
Merge pull request #1014 from MrCat15352/armor_chifri
Browse files Browse the repository at this point in the history
UPDATE: Visual view armor
  • Loading branch information
MysticalFaceLesS authored Oct 2, 2024
2 parents 0f91f3e + 2011826 commit 5ac0721
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 10 deletions.
42 changes: 32 additions & 10 deletions code/modules/clothing/clothing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -259,26 +259,48 @@
/obj/item/clothing/proc/armor_to_protection_class(armor_value)
armor_value = round(armor_value,10) / 10
switch (armor_value)
// [CELADON-EDIT] - CELADON_QOL - Заменяем на числовое значение отображение класса брони
// if (1)
// . = "I"
// if (2)
// . = "II"
// if (3)
// . = "III"
// if (4)
// . = "IV"
// if (5)
// . = "V"
// if (6)
// . = "VI"
// if (7)
// . = "VII"
// if (8)
// . = "VIII"
// if (9)
// . = "IX"
// if (10 to INFINITY)
// . = "X" // CELADON-EDIT - ORIGINAL
if (1)
. = "I"
. = "1"
if (2)
. = "II"
. = "2"
if (3)
. = "III"
. = "3"
if (4)
. = "IV"
. = "4"
if (5)
. = "V"
. = "5"
if (6)
. = "VI"
. = "6"
if (7)
. = "VII"
. = "7"
if (8)
. = "VIII"
. = "8"
if (9)
. = "IX"
. = "9"
if (10 to INFINITY)
. = "X"
. = "10"
// [/CELADON-EDIT]
return .

/obj/item/clothing/obj_break(damage_flag)
Expand Down
2 changes: 2 additions & 0 deletions mod_celadon/qol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ ID мода: CELADON_QOL
- REMOVE `code/modules/discord/toggle_notify.dm` Убрана неиспользуемая кнопка "Notify Restart" со вкладки "ООС"
- REMOVE `code/modules/tgui_panel/external.dm` Убрана кнопка "Fix chat" со вкладки "ООС". Устаревшая функция.

- EDIT `code/modules/clothing/clothing.dm` -> `armor_to_protection_class` -> Замена римских цифр на числовые значения

<!--
Если вы редактировали какие-либо процедуры или переменные в кор коде,
они должны быть указаны здесь.
Expand Down

0 comments on commit 5ac0721

Please sign in to comment.