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

[Remove] Remove Flesh cult & Disable Vampires #1037

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Roudenn
Copy link
Collaborator

@Roudenn Roudenn commented Feb 9, 2025

🆑 плохой кто-то

  • remove: Убрано веселье.
  • remove: Удалён культ плоти.
  • remove: Вампиры временно отключены до переработки.

Summary by CodeRabbit

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

    • Введён режим «Blob» с обновлёнными игровыми условиями.
    • В списке персонажей появились новые роли агентов Синдиката, расширяющие выбор при старте игры.
  • Чистка

    • Удалены все элементы, связанные с «Культом плоти»: роли, задания, способности, интерфейсы и локализации.

Обновление упрощает игровой процесс и добавляет свежие возможности для выбора ролей и игровых режимов.

@Roudenn Roudenn requested a review from Rxup as a code owner February 9, 2025 08:43
Copy link
Contributor

coderabbitai bot commented Feb 9, 2025

Walkthrough

В пул реквесте произведено масштабное удаление функционала, связанного с Flesh Cult. Удалены компоненты, системы, локализация, сущности и прописные файлы, поддерживающие механики Flesh Cult/флеш культ, включая FleshCultist, FleshHeart, FleshMob, FleshPudge, FleshWorm и прочие. Также удалены настройки, переменные и категории магазина, связанные с данным функционалом. Одновременно внесены изменения в игровые правила – удалён FleshCult, заменён и добавлены новые механики, связанные с режимом Blob, а также временно закомментированы VampireOutbreak.

Changes

Файл(ы) Описание изменений
Content.Client/Backmen/Blob/BlobObserverSystem.cs Удалены неиспользуемые директивы using
Content.Client/Backmen/Flesh/* Удалены файлы FleshCultistSystem.cs, FleshHeartComponent.cs, FleshHeartVisualSystem.cs (функционал FleshCult на клиенте)
Content.Server/Backmen/Flesh/* Удалены системы FleshCultistObjectiveSystem.cs, FleshCultistRole.cs, FleshCultistSystem*.cs, SpreaderFlesh*.cs, FleshHeartComponent.cs, FleshHeartSystem.cs, FleshMob*.cs, FleshPudge*.cs, FleshWorm*.cs, TransformInFleshPudgeOnDeath*.cs (функционал FleshCult на сервере)
Content.Server/Backmen/GameTicking/Rules/* Удалены FleshCultRuleComponent.cs и FleshCultRuleSystem.cs (правила FleshCult)
Content.Server/Backmen/Objectives/* Удалены CreateFleshHeartCondition.cs и FleshCultistSurvivalCondition.cs (задачи и условия FleshCult)
Content.Shared/Backmen/CCVar/CCVars.cs Удалены CVar определения для FleshCult
Content.Shared/Backmen/Flesh/* Удалены компоненты, события и визуальные элементы, связанные с FleshCult (FleshCultistComponent, FleshHeartVisuals, InfectedFleshParasiteEvent, SharedFleshCultist, SharedFleshHeartComponent)
Resources/Locale/* Удалены локализационные файлы и строки для FleshCult (en-US и ru-RU: fleshcultist.ftl, flesh.ftl, flesh_cultist.ftl, fleshcultist.ftl, preset-файлы, NPC и game rules)
Resources/Prototypes/Entities/* Удалены сущности Flesh (MobHumanFleshCultist, Flesh, flesh_hands, flesh_heart) и добавлены новые сущности Syndicate агентств в human.yml
Resources/Prototypes/Store/categories.yml Удалены категории для FleshCultistAbilities, Debug и Wizard, связанные с FleshCult
Resources/Prototypes/_Backmen/* Удалены действия, каталоги, оповещения, NPC и роли, связанные с FleshCult (flesh_cultist.yml, alerts, catalog, objectives, antags, mind_roles, statusicon)
Resources/Prototypes/GameRules/* и secret_weights.yml Удалены preset’ы и записи для FleshCult; добавлены BlobRule, BlobGameMode, BlobSpawn; VampireOutbreak временно закомментирован; изменения в весах секретов (FleshCult удалён)

Sequence Diagram(s)

sequenceDiagram
  participant Игрок
  participant СистемаРаунда
  participant BlobМод
  Note over Игрок, BlobМод: Новый режим Blob начинается
  Игрок->>СистемаРаунда: Инициирует начало раунда
  СистемаРаунда->>BlobМод: Проверка условий и инициализация Blob
  BlobМод->>Игрок: Назначение ролей и активация механик Blob
Loading

Poem

Я заяц, рад переменам,
В коде всё стало чище, словно утро ясное.
Флеш культ исчез, как сон ночной,
Вместо него новый Blob – выбор точный!
Пусть строки чисты и код без бед,
В мире обновлённом — радость заяца всегда вперед! 🐇✨


📜 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 4a59ffe and 0de228f.

📒 Files selected for processing (58)
  • Content.Client/Backmen/Blob/BlobObserverSystem.cs (1 hunks)
  • Content.Client/Backmen/Flesh/FleshCultist.cs (0 hunks)
  • Content.Client/Backmen/Flesh/FleshHeartComponent.cs (0 hunks)
  • Content.Client/Backmen/Flesh/FleshHeartVisualSystem.cs (0 hunks)
  • Content.Server/Administration/Systems/AdminVerbSystem.Antags.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshCultistObjectiveSystem.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshCultistRole.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshCultistSystem.Abilities.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshCultistSystem.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshGrowth/SpreaderFleshComponent.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshGrowth/SpreaderFleshSystem.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshHeartComponent.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshHeartSystem.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshMobComponent.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshMobSystem.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshPudgeComponent.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshPudgeSystem.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshWormComponent.cs (0 hunks)
  • Content.Server/Backmen/Flesh/FleshWormSystem.cs (0 hunks)
  • Content.Server/Backmen/Flesh/TransformInFleshPudgeOnDeathComponent.cs (0 hunks)
  • Content.Server/Backmen/Flesh/TransformInFleshPudgeOnDeathSystem.cs (0 hunks)
  • Content.Server/Backmen/GameTicking/Rules/Components/FleshCultRuleComponent.cs (0 hunks)
  • Content.Server/Backmen/GameTicking/Rules/FleshCultRuleSystem.cs (0 hunks)
  • Content.Server/Backmen/Objectives/CreateFleshHeartCondition.cs (0 hunks)
  • Content.Server/Backmen/Objectives/FleshCultistSurvivalCondition.cs (0 hunks)
  • Content.Shared/Backmen/CCVar/CCVars.cs (0 hunks)
  • Content.Shared/Backmen/Flesh/FleshCultistComponent.cs (0 hunks)
  • Content.Shared/Backmen/Flesh/FleshHeartVisuals.cs (0 hunks)
  • Content.Shared/Backmen/Flesh/InfectedFleshParasiteEvent.cs (0 hunks)
  • Content.Shared/Backmen/Flesh/SharedFleshCultist.cs (0 hunks)
  • Content.Shared/Backmen/Flesh/SharedFleshHeartComponent.cs (0 hunks)
  • Resources/Locale/en-US/actions/actions/fleshcultist.ftl (0 hunks)
  • Resources/Locale/ru-RU/backmen/actions/flesh.ftl (0 hunks)
  • Resources/Locale/ru-RU/backmen/actions/flesh_cultist.ftl (0 hunks)
  • Resources/Locale/ru-RU/backmen/actions/fleshcultist.ftl (0 hunks)
  • Resources/Locale/ru-RU/backmen/game-ticking/game-presets/preset-flesh-cult-and-traitor.ftl (0 hunks)
  • Resources/Locale/ru-RU/backmen/game-ticking/game-presets/preset-fleshcult.ftl (0 hunks)
  • Resources/Locale/ru-RU/backmen/game-ticking/game-presets/preset-mix.ftl (0 hunks)
  • Resources/Locale/ru-RU/ss14-ru/prototypes/backmen/gamerules/roundstart.ftl (0 hunks)
  • Resources/Locale/ru-RU/ss14-ru/prototypes/backmen/npcs/flesh_cult.ftl (0 hunks)
  • Resources/Locale/ru-RU/ss14-ru/prototypes/backmen/objectives/cultistObjectives.ftl (0 hunks)
  • Resources/Prototypes/Entities/Mobs/Player/human.yml (0 hunks)
  • Resources/Prototypes/Entities/Objects/Misc/flesh.yml (0 hunks)
  • Resources/Prototypes/Entities/Objects/Weapons/Melee/flesh_hands.yml (0 hunks)
  • Resources/Prototypes/Entities/Structures/flesh_heart.yml (0 hunks)
  • Resources/Prototypes/Store/categories.yml (0 hunks)
  • Resources/Prototypes/_Backmen/Actions/flesh_cultist.yml (0 hunks)
  • Resources/Prototypes/_Backmen/Alerts/flesh_cultist.yml (0 hunks)
  • Resources/Prototypes/_Backmen/Catalog/flesh_cultist_catalog.yml (0 hunks)
  • Resources/Prototypes/_Backmen/Entities/Mobs/NPCs/flesh_cult.yml (0 hunks)
  • Resources/Prototypes/_Backmen/GameRules/roundstart.yml (2 hunks)
  • Resources/Prototypes/_Backmen/Objectives/cultistObjectives.yml (0 hunks)
  • Resources/Prototypes/_Backmen/Roles/Antags/fleshcultist.yml (0 hunks)
  • Resources/Prototypes/_Backmen/Roles/MindRoles/mind_roles.yml (0 hunks)
  • Resources/Prototypes/_Backmen/Statusicon/antag.yml (0 hunks)
  • Resources/Prototypes/_Backmen/game_presets.yml (0 hunks)
  • Resources/Prototypes/game_presets.yml (2 hunks)
  • Resources/Prototypes/secret_weights.yml (1 hunks)
💤 Files with no reviewable changes (54)
  • Content.Client/Backmen/Flesh/FleshHeartComponent.cs
  • Resources/Locale/ru-RU/ss14-ru/prototypes/backmen/gamerules/roundstart.ftl
  • Resources/Prototypes/_Backmen/Alerts/flesh_cultist.yml
  • Resources/Locale/ru-RU/backmen/game-ticking/game-presets/preset-fleshcult.ftl
  • Content.Shared/Backmen/Flesh/InfectedFleshParasiteEvent.cs
  • Content.Server/Backmen/Objectives/FleshCultistSurvivalCondition.cs
  • Content.Client/Backmen/Flesh/FleshCultist.cs
  • Content.Server/Backmen/Flesh/TransformInFleshPudgeOnDeathComponent.cs
  • Resources/Locale/ru-RU/backmen/actions/flesh.ftl
  • Resources/Locale/ru-RU/ss14-ru/prototypes/backmen/objectives/cultistObjectives.ftl
  • Content.Server/Backmen/Objectives/CreateFleshHeartCondition.cs
  • Content.Server/Backmen/Flesh/FleshCultistRole.cs
  • Content.Server/Backmen/Flesh/FleshMobComponent.cs
  • Content.Client/Backmen/Flesh/FleshHeartVisualSystem.cs
  • Content.Shared/Backmen/Flesh/SharedFleshHeartComponent.cs
  • Resources/Locale/en-US/actions/actions/fleshcultist.ftl
  • Content.Server/Backmen/Flesh/FleshHeartSystem.cs
  • Content.Server/Backmen/Flesh/FleshGrowth/SpreaderFleshComponent.cs
  • Resources/Prototypes/_Backmen/game_presets.yml
  • Resources/Prototypes/_Backmen/Roles/Antags/fleshcultist.yml
  • Content.Shared/Backmen/Flesh/FleshHeartVisuals.cs
  • Content.Server/Backmen/Flesh/TransformInFleshPudgeOnDeathSystem.cs
  • Resources/Locale/ru-RU/backmen/game-ticking/game-presets/preset-flesh-cult-and-traitor.ftl
  • Resources/Locale/ru-RU/backmen/actions/fleshcultist.ftl
  • Content.Server/Backmen/Flesh/FleshGrowth/SpreaderFleshSystem.cs
  • Content.Server/Backmen/GameTicking/Rules/FleshCultRuleSystem.cs
  • Content.Server/Backmen/Flesh/FleshCultistObjectiveSystem.cs
  • Resources/Prototypes/Entities/Structures/flesh_heart.yml
  • Resources/Prototypes/_Backmen/Objectives/cultistObjectives.yml
  • Resources/Prototypes/Entities/Objects/Misc/flesh.yml
  • Content.Shared/Backmen/Flesh/FleshCultistComponent.cs
  • Content.Server/Backmen/Flesh/FleshPudgeComponent.cs
  • Content.Server/Administration/Systems/AdminVerbSystem.Antags.cs
  • Content.Server/Backmen/Flesh/FleshHeartComponent.cs
  • Content.Server/Backmen/Flesh/FleshMobSystem.cs
  • Content.Server/Backmen/Flesh/FleshWormSystem.cs
  • Resources/Prototypes/_Backmen/Roles/MindRoles/mind_roles.yml
  • Content.Server/Backmen/Flesh/FleshWormComponent.cs
  • Resources/Prototypes/_Backmen/Catalog/flesh_cultist_catalog.yml
  • Content.Server/Backmen/Flesh/FleshPudgeSystem.cs
  • Content.Server/Backmen/Flesh/FleshCultistSystem.cs
  • Content.Server/Backmen/GameTicking/Rules/Components/FleshCultRuleComponent.cs
  • Content.Server/Backmen/Flesh/FleshCultistSystem.Abilities.cs
  • Resources/Prototypes/_Backmen/Statusicon/antag.yml
  • Resources/Prototypes/_Backmen/Entities/Mobs/NPCs/flesh_cult.yml
  • Resources/Prototypes/Entities/Objects/Weapons/Melee/flesh_hands.yml
  • Resources/Prototypes/Entities/Mobs/Player/human.yml
  • Resources/Locale/ru-RU/ss14-ru/prototypes/backmen/npcs/flesh_cult.ftl
  • Content.Shared/Backmen/CCVar/CCVars.cs
  • Resources/Prototypes/Store/categories.yml
  • Resources/Locale/ru-RU/backmen/game-ticking/game-presets/preset-mix.ftl
  • Resources/Locale/ru-RU/backmen/actions/flesh_cultist.ftl
  • Content.Shared/Backmen/Flesh/SharedFleshCultist.cs
  • Resources/Prototypes/_Backmen/Actions/flesh_cultist.yml
⏰ Context from checks skipped due to timeout of 300000ms (3)
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: build (ubuntu-latest)
  • GitHub Check: Test Packaging
🔇 Additional comments (9)
Resources/Prototypes/secret_weights.yml (2)

1-1: Проверка удаления поля "type: weightedRandom".
Удалена строка "type: weightedRandom". Убедитесь, что данное изменение соответствует новой логике работы с прототипами и не влияет на генерацию секретов, если данное поле ранее использовалось для определения типа.


13-13: Временное отключение опции "Vampires".
Строка с записью "Vampires: 0.05" теперь закомментирована с пояснением "Removed until rework". Это соответствует временной деактивации функционала вампиров, как указано в описании PR. Убедитесь, что соответствующая документация и последующие изменения синхронизированы с данным решением.

Content.Client/Backmen/Blob/BlobObserverSystem.cs (2)

1-9: Удаление неиспользуемых директив using.

Удаление директив using для Content.Shared.Antag, Content.Shared.Flesh и Content.Shared.Ghost является правильным шагом после удаления функционала Flesh Cult. Это помогает поддерживать чистоту кода.


12-54: Проверьте влияние удаления Flesh Cult на BlobObserver.

Основная функциональность BlobObserverSystem осталась без изменений, но рекомендуется проверить, не было ли косвенных зависимостей от удалённого функционала Flesh Cult.

✅ Verification successful

🏁 Script executed:

#!/bin/bash
# Описание: Поиск возможных связей между BlobObserver и удалённым функционалом Flesh

# Поиск упоминаний Flesh в связке с Blob
rg -i "flesh.*blob|blob.*flesh" 

# Поиск возможных событий, связанных с Flesh, которые могли обрабатываться BlobObserver
ast-grep --pattern 'SubscribeLocalEvent<$_>(OnFlesh$_)'

Length of output: 91


Проверка влияния удаления Flesh Cult на BlobObserverSystem завершена

Выполненные поисковые запросы (с использованием rg и ast-grep) не выявили никаких упоминаний функциональности Flesh Cult в контексте BlobObserver. Нет свидетельств того, что BlobObserverSystem зависит или ссылается на удалённый функционал Flesh Cult.

Resources/Prototypes/game_presets.yml (3)

41-43: Отключение правила VampiresGameRule в пресете "AllAtOnce"
В данном пресете правило "VampiresGameRule" теперь закомментировано с пометкой "backmen: vampire Removed until rework". Убедитесь, что временное отключение этого функционала соответствует обновлённым требованиям геймплея и что дальнейшие изменения учтут его возможное восстановление или окончательное удаление.


66-70: Отключение правила VampiresGameRule в пресете "AllerAtOnce"
В пресете "AllerAtOnce" правило "VampiresGameRule" также закомментировано с примечанием "Removed until rework". Проверьте, что такое изменение согласовано с общей логикой игровых режимов и не приводит к конфликтам с другими активными правилами.


1-263: Проверка удаления пресетов, связанных с FleshCult
Согласно целям данного PR, пресеты, связанные с FleshCult (например, FleshCult, FleshCultAndTraitor, NukeopsFleshCult и NukeopsFleshCultTraitor), были полностью удалены. Рекомендуется убедиться, что во всей кодовой базе отсутствуют ссылки на эти удалённые конфигурации, чтобы избежать возможных ошибок при инициализации игровых режимов.

Resources/Prototypes/_Backmen/GameRules/roundstart.yml (2)

1-8: Новая секция "Blob" добавлена.
В этом блоке определяется новая сущность BlobRule, которая скрывается в меню спавна (HideSpawnMenu). Убедитесь, что форматирование и назначение категорий соответствует остальным игровым правилам и что все связанные компоненты (например, компоненты для механики Blob) правильно интегрированы в систему.


97-112: Временное отключение события "Vampire Outbreak".
Блок, отвечающий за запуск события VampireOutbreak, закомментирован с пояснением «Removed until rework». Это соответствует цели временного отключения вампиров до доработки механики. Рекомендуется дополнительно задокументировать причины такого решения (например, указать ссылку на задачу/issue) и проверить, что оставшиеся компоненты, связанные с базовыми правилами вампиров, не активируют нежелательные эффекты в текущей сборке.


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/L Changes: Localization Can be reviewed or fixed by people who are knowledgeable with translation S: Untriaged labels Feb 9, 2025
@Roudenn Roudenn marked this pull request as draft February 9, 2025 13:17
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 S: Untriaged size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant