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

[Maps] Update Aspid & Centcomm #996

Merged
merged 1 commit into from
Jan 5, 2025
Merged

[Maps] Update Aspid & Centcomm #996

merged 1 commit into from
Jan 5, 2025

Conversation

Roudenn
Copy link
Contributor

@Roudenn Roudenn commented Jan 5, 2025

Обновление карты Аспид и ЦК:

Aspid:

  • Полная переработка Суперматерии и части инженерного отдела
  • Добавлен двухъядерный ДАМ как возможный источник питания!
  • Немного обновлены северо-западные техи, а на востоке от мостика появилась прачечная + душевая

Centcomm:

  • Добавлены голопады, в том числе один квантовый для вызовов на станцию в рубке ОЦК (позвонить со станции к сожалению нельзя)
  • Решётки заменены на нормальные (решётки поезда плохо смотрелись)
  • Исправлены некоторые недочёты, например добавлен сервер мониторинга экипажа

Summary by CodeRabbit

  • Локализация

    • Добавлены новые переводы для ролей ЦентКомм на русском языке
  • Новые функции

    • Введены новые типы голопадов ЦентКомм с различными диапазонами связи
    • Добавлены голопады для операторов, адмиралов и эвакуации
  • Изменения в системе

    • Обновлены пороговые значения для супер-материи
    • Увеличена скорость газового фильтра
    • Расширены параметры мониторинга давления и газов

@Roudenn Roudenn requested a review from Rxup as a code owner January 5, 2025 12:04
Copy link
Contributor

coderabbitai bot commented Jan 5, 2025

Обзор

Walkthrough

Изменения включают обновления в трех основных файлах: локализации для русского языка, конфигурации супер-материи и сущностей холопадов. Добавлены новые локализационные записи для ЦентКомм, изменены параметры газовых вентиляторов и пороговые значения аварийных сигналов для супер-материи, а также введены новые типы холопадов с различными диапазонами и ролями.

Changes

Файл Изменения
Resources/Locale/ru-RU/backmen/holopad/holopad.ftl Добавлены новые локализационные ключи:
- holopad-centomm-base
- holopad-centomm-operator
- holopad-centomm-admiral
Resources/Prototypes/_Backmen/Entities/Structures/Atmospherics/supermatter.yml - Увеличена скорость передачи газового вентилятора с 40 до 50
- Повышен верхний предел давления с 700 до 10000
- Изменены пороговые значения плазмы и CO2
Resources/Prototypes/_Backmen/Entities/Structures/Machines/holopad.yml Добавлены новые сущности холопадов:
- HolopadCentCommBase
- HolopadCentCommLongRange
- HolopadCentCommUnlimitedRange
- HolopadCentCommOperator
- HolopadCentCommAdmiral
- HolopadCentCommEvac

Sequence Diagram

sequenceDiagram
    participant Admin as ЦентКомм Адмирал
    participant Operator as ЦентКомм Оператор
    participant Holopad as Холопад
    
    Admin->>Holopad: Подключение
    Operator->>Holopad: Подключение
    Holopad-->>Admin: Установление связи
    Holopad-->>Operator: Установление связи
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. (Beta)
  • @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 size/XL Changes: Map Can be reviewed or fixed by people who are knowledgeable with mapping. No C# Нету кода. S: Untriaged Changes: Localization Can be reviewed or fixed by people who are knowledgeable with translation labels Jan 5, 2025
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 (2)
Resources/Prototypes/_Backmen/Entities/Structures/Machines/holopad.yml (1)

6-6: Исправьте несогласованность в написании "Centcomm"

В суффиксах сущностей используются разные варианты написания: "Centcomm", "CentComm". Необходимо придерживаться единого стиля написания во всех сущностях.

Предлагаю использовать "CentComm" как стандартный вариант написания:

- suffix: Centcomm
+ suffix: CentComm
- suffix: Centcomm, Operator
+ suffix: CentComm, Operator
- suffix: Centcomm, Admiral
+ suffix: CentComm, Admiral
- suffix: Centcomm, Evac room
+ suffix: CentComm, Evac room

Also applies to: 14-14, 22-22, 30-30, 38-38, 46-46

Resources/Prototypes/_Backmen/Entities/Structures/Atmospherics/supermatter.yml (1)

93-93: Обновите комментарий о влиянии CO2

Комментарий о безопасном использовании оксида углерода до 50% требует дополнительного уточнения о возможных побочных эффектах.

Предлагаю дополнить комментарий информацией о:

  1. Скорости снижения активности
  2. Возможных рисках при приближении к пороговому значению
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between a074a70 and d8fff12.

📒 Files selected for processing (3)
  • Resources/Locale/ru-RU/backmen/holopad/holopad.ftl (1 hunks)
  • Resources/Prototypes/_Backmen/Entities/Structures/Atmospherics/supermatter.yml (3 hunks)
  • Resources/Prototypes/_Backmen/Entities/Structures/Machines/holopad.yml (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • Resources/Locale/ru-RU/backmen/holopad/holopad.ftl
🧰 Additional context used
🪛 yamllint (1.35.1)
Resources/Prototypes/_Backmen/Entities/Structures/Machines/holopad.yml

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

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

🔇 Additional comments (3)
Resources/Prototypes/_Backmen/Entities/Structures/Machines/holopad.yml (1)

1-49: Проверьте иерархию голопадов

Структура наследования выглядит логично, но рекомендуется проверить, что все голопады правильно наследуют нужные свойства от базовых классов, особенно в отношении дальности действия.

✅ Verification successful

Иерархия голопадов корректна и логична

Проверка показала, что иерархия наследования голопадов выстроена правильно:

  • Базовый голопад (Holopad) содержит все основные компоненты
  • HolopadLongRange наследуется от базового и расширяет дальность связи до размеров карты
  • HolopadUnlimitedRange наследуется от базового и обеспечивает неограниченную дальность
  • Голопады ЦентКома правильно наследуют соответствующие базовые классы:
    • HolopadCentCommBase от Holopad
    • HolopadCentCommLongRange от HolopadLongRange
    • HolopadCentCommUnlimitedRange от HolopadUnlimitedRange

Каждый тип голопада имеет корректные настройки дальности связи через компонент Telephone.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Проверка связанных сущностей и их свойств
rg -l "parent: (Holopad|HolopadLongRange|HolopadUnlimitedRange)"

Length of output: 199


Script:

#!/bin/bash
# Проверим содержимое обоих файлов с голопадами
cat Resources/Prototypes/_Backmen/Entities/Structures/Machines/holopad.yml Resources/Prototypes/Entities/Structures/Machines/holopad.yml

Length of output: 20424

🧰 Tools
🪛 yamllint (1.35.1)

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

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

Resources/Prototypes/_Backmen/Entities/Structures/Atmospherics/supermatter.yml (2)

38-38: Проверьте безопасность увеличенной скорости передачи

Увеличение transferRate с 40 до 50 может повлиять на стабильность давления в системе.

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


86-88: Проверьте баланс новых порогов плазмы

Изменение верхних порогов плазмы (0.01 → 0.03 и 0.5 → 0.33) требует проверки влияния на общую стабильность системы.

Рекомендуется:

  1. Провести симуляции с новыми значениями
  2. Убедиться в корректности предупреждений системы

suffix: Centcomm, Evac room
components:
- type: Label
currentLabel: holopad-centomm-evac
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

Добавьте пустую строку в конец файла

Согласно стандартам YAML, файл должен заканчиваться пустой строкой.

    currentLabel: holopad-centomm-evac
+
📝 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
currentLabel: holopad-centomm-evac
currentLabel: holopad-centomm-evac
🧰 Tools
🪛 yamllint (1.35.1)

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

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

@@ -62,7 +62,7 @@
- type: alarmThreshold
id: supermatterPressure
upperBound: !type:AlarmThresholdSetting
threshold: 700 # High pressure is either made with a lot of warm gas, or a lot of buring plasma, both is bad for supa mata.
threshold: 10000 # High pressure is either made with a lot of warm gas, or a lot of buring plasma, both is bad for supa mata.
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

Значительное увеличение порога давления требует проверки

Увеличение верхнего порога давления с 700 до 10000 является существенным изменением, которое может повлиять на безопасность системы.

Необходимо:

  1. Подтвердить, что это намеренное изменение
  2. Проверить влияние на систему безопасности
  3. Обновить документацию по безопасности, если изменение подтверждено

@nomad0260 nomad0260 merged commit 75e69b7 into Rxup:master Jan 5, 2025
17 checks passed
@Roudenn Roudenn deleted the map branch January 9, 2025 13:58
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: Map Can be reviewed or fixed by people who are knowledgeable with mapping. No C# Нету кода. S: Untriaged size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants