Skip to content

Дебаг невидимое электричество - #1116

Open
666XxttimurkaxX666 wants to merge 1 commit into
space-sunrise:masterfrom
666XxttimurkaxX666:add-debug-admin
Open

Дебаг невидимое электричество#1116
666XxttimurkaxX666 wants to merge 1 commit into
space-sunrise:masterfrom
666XxttimurkaxX666:add-debug-admin

Conversation

@666XxttimurkaxX666

@666XxttimurkaxX666 666XxttimurkaxX666 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Краткое описание

для ивентологов

Ссылка на багрепорт/Предложение

Медиа (Видео/Скриншоты)

Скриншот-20260806-151632 Скриншот-20260806-151640

Changelog

🆑 timur

  • add: добавлены дебаг невидимые кабели, подстанции, лкп, смэс и генераторы

Summary by CodeRabbit

  • Новые возможности
    • Добавлены невидимые отладочные элементы энергосистемы: генератор, SMES, подстанция и APC.
    • Добавлены невидимые кабели высокого и среднего напряжения, а также кабельное расширение для APC.
    • SMES, подстанция и APC поддерживают автоматическую перезарядку.
    • Добавлены русские локализации для всех новых элементов.

@coderabbitai

coderabbitai Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Добавлены семь невидимых DEBUG-прототипов энергетических устройств и кабелей. Устройства получили параметры генерации или автоматической перезарядки. Для всех прототипов настроены физические фикстуры. Добавлена русская локализация.

Changes

Отладочные энергетические прототипы

Layer / File(s) Summary
Невидимые DEBUG-кабели
Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml, Resources/Locale/ru-RU/_prototypes/_scp/entities/structures/debug_power.ftl
Добавлены невидимые кабели MV, APC extension и HV. Настроены узлы питания, типы кабелей, прототипы после разрезания и локализация.
Невидимые источники и накопители энергии
Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml, Resources/Locale/ru-RU/_prototypes/_scp/entities/structures/debug_power.ftl
Добавлены генератор, SMES, подстанция и APC. Генератор получил мощность 300000 и плавное наращивание питания. SMES, подстанция и APC получили автоматическую перезарядку с rate 50000.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested labels: 🧊 Нет C# 🧊, 📚 Изменения: Локализация 📚, 📦 YAML | Прототип 📦

Suggested reviewers: wardexofficial

🚥 Pre-merge checks | ✅ 11
✅ Passed checks (11 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed Заголовок точно отражает основную цель изменений: добавление отладочных невидимых электрических сущностей.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Ss14 Bridge Sync ✅ Passed PR изменяет только два файла в Resources; изменений в .agents/rules, .agents/skills или требуемых bridge-каталогах нет.
Ss14 Fork/Project Folder Selection ✅ Passed Активный форк — Fire: remote содержит project-fire, а оба новых файла находятся в _Scp/_scp; файлов в _Sunrise и Sunrise-маркеров в изменениях нет.
Ss14 C# Rules ✅ Passed Проверка неприменима: в изменениях PR присутствуют только два файла .ftl и .yml; изменённых файлов .cs нет.
Ss14 Yaml/Ftl Rules ✅ Passed Проверены оба изменённых файла: все ID CamelCase с префиксом Scp, компоненты без суффикса Component, FTL-ключи ent- и локализации соответствуют прототипам.
Ss14 Prototype ↔ Ftl Parity ✅ Passed Все 7 новых prototype ID имеют соответствующие ent-* ключи в ru-RU; для каждого задан .suffix и .desc, включая наследование описаний базовых сущностей.
Ss14 Prediction Safety ✅ Passed Проверка неприменима: PR изменяет только Resources/.yml и Resources/.ftl; Content.Shared, предсказанный ввод и общий код не изменены.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml`:
- Around line 5-18: Добавьте в каждый DEBUG-прототип кабеля компоненты CableVis
с точкой подключения node: power и CableVisualizer с соответствующим
statePrefix: mvcable_, lvcable_ или hvcable_. Используйте эти компоненты рядом с
существующими NodeContainer и Cable, чтобы визуализация обновляла спрайт по
ConnectedMask вместо фиксированного state.
- Around line 7-8: Исправьте ссылки sprite в прототипе debug_power, включая
состояния mvcable_15, lvcable_15 и hvcable_15: используйте существующие
fork-ассеты из Resources/Textures/_Scp/Structures/Power/Cables вместо
несуществующих путей _Scp/Structures/Power/Cables, либо добавьте отсутствующие
ассеты по этим путям.
- Around line 1-145: Run the mandatory localization validation for the YAML
prototypes in debug_power.yml, checking FTL coverage for every player-facing
prototype ID introduced or changed, including ScpCableMVInvisible,
ScpCableApcExtensionInvisible, ScpCableHVInvisible, ScpDebugInvisibleGenerator,
ScpDebugInvisibleSMESRecharging, ScpDebugInvisibleSubstationRecharging, and
ScpDebugInvisibleAPCRecharging. Add or update the corresponding localization
entries as required by the validation.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 0e61843e-aeaa-43d4-871e-258d18d4d2c5

📥 Commits

Reviewing files that changed from the base of the PR and between 467aa52 and e288b33.

📒 Files selected for processing (2)
  • Resources/Locale/ru-RU/_prototypes/_scp/entities/structures/debug_power.ftl
  • Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml

Comment thread Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml
Comment thread Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml
Comment thread Resources/Prototypes/_Scp/Entities/Structures/debug_power.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant