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

Fix psi v3 #1074

Merged
merged 9 commits into from
Feb 24, 2025
Merged

Fix psi v3 #1074

merged 9 commits into from
Feb 24, 2025

Conversation

Rxup
Copy link
Owner

@Rxup Rxup commented Feb 24, 2025

🆑

  • tweak: Теперь эктоплазма дает эктоплазму!
  • fix: Источники сияния на паузе не будет давать сияние!

Summary by CodeRabbit

  • Refactor

    • Улучшена логика обработки глиммерных сущностей: приостановленные объекты теперь пропускаются, что влияет на накопление и спавн глиммера.
  • New Features

    • Скорректированы параметры реагентов: уменьшены количества для Ash и Necrosol, добавлен новый реагент Ectoplasm; снижены требования для реакции создания кристалла нормальности.
    • Обновлены настройки событий: изменены задержки, увеличены максимальные значения и добавлены новые компоненты для некоторых событий.
    • Увеличены шансы на получение наград в жертвеннике и изменены параметры уменьшения глиммера.
    • Обновлена карта тестовой арены с новыми сущностями и измененными свойствами.
  • Documentation

    • Обновлено руководство, теперь с указанием реагента Ectoplasm.

Copy link
Contributor

coderabbitai bot commented Feb 24, 2025

Walkthrough

Изменения затрагивают несколько компонентов системы Psionics. В методах обновления и запуска событий добавлены проверки на состояние паузы сущностей, что позволяет пропускать их обработку. Также изменены количественные параметры реагентов в YAML файлах, обновлены свойства событий и добавлен новый реагент в руководство Psionics.

Changes

Файл Изменения
Content.Server/.../GlimmerStructuresSystem.cs
Content.Server/.../GlimmerRevenantSpawnRule.cs
Content.Server/.../GlimmerWispSpawnRule.cs
Добавлены проверки на состояние паузы: в методе Update для GlimmerStructuresSystem и в методах Started для правил спауна, что приводит к пропуску обработки paused-сущностей.
Resources/Prototypes/.../morgue.yml Изменены значения реагентов для Ectoplasm: количество Ash и Necrosol уменьшено с 25 до 10; добавлен новый реагент Ectoplasm с количеством 5.
Resources/Prototypes/_Backmen/GameRules/events.yml Параметр reoccurrenceDelay для BaseGlimmerEvent увеличен с 1 до 5, maximumGlimmer для NoosphericFry увеличен с 900 до 1000; добавлены компоненты StationEvent для FreeProberEarly и FreeProber с заданными свойствами.
Resources/Prototypes/_Backmen/Reactions/psionic.yml Для реакции CreateNormalityCrystal значения amount для реагентов (Ash, Water, Blood, Ectoplasm, Plasma) снижены с 10 до 5.
Resources/ServerInfo/.../Psionics.xml Добавлен новый элемент <GuideReagentEmbed Reagent="Ectoplasm"/> после существующего <GuideEntityEmbed Entity="Ectoplasm" />.

Sequence Diagram(s)

sequenceDiagram
    participant System as GlimmerStructuresSystem
    participant Entity as GlimmerSourceEntity
    participant Meta as MetaDataComponent
    System->>Entity: Получить сущность с MetaData
    Entity-->>System: Передача данных сущности
    System->>System: Проверить Paused(owner, MetaData)
    alt Сущность на паузе
        System->>System: Пропустить обработку
    else Сущность активна
        System->>Entity: Обработка накопления glimmer
    end
Loading
sequenceDiagram
    participant Rule as SpawnRule (Revenant/Wisp)
    participant Src as Source Entity
    Rule->>Src: Итерация по сущностям
    Src-->>Rule: Передача данных
    Rule->>Rule: Проверка Paused(source)
    alt Сущность на паузе
        Rule->>Rule: Пропустить дальнейшую обработку
    else Сущность активна
        Rule->>Src: Выполнить логику спауна
    end
Loading

Poem

Я кролик, с прыжком к новым строкам,
Гляжу на код, что живёт и дышит.
Пауза проверяется без изъянов,
Сущности в работе — лишь те, кто не спит.
Пусть код сверкает, как утренний свет!


📜 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 396cc3a and 1359c49.

📒 Files selected for processing (4)
  • Content.Server/Administration/Systems/AdminTestArenaSystem.cs (2 hunks)
  • Content.Server/Backmen/Chapel/SacrificialAltarSystem.cs (3 hunks)
  • Content.Shared/Backmen/Chapel/SharedSacrificialAltarSystem.cs (3 hunks)
  • Resources/Maps/Test/admin_test_arena.yml (5 hunks)
⏰ Context from checks skipped due to timeout of 300000ms (3)
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: Test Packaging
  • GitHub Check: build (ubuntu-latest)
🔇 Additional comments (8)
Content.Shared/Backmen/Chapel/SharedSacrificialAltarSystem.cs (2)

5-5: Добавлена зависимость SharedDoAfterSystem!

Хорошее добавление для управления состоянием DoAfter.

Also applies to: 15-15


35-39: Улучшена обработка отмены DoAfter.

Правильное очищение состояния DoAfter при отстегивании сущности от алтаря.

Content.Server/Administration/Systems/AdminTestArenaSystem.cs (1)

37-42: Улучшены параметры загрузки карты!

Добавлены важные параметры десериализации:

  • InitializeMaps = true: Обеспечивает правильную инициализацию
  • PauseMaps = false: Карты не будут приостановлены при загрузке
  • StoreYamlUids = true: Сохраняет UID'ы из YAML
Content.Server/Backmen/Chapel/SacrificialAltarSystem.cs (3)

57-58: Улучшено использование идентификатора прототипа!

Вынесение "MaterialBluespace1" в константу улучшает поддерживаемость кода.


127-127: Добавлена поддержка призраков!

Теперь призраки могут взаимодействовать с алтарем жертвоприношения.

Also applies to: 134-134


92-99: Улучшена обработка имён сущностей!

Более последовательное именование сущностей с использованием локализации.

Resources/Maps/Test/admin_test_arena.yml (2)

2-8: Обновлены метаданные карты!

  • Изменена категория на "Map"
  • Обновлена версия движка до 247.1.0
  • Увеличено количество сущностей

700-706: Добавлен новый объект CrayonYellow!

Добавлен жёлтый мелок с указанными координатами трансформации.

✨ Finishing Touches
  • 📝 Generate Docstrings (Beta)

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.

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: 1

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between c68889e and 396cc3a.

📒 Files selected for processing (2)
  • Content.Shared/Backmen/Chapel/Components/SacrificialAltarComponent.cs (2 hunks)
  • Resources/Prototypes/_Backmen/GameRules/events.yml (6 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • Resources/Prototypes/_Backmen/GameRules/events.yml
⏰ Context from checks skipped due to timeout of 300000ms (2)
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: Test Packaging
🔇 Additional comments (3)
Content.Shared/Backmen/Chapel/Components/SacrificialAltarComponent.cs (3)

2-2: Улучшение типизации для повышения безопасности типов

Замена строковых идентификаторов на строго типизированные ProtoId и EntProtoId повышает надежность кода и позволяет обнаруживать ошибки на этапе компиляции.

Also applies to: 6-6, 25-25, 46-46


28-28: Значительное увеличение шансов получения награды

Шансы получения награды были существенно увеличены:

  • Базовый шанс: с 10% до 30%
  • Шанс для пользователей Библии: с 50% до 80%

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

Also applies to: 31-31


34-34: Увеличение диапазона наград блюспейс

Диапазон наград был увеличен с 1-4 до 4-8, что может существенно повлиять на игровой баланс.

Предлагаю проверить, не приведет ли это к избытку ресурсов в игре.

Also applies to: 37-37


[DataField("glimmerReductionMin")]
public int GlimmerReductionMin = 30;
public int GlimmerReductionMin = 500;
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

Существенное увеличение значений уменьшения глиммера

Значения уменьшения глиммера были значительно увеличены:

  • Минимум: с 30 до 500
  • Максимум: с 60 до 900

Это радикальное изменение может сильно повлиять на механику глиммера.

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

  1. Проверить влияние на общий баланс системы глиммера
  2. Убедиться, что такое большое уменьшение не нарушает игровую механику
  3. Рассмотреть возможность постепенного увеличения значений

Also applies to: 43-43

@github-actions github-actions bot added Changes: Map Can be reviewed or fixed by people who are knowledgeable with mapping. size/M and removed size/S labels Feb 24, 2025
@Rxup Rxup merged commit 0062a37 into master Feb 24, 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. S: Untriaged size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant