Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Conversation

@withcodevz
Copy link
Contributor

@withcodevz withcodevz commented Apr 18, 2025

Описание PR

Медиа

Тип PR

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

Изменения

🆑 CaypenNow

  • add: Добавлен набор контрактника в аплинк синдиката. Станьте агентом 007!
  • fix: Исправлено отображение класса голопаразита в его имени
  • fix: Теперь голопаразит может таскать вещи и людей без рук
  • tweak: Максимальная дальность голопаразита увеличина 6 --> 10

Summary by CodeRabbit

  • Новые функции
    • Для стража-зарядника добавлен эффект опрокидывания цели при атаке, если он заряжен.
    • Добавлен интерфейс и окно контрактника с отображением доступных контрактов и репутации.
    • В игру добавлен предмет "Аплинк контрактника" с соответствующим визуальным оформлением.
  • Изменения
    • Все варианты голопаразита теперь отображаются с общим именем "Голопаразит".
    • Голопаразиты больше не требуют рук для перетаскивания объектов.

@coderabbitai
Copy link

coderabbitai bot commented Apr 18, 2025

Обзор изменений

В компонент GuardianComponent добавлено новое публичное поле KnockDownCharger, определяющее длительность эффекта "сбивания с ног" для типа стража Charger. В системе GuardianSystem реализовано использование этого поля: при успешной атаке стража типа Charger на цель теперь вызывается метод TryKnockdown из StunSystem с соответствующей длительностью. В прототипах сущностей для всех вариантов Holoparasite унифицировано имя и добавлено свойство needsHands: false для компонента Puller в базовом прототипе стража. Добавлена новая функциональность контрактов: введены новые классы и UI для отображения и взаимодействия с контрактами, а также новый предмет "Аплинк контрактника" с соответствующими ресурсами и прототипами.

Изменения

Файлы Описание изменений
Content.Server/Guardian/GuardianComponent.cs Добавлено публичное поле KnockDownCharger с типом TimeSpan и значением по умолчанию 2 секунды.
Content.Server/Guardian/GuardianSystem.cs Внедрена зависимость от StunSystem; в методе OnGuardianAttackAttempt для типа Charger реализовано применение эффекта "сбивания с ног" на цель с длительностью из KnockDownCharger через TryKnockdown.
Resources/Prototypes/Entities/Mobs/Player/guardian.yml В компонент Puller базового прототипа MobGuardianBase добавлено needsHands: false. Для всех вариантов Holoparasite (Standart, Assasin, Charger, Lighting) поле name изменено на "Holoparasite" вместо вариативных названий.
Content.Client/_White/Contract/UI/ContractorBUI.cs Добавлен новый класс ContractorBUI, наследующий от BoundUserInterface, с конструктором и приватным полем для окна.
Content.Client/_White/Contract/UI/ContractorWindow.xaml Добавлен новый XAML-файл с описанием UI окна "Аплинк контрактника", содержащего отображение репутации и список доступных контрактов.
Content.Client/_White/Contract/UI/ContractorWindow.xaml.cs Добавлен класс ContractorWindow, наследующий DefaultWindow, с загрузкой XAML и внедрением зависимостей.
Content.Shared/_White/Contract/ContractEntry.cs Добавлен сериализуемый класс ContractEntry с данными контракта и перечислениями ContractStatus и ContractDifficulty.
Content.Shared/_White/Contract/ContractorBoundUserInterfaceState.cs Добавлен сериализуемый класс ContractorBoundUserInterfaceState с полями списка контрактов и репутации, а также перечисление ContractorUplinkUiKey.
Resources/Prototypes/_White/Contract/contractUplink.yml Добавлен новый прототип сущности SyndicateContractUplink — предмет "Аплинк контрактника" с компонентами Sprite, Item и GiftIgnore.
Resources/Textures/White/Contract/contractor.rsi/meta.json Добавлен новый метафайл для текстуры contractor.rsi с указанием лицензии, авторства и размеров.

Диаграмма последовательности

sequenceDiagram
    participant Guardian as Guardian (Charger)
    participant Target as Target Entity
    participant GuardianSystem
    participant StunSystem

    Guardian->>GuardianSystem: OnGuardianAttackAttempt
    GuardianSystem->>Target: Заставить выбросить предметы
    GuardianSystem->>StunSystem: TryKnockdown(Target, KnockDownCharger, forced=true)
    StunSystem-->>GuardianSystem: Результат сбивания с ног
    GuardianSystem->>Guardian: Сбросить флаг IsCharged
Loading

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Free

📥 Commits

Reviewing files that changed from the base of the PR and between 64fbee9 and 1b5e672.

⛔ Files ignored due to path filters (1)
  • Resources/Textures/White/Contract/contractor.rsi/icon.png is excluded by !**/*.png
📒 Files selected for processing (7)
  • Content.Client/_White/Contract/UI/ContractorBUI.cs (1 hunks)
  • Content.Client/_White/Contract/UI/ContractorWindow.xaml (1 hunks)
  • Content.Client/_White/Contract/UI/ContractorWindow.xaml.cs (1 hunks)
  • Content.Shared/_White/Contract/ContractEntry.cs (1 hunks)
  • Content.Shared/_White/Contract/ContractorBoundUserInterfaceState.cs (1 hunks)
  • Resources/Prototypes/_White/Contract/contractUplink.yml (1 hunks)
  • Resources/Textures/White/Contract/contractor.rsi/meta.json (1 hunks)

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

🪧 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 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.

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant