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

Пых имплант. #386

Merged
merged 4 commits into from
Jan 27, 2025
Merged

Conversation

VunderFaffle
Copy link
Contributor

image

Описание обновления:

Пых имплант, позволяющий пыхать.
При активации импланта издаётся звук "weh"
Импланты можно приобрести в карго.
Ящик 5 имплантов - 2К кредитов.

Медиа
weh1
weh2

Проверки

  • [ x ] PR завершён и мне не нужна помощь чтобы его закончить.
  • [ x ] Я внимательно просмотрел все свои изменения и багов в них не нашёл.
  • [ x ] Я запускал локальный сервер со своими изменениями и всё протестировал.
  • [ x ] Я добавил скриншот/видео демонстрации PR в игре, или этот PR этого не требует.
  • [ x ] Я не добавлял контент нарушающий чужие авторские права.
  • [ x ] Я добавил свой контент только в папку _LostParadise(только если вы не меняете оригинальный код).
  • [ x ] Я не добавлял переводы в прототипы, а сделал их с помощью скрипта translations.bat в Tools/SS14_RU.

Изменения

  • add: Добавлен новый имплант, позволяющий пользователю издавать звук плюшевой игрушки унатха. Работает по аналогии с хонк имплантом.
  • add: Добавлен ящик пых имплантов. Содержит 5 пых имплантов. Ящик пых имплантов можно купить в снабжении за 2000 кредитов.

Copy link
Contributor

coderabbitai bot commented Jan 17, 2025

Warning

Rate limit exceeded

@VunderFaffle has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 6 minutes and 42 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 2f9d039 and c520c5c.

📒 Files selected for processing (2)
  • Resources/Locale/en-US/ss14-ru/prototypes/_lostparadise/entities/objects/misc/implanter.ftl (1 hunks)
  • Resources/Locale/ru-RU/ss14-ru/prototypes/_lostparadise/catalog/fills/crates/weh_implant_crate.ftl (1 hunks)

Walkthrough

Изменения представляют собой добавление нового импланта "Weh" в игру. Это включает создание новой сущности импланта, действия для его активации, локализацию на английском и русском языках, а также добавление грузового продукта и ящика с имплантами. Новый имплант позволяет пользователю выполнять действие "Weh" с определенной задержкой и звуковым эффектом.

Changes

Файл Изменения
Resources/Prototypes/_LostParadise/Entities/Objects/Misc/implanter.yml Добавлены новые сущности: LPPWehImplant и LPPWehImplanter
Resources/Prototypes/_LostParadise/Action/types.yml Создано новое действие LPPActionActivateWehImplant
Resources/Prototypes/_LostParadise/Catalog/Fills/Crates/weh_implant_crate.yml Добавлен новый ящик с имплантами LPPCrateWehImplants
Resources/Prototypes/_LostParadise/Catalog/Cargo/cargo_fun.yml Введен новый грузовой продукт LPPWehImplants
Локализационные файлы Добавлены переводы для новых сущностей на английском и русском языках

Sequence Diagram

sequenceDiagram
    participant Игрок
    participant Имплант
    participant Действие
    participant Звук

    Игрок->>Имплант: Активировать
    Имплант->>Действие: Запустить действие
    Действие-->>Игрок: Задержка 1 сек
    Действие->>Звук: Воспроизвести "Weh!"
    Звук-->>Игрок: Звуковой эффект
Loading

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 Изменения: Локализация Изменяет какие-либо файлы .ftl Изменения: YML Изменяет какие-либо файлы .yml Статус: Требуется одобрение Ожидание разработчиков для принятия решений labels Jan 17, 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: 6

🔭 Outside diff range comments (1)
Resources/Prototypes/_LostParadise/Entities/Objects/Misc/implanter.yml (1)

Line range hint 1-8: Исправьте опечатку в существующем импланте!

В названии и описании импланта "loalty" допущена опечатка.

-  name: loalty implant
-  description: Do your enemies your friends!
+  name: loyalty implant
+  description: Make your enemies your friends!
🧰 Tools
🪛 yamllint (1.35.1)

[error] 15-15: too many spaces inside brackets

(brackets)


[error] 15-15: too many spaces inside brackets

(brackets)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 0ab2440 and 2f9d039.

📒 Files selected for processing (10)
  • Resources/Locale/en-US/ss14-ru/prototypes/_lostparadise/action/types.ftl (1 hunks)
  • Resources/Locale/en-US/ss14-ru/prototypes/_lostparadise/catalog/fills/crates/weh_implant_crate.ftl (1 hunks)
  • Resources/Locale/en-US/ss14-ru/prototypes/_lostparadise/entities/objects/misc/implanter.ftl (1 hunks)
  • Resources/Locale/ru-RU/ss14-ru/prototypes/_lostparadise/action/types.ftl (1 hunks)
  • Resources/Locale/ru-RU/ss14-ru/prototypes/_lostparadise/catalog/fills/crates/weh_implant_crate.ftl (1 hunks)
  • Resources/Locale/ru-RU/ss14-ru/prototypes/_lostparadise/entities/objects/misc/implanter.ftl (1 hunks)
  • Resources/Prototypes/_LostParadise/Action/types.yml (1 hunks)
  • Resources/Prototypes/_LostParadise/Catalog/Cargo/cargo_fun.yml (1 hunks)
  • Resources/Prototypes/_LostParadise/Catalog/Fills/Crates/weh_implant_crate.yml (1 hunks)
  • Resources/Prototypes/_LostParadise/Entities/Objects/Misc/implanter.yml (3 hunks)
🧰 Additional context used
📓 Path-based instructions (10)
Resources/Locale/en-US/ss14-ru/prototypes/_lostparadise/action/types.ftl (1)

Pattern **/*.ftl: Все повторяющиеся переводы должны быть написаны так:
Оригинальный перевод - id1 = text1
Повторяющийся, но с изменениями id2 = { id1 }
и если требуется .desc должен прописываться как { id1.desc }

А многострочные переводы начинающиеся со спецсимвола должны идти сначала id = спецсимвол текст и потом следующая строчка. Пример
id = спецсимвол текст
текст
спецсимвол текст

Все переводы начинающиеся с ent- должны быть с большой буквы после =. Даже после .desc и .suffix

Resources/Locale/ru-RU/ss14-ru/prototypes/_lostparadise/action/types.ftl (1)

Pattern **/*.ftl: Все повторяющиеся переводы должны быть написаны так:
Оригинальный перевод - id1 = text1
Повторяющийся, но с изменениями id2 = { id1 }
и если требуется .desc должен прописываться как { id1.desc }

А многострочные переводы начинающиеся со спецсимвола должны идти сначала id = спецсимвол текст и потом следующая строчка. Пример
id = спецсимвол текст
текст
спецсимвол текст

Все переводы начинающиеся с ent- должны быть с большой буквы после =. Даже после .desc и .suffix

Resources/Locale/ru-RU/ss14-ru/prototypes/_lostparadise/catalog/fills/crates/weh_implant_crate.ftl (1)

Pattern **/*.ftl: Все повторяющиеся переводы должны быть написаны так:
Оригинальный перевод - id1 = text1
Повторяющийся, но с изменениями id2 = { id1 }
и если требуется .desc должен прописываться как { id1.desc }

А многострочные переводы начинающиеся со спецсимвола должны идти сначала id = спецсимвол текст и потом следующая строчка. Пример
id = спецсимвол текст
текст
спецсимвол текст

Все переводы начинающиеся с ent- должны быть с большой буквы после =. Даже после .desc и .suffix

Resources/Locale/en-US/ss14-ru/prototypes/_lostparadise/catalog/fills/crates/weh_implant_crate.ftl (1)

Pattern **/*.ftl: Все повторяющиеся переводы должны быть написаны так:
Оригинальный перевод - id1 = text1
Повторяющийся, но с изменениями id2 = { id1 }
и если требуется .desc должен прописываться как { id1.desc }

А многострочные переводы начинающиеся со спецсимвола должны идти сначала id = спецсимвол текст и потом следующая строчка. Пример
id = спецсимвол текст
текст
спецсимвол текст

Все переводы начинающиеся с ent- должны быть с большой буквы после =. Даже после .desc и .suffix

Resources/Prototypes/_LostParadise/Catalog/Cargo/cargo_fun.yml (1)

Pattern **/*.yml: так же в прототипах запрещены любые переводы на русский. Только на английском или ссылкой на перевод.

Все добавляемые прототипы должны быть в нашей папке.

Никогда не предлагать ничего по отступам

При удалении дополнительного дополнения по типу prob:, можно оставить оригинальную часть с - id:.

Resources/Prototypes/_LostParadise/Catalog/Fills/Crates/weh_implant_crate.yml (1)

Pattern **/*.yml: так же в прототипах запрещены любые переводы на русский. Только на английском или ссылкой на перевод.

Все добавляемые прототипы должны быть в нашей папке.

Никогда не предлагать ничего по отступам

При удалении дополнительного дополнения по типу prob:, можно оставить оригинальную часть с - id:.

Resources/Prototypes/_LostParadise/Action/types.yml (1)

Pattern **/*.yml: так же в прототипах запрещены любые переводы на русский. Только на английском или ссылкой на перевод.

Все добавляемые прототипы должны быть в нашей папке.

Никогда не предлагать ничего по отступам

При удалении дополнительного дополнения по типу prob:, можно оставить оригинальную часть с - id:.

Resources/Locale/en-US/ss14-ru/prototypes/_lostparadise/entities/objects/misc/implanter.ftl (1)

Pattern **/*.ftl: Все повторяющиеся переводы должны быть написаны так:
Оригинальный перевод - id1 = text1
Повторяющийся, но с изменениями id2 = { id1 }
и если требуется .desc должен прописываться как { id1.desc }

А многострочные переводы начинающиеся со спецсимвола должны идти сначала id = спецсимвол текст и потом следующая строчка. Пример
id = спецсимвол текст
текст
спецсимвол текст

Все переводы начинающиеся с ent- должны быть с большой буквы после =. Даже после .desc и .suffix

Resources/Locale/ru-RU/ss14-ru/prototypes/_lostparadise/entities/objects/misc/implanter.ftl (1)

Pattern **/*.ftl: Все повторяющиеся переводы должны быть написаны так:
Оригинальный перевод - id1 = text1
Повторяющийся, но с изменениями id2 = { id1 }
и если требуется .desc должен прописываться как { id1.desc }

А многострочные переводы начинающиеся со спецсимвола должны идти сначала id = спецсимвол текст и потом следующая строчка. Пример
id = спецсимвол текст
текст
спецсимвол текст

Все переводы начинающиеся с ent- должны быть с большой буквы после =. Даже после .desc и .suffix

Resources/Prototypes/_LostParadise/Entities/Objects/Misc/implanter.yml (1)

Pattern **/*.yml: так же в прототипах запрещены любые переводы на русский. Только на английском или ссылкой на перевод.

Все добавляемые прототипы должны быть в нашей папке.

Никогда не предлагать ничего по отступам

При удалении дополнительного дополнения по типу prob:, можно оставить оригинальную часть с - id:.

🪛 yamllint (1.35.1)
Resources/Prototypes/_LostParadise/Catalog/Fills/Crates/weh_implant_crate.yml

[error] 88-88: trailing spaces

(trailing-spaces)


[error] 95-95: wrong indentation: expected 4 but found 2

(indentation)

Resources/Prototypes/_LostParadise/Action/types.yml

[error] 17-17: too many spaces inside brackets

(brackets)


[error] 17-17: too many spaces inside brackets

(brackets)


[error] 19-19: wrong indentation: expected at least 3

(indentation)


[error] 20-20: too many spaces inside braces

(braces)


[error] 20-20: too many spaces inside braces

(braces)

Resources/Prototypes/_LostParadise/Entities/Objects/Misc/implanter.yml

[error] 15-15: too many spaces inside brackets

(brackets)


[error] 15-15: too many spaces inside brackets

(brackets)


[error] 41-41: trailing spaces

(trailing-spaces)


[error] 50-50: too many blank lines

(1 > 0) (empty-lines)

⏰ 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 (7)
Resources/Locale/ru-RU/ss14-ru/prototypes/_lostparadise/action/types.ftl (1)

1-2: ⚠️ Potential issue

Исправьте регистр первой буквы перевода.

Согласно правилам локализации, все переводы, начинающиеся с 'ent-', должны начинаться с заглавной буквы после знака '='.

-ent-LPPActionActivateWehImplant = пых!
+ent-LPPActionActivateWehImplant = Пых!

Likely invalid or redundant comment.

Resources/Locale/en-US/ss14-ru/prototypes/_lostparadise/action/types.ftl (1)

1-2: Локализация корректна!

Правильное использование формата FTL и корректная капитализация для сущности.

Resources/Locale/en-US/ss14-ru/prototypes/_lostparadise/catalog/fills/crates/weh_implant_crate.ftl (1)

1-2: Локализация ящика соответствует требованиям!

Описание чётко указывает содержимое и предназначение ящика.

Resources/Prototypes/_LostParadise/Catalog/Cargo/cargo_fun.yml (1)

11-19: Конфигурация товара корректна!

Цена и категоризация соответствуют требованиям PR. Использование иконки импланта уместно.

Resources/Prototypes/_LostParadise/Action/types.yml (2)

13-22: Реализация действия корректна!

  • Иконка соответствует тематике (плюшевая игрушка)
  • Задержка в 1 секунду предотвращает спам
  • Корректная интеграция с системой имплантов
🧰 Tools
🪛 yamllint (1.35.1)

[error] 17-17: too many spaces inside brackets

(brackets)


[error] 17-17: too many spaces inside brackets

(brackets)


[error] 19-19: wrong indentation: expected at least 3

(indentation)


[error] 20-20: too many spaces inside braces

(braces)


[error] 20-20: too many spaces inside braces

(braces)


17-17: 🧹 Nitpick (assertive)

Исправьте форматирование!

Уберите лишние пробелы внутри квадратных скобок.

-  categories: [ HideSpawnMenu ]
+  categories: [HideSpawnMenu]

Likely invalid or redundant comment.

🧰 Tools
🪛 yamllint (1.35.1)

[error] 17-17: too many spaces inside brackets

(brackets)


[error] 17-17: too many spaces inside brackets

(brackets)

Resources/Prototypes/_LostParadise/Entities/Objects/Misc/implanter.yml (1)

10-31: Реализация нового импланта корректна!

  • Правильное наследование от базовых классов
  • Корректная интеграция со звуковой системой
  • Компоненты настроены правильно
🧰 Tools
🪛 yamllint (1.35.1)

[error] 15-15: too many spaces inside brackets

(brackets)


[error] 15-15: too many spaces inside brackets

(brackets)

Comment on lines +1 to +2


Copy link
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Удалите пустые строки в начале файла.

Файл не должен начинаться с пустых строк.

Comment on lines +3 to +6
ent-LPPWehImplant = Пых имплант
.desc = Позволяет пользователю ПЫХАТЬ
ent-LPPWehImplanter = Пых имплант
.desc = Пых!
Copy link
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick (assertive)

Обеспечьте единообразие в описаниях.

  1. Используйте одинаковый стиль написания слова "пых" во всех описаниях.
  2. Слово "ПЫХАТЬ" в верхнем регистре выглядит слишком агрессивно.
 ent-LPPWehImplant = Пых имплант
-    .desc = Позволяет пользователю ПЫХАТЬ
+    .desc = Позволяет пользователю пыхать
 ent-LPPWehImplanter = Пых имплант
     .desc = Пых!
📝 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
ent-LPPWehImplant = Пых имплант
.desc = Позволяет пользователю ПЫХАТЬ
ent-LPPWehImplanter = Пых имплант
.desc = Пых!
ent-LPPWehImplant = Пых имплант
.desc = Позволяет пользователю пыхать
ent-LPPWehImplanter = Пых имплант
.desc = Пых!

@@ -85,3 +85,14 @@
contents:
- id: MacroBombImplanter
amount: 5

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

Удалите пробелы в конце строки

В строке 88 обнаружены лишние пробелы в конце строки. Это может вызвать проблемы при обработке файла.

-        
+
🧰 Tools
🪛 yamllint (1.35.1)

[error] 88-88: trailing spaces

(trailing-spaces)

Comment on lines +89 to +98
- type: entity
id: LPPCrateWehImplants
name: Weh implant crate
description: Crate filled with 5 weh implants which let the user weh
parent: CrateMedical
components:
- type: StorageFill
contents:
- id: LPPWehImplanter
amount: 5
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Обнаружено несоответствие в типе родительского контейнера

Все остальные имплантаты в файле используют CrateSecgear в качестве родительского типа. Рекомендуется изменить тип контейнера для Weh-имплантата с CrateMedical на CrateSecgear для соблюдения единообразия.

🔗 Analysis chain

Проверьте корректность использования CrateMedical

Структура нового импланта выглядит правильно, но в отличие от других имплантов в файле, которые используют CrateSecgear, данный имплант использует CrateMedical. Пожалуйста, подтвердите, что это намеренное изменение.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Проверяем использование CrateMedical в других имплантах
rg "parent: CrateMedical" Resources/Prototypes/_LostParadise/Catalog/Fills/Crates/

# Проверяем определение базового типа
rg "id: CrateMedical" Resources/Prototypes/

Length of output: 729


Script:

#!/bin/bash
# Check for CrateSecgear usage in implant crates and its definition
rg "parent: CrateSecgear" Resources/Prototypes/_LostParadise/Catalog/Fills/Crates/
rg "id: CrateSecgear" Resources/Prototypes/

Length of output: 1024


Script:

#!/bin/bash
# Check the full content of the weh implant crate file
cat Resources/Prototypes/_LostParadise/Catalog/Fills/Crates/weh_implant_crate.yml

Length of output: 2864

🧰 Tools
🪛 yamllint (1.35.1)

[error] 95-95: wrong indentation: expected 4 but found 2

(indentation)

VunderFaffle and others added 2 commits January 17, 2025 22:34
…g/fills/crates/weh_implant_crate.ftl

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
…es/objects/misc/implanter.ftl

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@VunderFaffle
Copy link
Contributor Author

VunderFaffle commented Jan 17, 2025

Хз почему билд и тест дебаг не прошли. Не во мне причина, у меня всё протестировано. Там буквально нечему ломаться.

@Evgencheg Evgencheg merged commit 7587db7 into Lost-Paradise-Project:master Jan 27, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Изменения: YML Изменяет какие-либо файлы .yml Изменения: Локализация Изменяет какие-либо файлы .ftl Статус: Требуется одобрение Ожидание разработчиков для принятия решений
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants