Skip to content
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

Изменение текстур стаков телекристаллов, БС и нормальности, а так же … #1078

Merged
merged 2 commits into from
Feb 27, 2025

Conversation

RaNlik321
Copy link
Contributor

@RaNlik321 RaNlik321 commented Feb 25, 2025

…фиксы.

Изменение ТК, БС кристаллов и кристаллов нормальности.

Описание PR

Изменение текстур кристаллов нормальности и телекристаллов. Добавление стаков БС кристаллам, кристаллам нормальности и телекристаллам. Изменение создания дренажа сияния под стаки.

Медиа

image

Тип PR

  • Feature
  • Fix
  • Tweak
  • Balance
  • Refactor
  • Port
  • Translate
  • Resprite

Изменения

🆑 RaNlik

  • tweak: Изменены спрайты кристаллов нормальности и телекристаллов.

Summary by CodeRabbit

  • Новые возможности

    • Добавлены новые варианты материалов: блюспейс кристалл (версия 10) и кристалл нормальности с дополнительными версиями.
    • Введён новый материал «normality crystal» с уникальными цветом и ценой, расширяющий каталог материалов.
    • Обновлено визуальное представление телекристаллов за счёт новых графических слоёв и состояний.
  • Обновления

    • Улучшены параметры стэкинга и увеличено максимальное количество для некоторых материалов.
    • Упрощены рецепты конструкции для определённых устройств, что делает систему более понятной и эффективной.
    • Обновлены метаданные для материалов, добавлены новые состояния для улучшения визуализации.

…фиксы.

Изменение текстур кристаллов нормальности и телекристаллов.
Добавление стаков БС кристаллам, кристаллам нормальности и телекристаллам.
@RaNlik321 RaNlik321 requested a review from Rxup as a code owner February 25, 2025 23:32
Copy link
Contributor

coderabbitai bot commented Feb 25, 2025

Walkthrough

В данном pull request внесены изменения в локализацию, прототипы, стеки и метаданные для материалов, кристаллов и телекристаллов. Добавлены новые записи (например, ent-MaterialBluespace10, CrystalNormality1, CrystalNormality10, NormalityCrystal), изменены существующие сущности (увеличено значение count, обновлены ссылки и компоненты) и уточнены параметры отображения (иконки, слои, состояния спрайтов). Рефакторинг затронул как файлы локализации, так и файлы прототипов, рецептов и текстур, упрощая и объединяя некоторые определения.

Changes

Файл или группа файлов Изменения
Resources/Locale/ru-RU/ss14-ru/.../materials.ftl
Resources/Locale/ru-RU/ss14-ru/.../crystals.ftl
Добавлены новые записи: ent-MaterialBluespace10, ent-CrystalNormality1, ent-CrystalNormality10; обновлён ent-CrystalNormality (добавлено поле .suffix = "Полный")
Resources/Prototypes/Entities/Objects/Specific/syndicate.yml Для сущности telecrystal: добавлены разделы layers в Sprite, новый компонент Appearance, обновлён Stack (поля baseLayer и layerStates); для Telecrystal1, Telecrystal5, Telecrystal10 добавлен stackType: Telecrystal
Resources/Prototypes/Stacks/Materials/crystals.yml
Resources/Prototypes/_Backmen/Stacks/materials.yml
Для Telecrystal изменён формат свойства icon (объект со sprite и state) и добавлен параметр maxCount: 30; добавлена новая запись для normalitycrystal со свойствами spawn и maxCount; у Bluespace добавлено maxCount: 30
Resources/Prototypes/_Backmen/Entities/Objects/Materials/materials.yml
Resources/Prototypes/_Backmen/Entities/Objects/Specific/Research/crystals.yml
В materials.yml: увеличено значение count для MaterialBluespace и добавлен новый тип MaterialBluespace10; в crystals.yml: изменение родительского класса CrystalNormality, обновление описания и компонентов, а также добавление новых сущностей CrystalNormality1 и CrystalNormality10 с разными count
Resources/Prototypes/_Backmen/Reactions/psionic.yml
Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/structures/glimmerdevices.yml
В psionic.yml: изменена ссылка в реакции CreateNormalityCrystal с CrystalNormality на CrystalNormality1; в glimmerdevices.yml: упрощён шаг для glimmerDrain, заменены множественные записи NormalityCrystal на единое определение (material, amount, doAfter)
Resources/Prototypes/_Backmen/Reagents/Materials/materials.yml Добавлена новая запись материала: NormalityCrystal с заданными параметрами (id, name, icon, color, stackEntity, price)
Resources/Textures/Backmen/Objects/Materials/materials.rsi/meta.json
Resources/Textures/Objects/Specific/Syndicate/telecrystal.rsi/meta.json
В materials.rsi/meta.json: расширен массив состояний (добавлены normalitycrystal, normalitycrystal_2, normalitycrystal_3); в telecrystal.rsi/meta.json: добавлены состояния telecrystal_2 и telecrystal_3, удалены состояния inhand-left и inhand-right

Sequence Diagram(s)

sequenceDiagram
    participant User as Пользователь
    participant ReactionSystem as СистемаРеакций
    participant EntityFactory as ФабрикаСущностей

    User->>ReactionSystem: Активация реакции CreateNormalityCrystal
    ReactionSystem->>EntityFactory: Запрос создания CrystalNormality1
    EntityFactory-->>ReactionSystem: Возврат созданного CrystalNormality1
    ReactionSystem-->>User: Подтверждение создания сущности
Loading

Poem

Я кролик, скачу между строк,
В обновлениях нахожу волшебный звук.
Сущности и кристаллы зажигаются вновь,
Код и текстура дарят нам светлый марш.
Пусть изменения летят, как пушистый плюш,
Сквозь байты и строки – радость и уют!
🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added S: Untriaged size/M Changes: Sprites Should be reviewed or fixed by people who are knowledgeable with spriting or visual design. No C# Нету кода. Changes: Localization Can be reviewed or fixed by people who are knowledgeable with translation and removed size/M labels Feb 25, 2025
Copy link
Contributor

github-actions bot commented Feb 25, 2025

RSI Diff Bot; head commit b169b60 merging into 8576db1
This PR makes changes to 1 or more RSIs. Here is a summary of all changes:

Resources/Textures/Objects/Specific/Syndicate/telecrystal.rsi

State Old New Status
telecrystal Modified
telecrystal_2 Added
telecrystal_3 Added

Resources/Textures/Backmen/Objects/Materials/materials.rsi

State Old New Status
normalitycrystal Added
normalitycrystal_2 Added
normalitycrystal_3 Added

Edit: diff updated after b169b60

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (11)
Resources/Prototypes/_Backmen/Reagents/Materials/materials.yml (1)

15-15: Отсутствует новая строка в конце файла.

Отсутствует символ новой строки в конце файла, что выявлено статическим анализатором YAMLlint.

Добавьте пустую строку в конец файла для соответствия стандартам и предотвращения предупреждений линтера.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 15-15: no new line character at the end of file

(new-line-at-end-of-file)

Resources/Prototypes/_Backmen/Stacks/materials.yml (1)

13-13: Форматирование: символ новой строки
Обнаружено отсутствие символа новой строки в конце файла. Добавьте перенос строки для соответствия стандартам YAML.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 13-13: no new line character at the end of file

(new-line-at-end-of-file)

Resources/Prototypes/_Backmen/Entities/Objects/Materials/materials.yml (3)

45-45: Форматирование: лишние пробелы
Обнаружены лишние пробельные символы в конце строки (линия 45). Рекомендуется удалить их для соблюдения стандартов кодирования.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 45-45: trailing spaces

(trailing-spaces)


52-52: Проблема с отступами для компонента Stack
Нарушены правила отступов – ожидается 4 пробела, обнаружено 2. Исправьте отступы, чтобы обеспечить корректное форматирование YAML.

🧰 Tools
🪛 YAMLlint (1.35.1)

[warning] 52-52: wrong indentation: expected 4 but found 2

(indentation)


57-57: Неправильный отступ в списке тегов
Отступ для тегов должен составлять 6 пробелов, а найдено только 4. Проверьте и исправьте отступы для корректной структуры YAML.

🧰 Tools
🪛 YAMLlint (1.35.1)

[warning] 57-57: wrong indentation: expected 6 but found 4

(indentation)

Resources/Prototypes/Stacks/Materials/crystals.yml (2)

4-4: Форматирование свойства icon
Обратите внимание на избыточные пробелы после двоеточия в строке 4. Рекомендуется привести форматирование к общему стилю YAML.

🧰 Tools
🪛 YAMLlint (1.35.1)

[warning] 4-4: too many spaces after colon

(colons)


6-6: Новый символ новой строки
Добавьте символ новой строки в конце файла, чтобы удовлетворить требования YAMLlint по наличию переноса строки в конце файла.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 6-6: no new line character at the end of file

(new-line-at-end-of-file)

Resources/Prototypes/Entities/Objects/Specific/syndicate.yml (2)

11-26: Добавлена поддержка стеков для телекристаллов.

Структура компонентов обновлена для поддержки различных состояний спрайтов в зависимости от размера стека. Изменения соответствуют цели PR по введению функциональности стекирования для телекристаллов.

Однако есть проблемы с форматированием YAML:

  • Лишние пробелы в конце строк 15, 16 и 26
  • Неправильные отступы в строках 13 и 22 (используется 6 пробелов вместо 4)

Рекомендую исправить форматирование для соответствия стандартам проекта:

- # Backmen-Stak-Start
-    layers:
-      - state: telecrystal_3
-        map: ["base"]
-  - type: Item 
-    size: Tiny 
+# Backmen-Stak-Start
+    layers:
+    - state: telecrystal_3
+      map: ["base"]
+  - type: Item
+    size: Tiny

И аналогично для других мест с неправильными отступами и пробелами.

🧰 Tools
🪛 YAMLlint (1.35.1)

[warning] 13-13: wrong indentation: expected 4 but found 6

(indentation)


[error] 15-15: trailing spaces

(trailing-spaces)


[error] 16-16: trailing spaces

(trailing-spaces)


[warning] 22-22: wrong indentation: expected 4 but found 6

(indentation)


[error] 26-26: trailing spaces

(trailing-spaces)


58-70: Добавлены явные указания stackType для дочерних сущностей телекристаллов.

Явное указание типа стека в дочерних сущностях обеспечивает единообразие и предотвращает возможные ошибки при наследовании.

Необходимо удалить лишние пробелы в конце строк 61 и 69:

-    count: 1
-        
+    count: 1
+
-    count: 5    
+    count: 5
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 61-61: trailing spaces

(trailing-spaces)


[error] 69-69: trailing spaces

(trailing-spaces)

Resources/Prototypes/_Backmen/Entities/Objects/Specific/Research/crystals.yml (2)

2-29: Переработана структура кристалла нормальности для поддержки стеков.

Сущность CrystalNormality теперь наследуется от MaterialBase вместо BaseItem, что позволяет использовать функционал материалов и стеков. Добавлены компоненты для поддержки различных размеров стеков и состояний спрайтов.

Есть проблемы с форматированием YAML:

  • Лишние пробелы в конце строки 11
  • Неправильные отступы в строках 10 и 21 (используется 6 пробелов вместо 4)

Рекомендую исправить форматирование:

-    layers:
-      - state: normalitycrystal_3
-        map: ["base"] 
+    layers:
+    - state: normalitycrystal_3
+      map: ["base"]

И аналогично для других мест с неправильными отступами и пробелами.

🧰 Tools
🪛 YAMLlint (1.35.1)

[warning] 10-10: wrong indentation: expected 4 but found 6

(indentation)


[error] 11-11: trailing spaces

(trailing-spaces)


[warning] 21-21: wrong indentation: expected 4 but found 6

(indentation)


[warning] 27-27: wrong indentation: expected 4 but found 6

(indentation)


30-56: Добавлены новые варианты кристаллов нормальности с разными размерами стеков.

Созданы сущности CrystalNormality1 и CrystalNormality10, наследуемые от основного CrystalNormality, с разными размерами стеков (1 и 10). Для CrystalNormality1 также добавлен тег RawMaterial, что позволяет использовать его как сырьевой материал.

Необходимо удалить лишние пробелы в конце строк 43, 55 и 56:

-    - RawMaterial
-    
+    - RawMaterial
+
-    - NormalityCrystal  
-    
+    - NormalityCrystal
+
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 43-43: trailing spaces

(trailing-spaces)


[error] 55-55: trailing spaces

(trailing-spaces)


[error] 56-56: trailing spaces

(trailing-spaces)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8576db1 and e47a7b3.

⛔ Files ignored due to path filters (6)
  • Resources/Textures/Backmen/Objects/Materials/materials.rsi/normalitycrystal.png is excluded by !**/*.png
  • Resources/Textures/Backmen/Objects/Materials/materials.rsi/normalitycrystal_2.png is excluded by !**/*.png
  • Resources/Textures/Backmen/Objects/Materials/materials.rsi/normalitycrystal_3.png is excluded by !**/*.png
  • Resources/Textures/Objects/Specific/Syndicate/telecrystal.rsi/telecrystal.png is excluded by !**/*.png
  • Resources/Textures/Objects/Specific/Syndicate/telecrystal.rsi/telecrystal_2.png is excluded by !**/*.png
  • Resources/Textures/Objects/Specific/Syndicate/telecrystal.rsi/telecrystal_3.png is excluded by !**/*.png
📒 Files selected for processing (12)
  • Resources/Locale/ru-RU/ss14-ru/prototypes/backmen/entities/objects/materials/materials.ftl (1 hunks)
  • Resources/Locale/ru-RU/ss14-ru/prototypes/backmen/entities/objects/specific/research/crystals.ftl (1 hunks)
  • Resources/Prototypes/Entities/Objects/Specific/syndicate.yml (2 hunks)
  • Resources/Prototypes/Stacks/Materials/crystals.yml (1 hunks)
  • Resources/Prototypes/_Backmen/Entities/Objects/Materials/materials.yml (2 hunks)
  • Resources/Prototypes/_Backmen/Entities/Objects/Specific/Research/crystals.yml (1 hunks)
  • Resources/Prototypes/_Backmen/Reactions/psionic.yml (1 hunks)
  • Resources/Prototypes/_Backmen/Reagents/Materials/materials.yml (1 hunks)
  • Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/structures/glimmerdevices.yml (1 hunks)
  • Resources/Prototypes/_Backmen/Stacks/materials.yml (1 hunks)
  • Resources/Textures/Backmen/Objects/Materials/materials.rsi/meta.json (1 hunks)
  • Resources/Textures/Objects/Specific/Syndicate/telecrystal.rsi/meta.json (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
Resources/Prototypes/_Backmen/Entities/Objects/Materials/materials.yml

[error] 45-45: trailing spaces

(trailing-spaces)


[warning] 52-52: wrong indentation: expected 4 but found 2

(indentation)


[warning] 57-57: wrong indentation: expected 6 but found 4

(indentation)

Resources/Prototypes/_Backmen/Reagents/Materials/materials.yml

[error] 15-15: no new line character at the end of file

(new-line-at-end-of-file)

Resources/Prototypes/Stacks/Materials/crystals.yml

[warning] 4-4: too many spaces after colon

(colons)


[error] 6-6: no new line character at the end of file

(new-line-at-end-of-file)

Resources/Prototypes/_Backmen/Stacks/materials.yml

[error] 13-13: no new line character at the end of file

(new-line-at-end-of-file)

Resources/Prototypes/_Backmen/Entities/Objects/Specific/Research/crystals.yml

[warning] 10-10: wrong indentation: expected 4 but found 6

(indentation)


[error] 11-11: trailing spaces

(trailing-spaces)


[warning] 21-21: wrong indentation: expected 4 but found 6

(indentation)


[warning] 27-27: wrong indentation: expected 4 but found 6

(indentation)


[error] 43-43: trailing spaces

(trailing-spaces)


[error] 55-55: trailing spaces

(trailing-spaces)


[error] 56-56: trailing spaces

(trailing-spaces)

Resources/Prototypes/Entities/Objects/Specific/syndicate.yml

[warning] 13-13: wrong indentation: expected 4 but found 6

(indentation)


[error] 15-15: trailing spaces

(trailing-spaces)


[error] 16-16: trailing spaces

(trailing-spaces)


[warning] 22-22: wrong indentation: expected 4 but found 6

(indentation)


[error] 26-26: trailing spaces

(trailing-spaces)


[error] 61-61: trailing spaces

(trailing-spaces)


[error] 69-69: trailing spaces

(trailing-spaces)

🪛 GitHub Actions: YAML Linter
Resources/Prototypes/_Backmen/Reagents/Materials/materials.yml

[error] 14-16: No EntityPrototype found with id NormalityCrystal

⏰ Context from checks skipped due to timeout of 300000ms (2)
  • GitHub Check: Test Packaging
  • GitHub Check: build (ubuntu-latest)
🔇 Additional comments (14)
Resources/Locale/ru-RU/ss14-ru/prototypes/backmen/entities/objects/materials/materials.ftl (1)

7-9: Новая локализация добавлена корректно.

Локализация для нового типа материала "блюспейс кристалл" с суффиксом 10 добавлена правильно, с соблюдением существующего формата и корректной ссылкой на общее описание.

Resources/Textures/Backmen/Objects/Materials/materials.rsi/meta.json (1)

9-28: Корректно добавлены новые состояния спрайтов.

Новые состояния спрайтов для кристаллов нормальности ("normalitycrystal", "normalitycrystal_2", "normalitycrystal_3") добавлены с соблюдением существующего формата и структуры. Изменения соответствуют целям PR по модификации текстур.

Resources/Prototypes/_Backmen/Reactions/psionic.yml (1)

33-33: Обновлена ссылка на сущность с поддержкой стеков.

Изменение корректно обновляет реакцию на создание нового типа кристалла нормальности с поддержкой стеков (CrystalNormality1) вместо старого типа. Это соответствует целям PR по внедрению функциональности стаков.

Resources/Prototypes/_Backmen/Recipes/Construction/Graphs/structures/glimmerdevices.yml (1)

34-36: Упрощение записи для NormalityCrystal
Объединение нескольких отдельных записей в одну с указанием параметров amount: 5 и doAfter: 5 выглядит корректно и значительно упрощает структуру этапов строительства.

Resources/Prototypes/_Backmen/Stacks/materials.yml (2)

6-7: Обновление параметра maxCount для Bluespace
Установка maxCount: 30 для материала Bluespace корректна и соответствует требованиям по управлению стековыми значениями.


8-13: Добавление нового материала NormalityCrystal
Новый материал с типом стека, заданием и максимальным количеством (maxCount: 30) соответствует общей стратегии унификации управления материалами.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 13-13: no new line character at the end of file

(new-line-at-end-of-file)

Resources/Prototypes/_Backmen/Entities/Objects/Materials/materials.yml (2)

28-28: Увеличение параметра count в Stack
Изменение значения count до 30 для существующего компонента Stack выглядит оправданно и согласовано с изменениями в других файлах.


46-59: Добавление нового объекта MaterialBluespace10
Новая сущность MaterialBluespace10 добавлена корректно с компонентами Stack и Tag, что расширяет функциональность без нарушения структуры. Проверьте, чтобы обновления соответствовали ссылкам в локализации и другой логике системы.

🧰 Tools
🪛 YAMLlint (1.35.1)

[warning] 52-52: wrong indentation: expected 4 but found 2

(indentation)


[warning] 57-57: wrong indentation: expected 6 but found 4

(indentation)

Resources/Prototypes/Stacks/Materials/crystals.yml (1)

1-6: Обновление структуры Telecrystal
Изменения, включающие обновлённое свойство icon с указанием sprite и state, а также добавление maxCount: 30, способствуют унификации описания предметов.

🧰 Tools
🪛 YAMLlint (1.35.1)

[warning] 4-4: too many spaces after colon

(colons)


[error] 6-6: no new line character at the end of file

(new-line-at-end-of-file)

Resources/Textures/Objects/Specific/Syndicate/telecrystal.rsi/meta.json (3)

13-18: Добавление состояний telecrystal_2 и telecrystal_3
Новые состояния telecrystal_2 и telecrystal_3 добавлены корректно и позволят улучшить визуальное представление объекта.


19-26: Проверка состояния inhand-left и inhand-right
Убедитесь, что состояния inhand-left и inhand-right с атрибутом "directions": 4 по-прежнему необходимы. Если эти состояния больше не используются в функционале, рассмотрите возможность их удаления для упрощения структуры.


1-29: Общая структура meta.json
Файл структурирован корректно; внесённые изменения соответствуют обновлённой логике работы с состояниями объекта.

Resources/Locale/ru-RU/ss14-ru/prototypes/backmen/entities/objects/specific/research/crystals.ftl (1)

2-7: Локализация успешно обновлена для поддержки новых вариантов кристаллов.

Добавлен суффикс "Полный" для основного кристалла нормальности и созданы новые локализации для вариантов с разным количеством (1 и 10). Локализация корректно соответствует изменениям в файлах прототипов сущностей.

Resources/Prototypes/_Backmen/Entities/Objects/Specific/Research/crystals.yml (1)

1-92: Необходима проверка совместимости с другими системами.

Изменение родительского класса CrystalNormality с BaseItem на MaterialBase и добавление стековой функциональности могут повлиять на другие системы, которые взаимодействуют с кристаллами нормальности. Убедитесь, что все зависимые системы (крафт, исследования, хранение и т.д.) правильно работают с обновленными сущностями.

🧰 Tools
🪛 YAMLlint (1.35.1)

[warning] 10-10: wrong indentation: expected 4 but found 6

(indentation)


[error] 11-11: trailing spaces

(trailing-spaces)


[warning] 21-21: wrong indentation: expected 4 but found 6

(indentation)


[warning] 27-27: wrong indentation: expected 4 but found 6

(indentation)


[error] 43-43: trailing spaces

(trailing-spaces)


[error] 55-55: trailing spaces

(trailing-spaces)


[error] 56-56: trailing spaces

(trailing-spaces)

Comment on lines 10 to 15
id: NormalityCrystal
name: normality сrystal
icon: { sprite: Backmen/Objects/Materials/materials.rsi, state: normalitycrystal }
color: "#77e5f6"
stackEntity: NormalityCrystal
price: 20
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Отсутствует определение прототипа сущности NormalityCrystal.

Материал ссылается на стаковую сущность NormalityCrystal в строке 14, но прототип этой сущности не найден в системе. Это приведет к ошибкам при сборке и загрузке игры.

Необходимо добавить определение прототипа сущности NormalityCrystal в соответствующий файл (возможно, в директории Entities/Objects/Specific/Research/ или Materials/). Пример определения:

- type: entity
  id: NormalityCrystal
  name: normality crystal
  parent: BaseItem
  components:
    - type: Sprite
      sprite: Backmen/Objects/Materials/materials.rsi
      state: normalitycrystal
    - type: Item
      size: 5
    - type: Stack
      stackType: NormalityCrystal
🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 15-15: no new line character at the end of file

(new-line-at-end-of-file)


- type: material
id: NormalityCrystal
name: normality сrystal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🛠️ Refactor suggestion

Опечатка в названии материала.

В названии материала "normality сrystal" используется кириллическая буква "с" вместо латинской "c", что приведет к несоответствиям в отображении.

-  name: normality сrystal
+  name: normality crystal
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
name: normality сrystal
name: normality crystal

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
Resources/Prototypes/_Backmen/Reagents/Materials/materials.yml (1)

15-15: Отсутствует новая строка в конце файла.
Для соблюдения стандартов YAML и устранения предупреждения YAMLlint добавьте пустую строку в конце файла.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 15-15: no new line character at the end of file

(new-line-at-end-of-file)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e47a7b3 and b169b60.

📒 Files selected for processing (1)
  • Resources/Prototypes/_Backmen/Reagents/Materials/materials.yml (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
Resources/Prototypes/_Backmen/Reagents/Materials/materials.yml

[error] 15-15: no new line character at the end of file

(new-line-at-end-of-file)

⏰ Context from checks skipped due to timeout of 300000ms (2)
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: Test Packaging
🔇 Additional comments (1)
Resources/Prototypes/_Backmen/Reagents/Materials/materials.yml (1)

9-15: Новый материал "NormalityCrystal" корректно добавлен.
Проверьте, что значение поля stackEntity: CrystalNormality соответствует определённому прототипу в системе и что в остальных связанных файлах используется именно это имя. Также убедитесь, что цена (20) и остальные параметры соответствуют требованиям игрового баланса.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 15-15: no new line character at the end of file

(new-line-at-end-of-file)

@Rxup Rxup merged commit 4b37c88 into Rxup:master Feb 27, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changes: Localization Can be reviewed or fixed by people who are knowledgeable with translation Changes: Sprites Should be reviewed or fixed by people who are knowledgeable with spriting or visual design. No C# Нету кода. S: Untriaged size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants