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

Box Backmen remap #1062

Merged
merged 8 commits into from
Feb 22, 2025
Merged

Box Backmen remap #1062

merged 8 commits into from
Feb 22, 2025

Conversation

Agronomist-NN
Copy link
Contributor

@Agronomist-NN Agronomist-NN commented Feb 18, 2025

Описание PR

Данный PR это пересмотр стиля карты Box и другие мелкие изменения. Он добавляет карту Box в директорию Backmen и не влияет на карту основного билда.

Тип PR

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

🆑

  • add: Добавлена профессия пилота СБ на карту.
  • add: Добавлена профессия боксёра на карту.
  • add: Добавлена профессия зоотехника на карту.
  • add: Добавлена профессия офицера синий щит на карту.
  • add: Добавлена профессия бригмедика на карту.
  • add: Добавлен шаттл СБ.
  • tweak: Изменено ядро ИИ.
  • tweak: Изменён общий стиль карты.
  • tweak: Изменена планировка клетки сингулярности.
  • tweak: Изменено расположение труб возле ТЭГ.

Summary by CodeRabbit

Обновленные заметки о релизе

  • Новые возможности
    • Представлена новая игровая карта «Federation Box», в которую можно играть минимум 25 участникам.
    • Карта предлагает уникальную игровую станцию «Boxstation» с адаптивной настройкой имени, интегрированным аварийным шаттлом и продуманным распределением ролей для различных игровых позиций, что способствует более сбалансированному и разнообразному игровому процессу.
    • Добавлена карта в тесты на загрузку, что обеспечивает её проверку на совместимость с другими картами.

@Agronomist-NN Agronomist-NN requested a review from Rxup as a code owner February 18, 2025 16:47
Copy link
Contributor

coderabbitai bot commented Feb 18, 2025

"""

Walkthrough

В конфигурационном файле Resources/Prototypes/_Backmen/Maps/backmen_box.yml добавлена новая игровая карта. Карта имеет тип gameMap, идентификатор BackmenBox и название Federation Box. Определено минимальное количество игроков (25) и настроена станция Boxstation с различными компонентами: установка названия, конфигурация аварийного шаттла и распределение рабочих ролей. Файл включает подробные определения ролей для различных секторов станции.

Changes

Файл Изменения
Resources/.../backmen_box.yml Добавлена новая конфигурация игровой карты с параметрами: тип gameMap, id BackmenBox, название Federation Box, путь /Maps/Backmen/backmen_box.yml, minPlayers: 25. Настроена станция Boxstation с компонентами StationNameSetup, StationEmergencyShuttle (ссылается на /Maps/Shuttles/emergency_box.yml) и StationJobs с распределением ролей.
Content/.../PostMapInitTest.cs Добавлен новый элемент "BackmenBox" в массив GameMaps для тестирования загрузки новой карты. Структура и логика тестов остались без изменений.

Sequence Diagram(s)

sequenceDiagram
    participant Server as Игровой сервер
    participant MapConfig as BackmenBox Config
    participant Station as Boxstation
    participant Shuttle as Конфигурация шаттла
    participant JobSystem as Система распределения ролей

    Server->>MapConfig: Загружает конфигурацию карты
    MapConfig->>Station: Инициализация станции (Boxstation)
    Station->>MapConfig: Настройка имени станции (StationNameSetup)
    Station->>Shuttle: Настройка аварийного шаттла (StationEmergencyShuttle)
    Station->>JobSystem: Регистрация рабочих ролей (StationJobs)
    JobSystem-->>Station: Подтверждение настроек ролей
Loading

Poem

Привет! Я кролик, с морковкой в лапке,
Карта блестит, словно звёзды в ночи.
BackmenBox зовёт в игру – без скуки и хлапки,
Роли оживают, как сказочные мечты.
Пусть код прыгает весело, как я на лужайке,
Примите изменения — в игре радость и огонь!
🐰🥕✨
"""


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between b0182a5 and 45e3df0.

📒 Files selected for processing (1)
  • Content.IntegrationTests/Tests/PostMapInitTest.cs (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • Content.IntegrationTests/Tests/PostMapInitTest.cs
⏰ Context from checks skipped due to timeout of 300000ms (2)
  • GitHub Check: Test Packaging
  • GitHub Check: build (ubuntu-latest)

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 S: Untriaged Changes: Map Can be reviewed or fixed by people who are knowledgeable with mapping. No C# Нету кода. labels Feb 18, 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: 0

🧹 Nitpick comments (1)
Resources/Prototypes/_Backmen/Maps/backmen_box.yml (1)

17-72: Определение вакансий и ролей.
Раздел StationJobs с перечнем доступных вакансий детально описывает позиции для различных секторов (сервис, инженерия, медицина, наука, безопасность, снабжение, гражданские, центком и силконы).
Обратите внимание на следующие моменты:

  • Значение для Passenger задано как [ -1, -1 ]. Проверьте, что применение отрицательных значений соответствует ожидаемому поведению (например, для отключения вакансии или указания неограниченного числа позиций).
  • Диапазоны, заданные в формате [min, max], должны быть корректно обработаны игровой логикой.
  • Комментарии (например, # Corvax, # backmen-Brigmedic, # backmen-Deliveryman) полезны для идентификации изменений, но рекомендуется обеспечить их дополнительную документацию для понимания всей команды.
    В целом, определение должностей выглядит исчерпывающим и аккуратно структурированным.
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between a076c53 and 7bf5563.

📒 Files selected for processing (1)
  • Resources/Prototypes/_Backmen/Maps/backmen_box.yml (1 hunks)
⏰ Context from checks skipped due to timeout of 300000ms (3)
  • GitHub Check: Test Packaging
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: build (ubuntu-latest)
🔇 Additional comments (4)
Resources/Prototypes/_Backmen/Maps/backmen_box.yml (4)

1-5: Заголовок и базовая конфигурация карты.
Файл начинается с определения типа карты, её идентификатора, имени, пути к файлу и минимального количества игроков. Все поля выглядят корректно. Обратите внимание, что использование тире (- type: gameMap) подразумевает, что конфигурация представлена в виде списка. Убедитесь, что это соответствует общей схеме конфигурационных файлов вашего проекта.


6-8: Определение станции.
Раздел stations с ключом Boxstation и указанием прототипа StandardNanotrasenStation корректно описывает используемую станцию. Проверьте, что прототип доступен и правильно реализован в проекте.


9-14: Компонент StationNameSetup.
Конфигурация компонента для настройки имени станции выглядит аккуратно: задан шаблон имени (mapNameTemplate) и использован генератор имен с пользовательским тегом !type:NanotrasenNameGenerator. Убедитесь, что данный тип значения поддерживается вашим YAML-парсером и логика генерации работает корректно.


15-16: Компонент аварийного шаттла.
Указан тип компонента StationEmergencyShuttle с корректно прописанным путём /Maps/Shuttles/emergency_box.yml. Рекомендуется проверить, что файл конфигурации аварийного шаттла существует по указанному пути.

@Agronomist-NN
Copy link
Contributor Author

Ненавижу...

@Roudenn
Copy link
Contributor

Roudenn commented Feb 18, 2025

@Agronomist-NN пофикси CL а не то насрёшь в игру чейнджлогом
Лучше убери полностью и перенеси просто как текст

@Agronomist-NN
Copy link
Contributor Author

Убрал

@Agronomist-NN Agronomist-NN marked this pull request as draft February 18, 2025 19:38
@Agronomist-NN
Copy link
Contributor Author

Кривое говно этот ваш маппинг...

@Agronomist-NN Agronomist-NN marked this pull request as ready for review February 20, 2025 10:47
@Rxup Rxup merged commit b234264 into Rxup:master Feb 22, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants