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

[Balance] Race of races #1020

Merged
merged 5 commits into from
Feb 6, 2025
Merged

[Balance] Race of races #1020

merged 5 commits into from
Feb 6, 2025

Conversation

nomad0260
Copy link
Collaborator

@nomad0260 nomad0260 commented Jan 28, 2025

Описание PR

меняет баланс рас

Тип PR

  • Balance

Summary by CodeRabbit

  • Новые функции

    • Добавлены новые наборы модификаторов урона для различных рас (Комбайн, Феликсид, Дварф)
    • Введены специфические характеристики движения и получения урона для сущностей дварфов
    • Добавлен новый компонент Damageable для сущности "Урист Макбайн" с модификатором урона "Комбайн"
    • Добавлен новый компонент MobThresholds для сущности "Урист МакФелинид" с порогами состояния
  • Улучшения

    • Реализована система изменения скорости в зависимости от уровня повреждений для дварфов
    • Настроены индивидуальные коэффициенты сопротивляемости урону для разных рас

@nomad0260 nomad0260 requested a review from Rxup as a code owner January 28, 2025 15:07
Copy link
Contributor

coderabbitai bot commented Jan 28, 2025

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

Walkthrough

В этом обновлении были внесены изменения в несколько прототипов сущностей и наборов модификаторов урона. Добавлены новые компоненты для сущностей дварфов, комбайнов и фелинидов, включая модификаторы скорости движения и обработки урона. Также созданы три новых набора модификаторов урона: CombineHuman, FelinidSkin и DwarfSkin с различными коэффициентами для разных типов повреждений.

Changes

Файл Изменения
Resources/Prototypes/Entities/Mobs/Species/dwarf.yml Добавлены компоненты:
- MovementSpeedModifier (базовая скорость спринта: 4)
- Damageable (набор модификаторов: DwarfSkin)
- SlowOnDamage (пороги замедления: 60 и 80)
Resources/Prototypes/_Backmen/Damage/modifier_sets.yml Добавлены новые наборы модификаторов урона:
- CombineHuman
- FelinidSkin
- DwarfSkin
Resources/Prototypes/_Backmen/Entities/Mobs/Player/combine.yml Добавлен компонент Damageable с набором модификаторов CombineHuman
Resources/Prototypes/_Backmen/Entities/Mobs/Species/felinid.yml Добавлены компоненты:
- thresholds: {0: Alive, 90: Critical, 200: Dead}
- type: MobThresholds для сущности Urist McFelinid

Poem

🐰 В мире прототипов, где код танцует,
Дварфы бегут, комбайны крепчают,
Фелиниды с броней особой сияют,
Модификаторы урона вдохновляют,
Пусть игра веселится, пусть код процветает! 🎮

Tip

🌐 Web search-backed reviews and chat
  • We have enabled web search-based reviews and chat for all users. This feature allows CodeRabbit to access the latest documentation and information on the web.
  • You can disable this feature by setting web_search: false in the knowledge_base settings.
  • Please share any feedback in the Discord discussion.

📜 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 bb5e33a and 71153af.

📒 Files selected for processing (2)
  • Resources/Prototypes/_Backmen/Damage/modifier_sets.yml (1 hunks)
  • Resources/Prototypes/_Backmen/Entities/Mobs/Species/felinid.yml (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • Resources/Prototypes/_Backmen/Entities/Mobs/Species/felinid.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 (1)
Resources/Prototypes/_Backmen/Damage/modifier_sets.yml (1)

158-168: Проверка баланса для DwarfSkin

Коэффициенты для набора DwarfSkin соответствуют ожидаемому балансу: они отражают умеренную устойчивость к холоду (Cold: 0.7), небольшую защиту от огня (Heat: 0.9) и ядов (Poison: 0.8), а также слегка повышенную уязвимость к радиации (Radiation: 1.1). Реализация выглядит корректной.


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

🧹 Nitpick comments (2)
Resources/Prototypes/Entities/Mobs/Species/dwarf.yml (1)

21-24: Рекомендуется скорректировать пороги замедления

Текущие пороги замедления могут быть недостаточными для баланса. Предлагается добавить дополнительный порог для более плавного снижения скорости.

  - type: SlowOnDamage
    speedModifierThresholds:
+     100: 0.5
Resources/Prototypes/_Backmen/Damage/modifier_sets.yml (1)

131-162: Необходима общая корректировка модификаторов урона

Текущие наборы модификаторов создают слишком резкие различия между расами:

  1. CombineHuman: Полные иммунитеты нереалистичны
  2. FelinidSkin: Множители урона слишком высоки
  3. DwarfSkin: Требуется дифференциация типов урона

Рекомендации по балансировке:

  1. Заменить нулевые значения на 0.2-0.4 для CombineHuman
  2. Уменьшить множители FelinidSkin до 1.15-1.25
  3. Дифференцировать значения DwarfSkin (например, больше устойчивости к Blunt, меньше к Piercing)
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 3939e98 and 429d704.

📒 Files selected for processing (4)
  • Resources/Prototypes/Entities/Mobs/Species/dwarf.yml (1 hunks)
  • Resources/Prototypes/_Backmen/Damage/modifier_sets.yml (1 hunks)
  • Resources/Prototypes/_Backmen/Entities/Mobs/Player/combine.yml (1 hunks)
  • Resources/Prototypes/_Backmen/Entities/Mobs/Species/felinid.yml (1 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)

@@ -34,6 +34,7 @@
prototype: Felinid
- type: Damageable
damageContainer: Biological
damageModifierSet: FelinidSkin
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

Необходимо смягчить уязвимости фелинидов

Текущие множители урона (1.35-1.45) делают фелинидов чрезмерно уязвимыми. Учитывая их способности к скрытности, рекомендуется уменьшить множители до 1.15-1.25.

  - type: Damageable
-   damageModifierSet: FelinidSkin
+   damageModifierSet: FelinidSkinBalanced # Требуется создать новый набор модификаторов

Committable suggestion skipped: line range outside the PR's diff.

Comment on lines +17 to +18
- type: MovementSpeedModifier #backmen: Race of race
baseSprintSpeed: 4
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

Скорость дварфов требует корректировки

Базовая скорость спринта 4 в сочетании с высокой устойчивостью к урону может сделать дварфов слишком эффективными. Рекомендуется уменьшить до 3.5.

  - type: MovementSpeedModifier
-   baseSprintSpeed: 4
+   baseSprintSpeed: 3.5
📝 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
- type: MovementSpeedModifier #backmen: Race of race
baseSprintSpeed: 4
- type: MovementSpeedModifier #backmen: Race of race
baseSprintSpeed: 3.5

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

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 429d704 and bb5e33a.

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

Comment on lines 145 to 157
- type: damageModifierSet
id: FelinidSkin
coefficients:
Blunt: 1.45
Slash: 1.35
Piercing: 1.35
Heat: 1.2
Cold: 1.5
Cellular: 1.1
Bloodloss: 1.25
Shock: 1.25
Radiation: 1.1

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

Требуется балансировка FelinidSkin.

Текущие модификаторы урона делают расу слишком уязвимой:

  • Коэффициент 1.45 для тупого урона слишком высок
  • Все коэффициенты выше 1.0, что делает расу уязвимой ко всем типам урона
  • Отсутствуют компенсирующие преимущества

Рекомендуемые изменения:

  coefficients:
-   Blunt: 1.45
-   Slash: 1.35
-   Piercing: 1.35
+   Blunt: 1.2
+   Slash: 1.1
+   Piercing: 1.1
    Heat: 1.2
    Cold: 1.5
-   Cellular: 1.1
-   Bloodloss: 1.25
-   Shock: 1.25
-   Radiation: 1.1
+   Cellular: 0.9
+   Bloodloss: 1.1
+   Shock: 1.1
+   Radiation: 0.9
📝 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
- type: damageModifierSet
id: FelinidSkin
coefficients:
Blunt: 1.45
Slash: 1.35
Piercing: 1.35
Heat: 1.2
Cold: 1.5
Cellular: 1.1
Bloodloss: 1.25
Shock: 1.25
Radiation: 1.1
- type: damageModifierSet
id: FelinidSkin
coefficients:
Blunt: 1.2
Slash: 1.1
Piercing: 1.1
Heat: 1.2
Cold: 1.5
Cellular: 0.9
Bloodloss: 1.1
Shock: 1.1
Radiation: 0.9

Comment on lines +131 to +144
- type: damageModifierSet
id: CombineHuman
coefficients:
Blunt: 0.8
Slash: 0.8
Piercing: 0.6
Stun: 0.5
Cold: 0.0
Poison: 0.0
Radiation: 0.0
Asphyxiation: -1.0
Bloodloss: 0.0
Cellular: 0.0

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

Необходимо пересмотреть баланс модификаторов CombineHuman.

Текущая реализация создает потенциально имбалансный набор модификаторов:

  • Отрицательный коэффициент для Asphyxiation (-1.0) означает лечение от урона удушьем
  • Полный иммунитет к нескольким типам урона (Cold, Poison, Radiation, Bloodloss, Cellular)

Предлагаемые изменения:

  coefficients:
    Blunt: 0.8
    Slash: 0.8
    Piercing: 0.6
    Stun: 0.5
-   Cold: 0.0
-   Poison: 0.0
-   Radiation: 0.0
-   Asphyxiation: -1.0
-   Bloodloss: 0.0
-   Cellular: 0.0
+   Cold: 0.3
+   Poison: 0.3
+   Radiation: 0.3
+   Asphyxiation: 0.5
+   Bloodloss: 0.3
+   Cellular: 0.3
📝 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
- type: damageModifierSet
id: CombineHuman
coefficients:
Blunt: 0.8
Slash: 0.8
Piercing: 0.6
Stun: 0.5
Cold: 0.0
Poison: 0.0
Radiation: 0.0
Asphyxiation: -1.0
Bloodloss: 0.0
Cellular: 0.0
- type: damageModifierSet
id: CombineHuman
coefficients:
Blunt: 0.8
Slash: 0.8
Piercing: 0.6
Stun: 0.5
Cold: 0.3
Poison: 0.3
Radiation: 0.3
Asphyxiation: 0.5
Bloodloss: 0.3
Cellular: 0.3

@vintdime
Copy link
Contributor

нашёлся любитель дварфов

Copy link
Contributor

@Roudenn Roudenn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Феленидам надо побольше брони оставить, сейчас слишком много забрано, и ещё баффнуть чуть чуть скорость ходьбы хотя бы на 5% от нормальной

@nomad0260
Copy link
Collaborator Author

Феленидам надо побольше брони оставить, сейчас слишком много забрано, и ещё баффнуть чуть чуть скорость ходьбы хотя бы на 5% от нормальной

а не слишком ли имбово будет? фелиниды не должны быть боевой расой и у них буквально интегрированные перчатки вора + могут прятаться в сумках
Если и увеличивать броню, то стоит уменьшить хп с 100 до 90, крит оставить до 200

@Roudenn
Copy link
Contributor

Roudenn commented Jan 28, 2025

Феленидам надо побольше брони оставить, сейчас слишком много забрано, и ещё баффнуть чуть чуть скорость ходьбы хотя бы на 5% от нормальной

а не слишком ли имбово будет? фелиниды не должны быть боевой расой и у них буквально интегрированные перчатки вора + могут прятаться в сумках Если и увеличивать броню, то стоит уменьшить хп с 100 до 90, крит оставить до 200

Пусть будут стелс рассой, могут быстро красться и воровать, но при этом слабы

И вообще я думаю вместо резистов лучше тогда ничего не менять и просто уменьшить порог крита до 90

@hoperebal
Copy link

Предлагаю сделать феленидав тупой урон 2.0, а дворфам весь урон 0.5, а людям член 30 см, радм баланса вселенной.

Copy link
Contributor

@Roudenn Roudenn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ну пожалуй эмм эээ ну это самое ну короче это мы ладно допустим да.

@nomad0260 nomad0260 merged commit 094fd62 into Rxup:master Feb 6, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants