Skip to content

[PORT] Adiciona a cápsula de assalto dos Agentes Nucleares#842

Open
Struater wants to merge 56 commits into
Project-Dumont:dumontfrom
Struater:drop
Open

[PORT] Adiciona a cápsula de assalto dos Agentes Nucleares#842
Struater wants to merge 56 commits into
Project-Dumont:dumontfrom
Struater:drop

Conversation

@Struater

@Struater Struater commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Sobre a PR

Adiciona o Pod de Assalto dos Agentes Nucleares do SS13

200 TC para ser usado em tempos de paz e 300 em guerra

Por quê? / Balanceamento

AdventureTimeSS14/space_station_ADT#2837

Detalhes Técnicos

Anexos

image

Requerimentos

Changelog
🆑 Struater

  • add: Adicionado o Pod de Assalto para os nukes.
  • add: ALERTA: Objeto de hipervelocidade em colisão com a estação em 5 segundos!

@github-actions

github-actions Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

RSI Diff Bot; head commit 28663a0 merging into e73b9cd
This PR makes changes to 1 or more RSIs. Here is a summary of all changes:

Resources/Textures/ADT/Effects/droppod_target.rsi

State Old New Status
targeting Added

Resources/Textures/Structures/Machines/computers.rsi

State Old New Status
request-syndie Added
syndie_generic_keys Added

Edit: diff updated after 28663a0

@coderabbitai

coderabbitai Bot commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Walkthrough

O PR adiciona um sistema completo de lançamento de drop pods por beacons, incluindo contratos compartilhados, console cliente, validações e impactos no servidor, integração com estações, mapas, protótipos, recursos visuais, áudio e traduções.

Changes

Lançamento direcionado de drop pods

Layer / File(s) Summary
Contratos e protótipos do console
Content.Shared/ADT/Shuttles/Components/*, Resources/Prototypes/ADT/..., Resources/Prototypes/Entities/Stations/nanotrasen.yml
Define componentes, estado sincronizado, mensagem de deploy, evento de guerra, entidades de pod e destino, além do protótipo do console e da herança de estações-alvo.
Fluxo de servidor e impacto
Content.Server/ADT/Shuttles/DropPodConsoleSystem.cs, Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs
Coordena estado da UI, cooldowns, custos, validação de beacons, cálculo de pouso, FTL, dano de chegada, fusão de grids, spawns pendentes e supressão de sucata.
Interface e mira de beacon
Content.Client/ADT/Shuttles/DropPodConsoleBui.cs, Content.Client/ADT/Shuttles/DropPodNavMapControl.cs
Cria a janela do console, lista beacons, exibe saldo e status, centraliza o mapa, destaca o beacon e envia a solicitação de deploy.
Mapas e configuração da rodada
Resources/Maps/ADTMaps/..., Resources/Maps/Shuttles/infiltrator.yml, Resources/Maps/_Dumont/..., Resources/Prototypes/GameRules/roundstart.yml
Adiciona os mapas de estação e drop pod, atualiza o mapa infiltrator e direciona Nukeops para o mapa Dumont.
Recursos e localização
Resources/Audio/..., Resources/Locale/..., Resources/Prototypes/ADT/Entities/Effects/..., Resources/Textures/...
Adiciona músicas, atribuições, traduções, retícula de alvo e estados gráficos do computador.
Validação de protótipos
Content.IntegrationTests/Tests/PrototypeSaveTest.cs
Adiciona uma verificação recursiva de contêineres de soluções durante a validação de protótipos.

Estimated code review effort: 5 (Critical) | ~120 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Operator
  participant DropPodConsoleBui
  participant DropPodConsoleSystem
  participant NukeDropPod
  participant StationGrid

  Operator->>DropPodConsoleBui: seleciona beacon e pressiona deploy
  DropPodConsoleBui->>DropPodConsoleSystem: envia DropPodConsoleDeployMessage
  DropPodConsoleSystem->>NukeDropPod: valida alvo, custo e cooldown
  DropPodConsoleSystem->>NukeDropPod: inicia FTL para coordenadas seguras
  NukeDropPod->>StationGrid: chega, aplica impacto e mescla o grid
Loading

Suggested labels: Changes: UI

Suggested reviewers: artisticroomba

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed O título resume bem a principal mudança: a cápsula de assalto dos agentes nucleares.
Description check ✅ Passed A descrição corresponde às mudanças: adiciona o pod de assalto, custos em paz/guerra e o novo alerta.
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.

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.

Comment thread Content.Shared/ADT/Droppods/Components/DroppodComponent.cs Outdated
Comment thread Content.Shared/ADT/Droppods/EntitySystems/DroppodSystem.cs Outdated
Comment thread Resources/Prototypes/ADT/Entities/Objects/Specific/Chapel/droppods.yml Outdated
Comment thread Resources/Prototypes/ADT/Entities/Objects/Specific/Salvage/droppod.yml Outdated
Comment thread Content.IntegrationTests/Tests/PrototypeSaveTest.cs Outdated
Comment thread Content.IntegrationTests/Tests/PrototypeSaveTest.cs Outdated
@CrimeMoot

Copy link
Copy Markdown
Contributor

Пожалуйста. Если вы планируйте использовать, подтяните изменение.

Comment thread Content.IntegrationTests/Tests/PrototypeSaveTest.cs Outdated
Comment thread Resources/Prototypes/GameRules/roundstart.yml

@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: 5

🧹 Nitpick comments (2)
Content.Client/ADT/Shuttles/DropPodConsoleBui.cs (1)

102-103: 🚀 Performance & Scalability | 🔵 Trivial | 💤 Low value

RebuildBeaconList() é executado duas vezes por atualização de estado.

UpdateState chama RebuildBeaconList() na Line 102 e, em seguida, RefreshState() (Line 103) volta a chamá-lo na Line 304. A chamada da Line 102 é redundante.

🤖 Prompt for 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.

In `@Content.Client/ADT/Shuttles/DropPodConsoleBui.cs` around lines 102 - 103,
Remove the redundant RebuildBeaconList() call from UpdateState, leaving
RefreshState() to perform the rebuild through its existing call. Preserve the
surrounding state-update flow unchanged.
Content.Server/ADT/Shuttles/DropPodConsoleSystem.cs (1)

469-513: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Duas fontes de verdade para o estado de guerra.

O bloqueio por guerra é avaliado duas vezes: nas Linhas 469-489 com base em comp.WarDeclaredTime e nas Linhas 496-513 com base em nukeops.WarDeclaredTime. Os dois usam bases de tempo diferentes e podem divergir (comp.WarDeclaredTime só é atualizado em OnWarDeclared/UpdateUiState, ficando potencialmente obsoleto em relação à regra Nukeops). Como o segundo bloco (496-513) já enforça o cooldown a partir da regra Nukeops — que também define o custo — o primeiro bloco é redundante. Considere manter apenas a checagem baseada em NukeopsRuleComponent como fonte única, eliminando o bloco 469-489.

🤖 Prompt for 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.

In `@Content.Server/ADT/Shuttles/DropPodConsoleSystem.cs` around lines 469 - 513,
Remove the initial war cooldown block that checks comp.WarDeclaredTime and
computes warNukieArriveDelay before GetTcInSlot. Keep the later
launchBlockedByWar check based on NukeopsRuleComponent.WarDeclaredTime and
WarNukieArriveDelay as the sole war-state enforcement path.
🤖 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 `@Content.Client/ADT/Shuttles/DropPodConsoleBui.cs`:
- Around line 57-82: Remove the redundant nested _warStatusLabel null check in
the status-label update block, keeping a single guard around the existing
IsAtWar, WarCooldownRemaining, text, and FontColorOverride logic. Preserve the
current behavior and conditions inside the remaining guard.

In `@Content.Shared/ADT/Shuttles/Components/DropPodConsoleComponent.cs`:
- Around line 65-69: Atualize o comentário XML de WarCost para remover
“discounted” e descrever corretamente que o custo de lançamento durante a guerra
é maior que o custo em tempos de paz, mantendo o valor e os atributos existentes
inalterados.

In `@Resources/Locale/en-US/ADT/ui/drop-pod-console.ftl`:
- Line 17: Adicione a chave de tradução drop-pod-console-war-ready em
Resources/Locale/en-US/ADT/ui/drop-pod-console.ftl nas linhas 17-17, com a
tradução em inglês correspondente, e em
Resources/Locale/ru-RU/ADT/ui/drop-pod-console.ftl nas linhas 17-17, com a
tradução em russo correspondente.

In `@Resources/Maps/ADTMaps/Nonstation/nukeplanet_adt.yml`:
- Around line 11006-11025: Remova as entidades de construção duplicadas,
mantendo apenas uma por posição: em
Resources/Maps/ADTMaps/Nonstation/nukeplanet_adt.yml:11006-11025, preserve uma
Grille entre os uids 1736-1739; em :14098-14102, remova uma das WallPlastitanium
2224/2225; em :14119-14127, remova uma das WallPlastitanium 2229/2230; e em
Resources/Maps/Shuttles/infiltrator.yml:1124-1133, remova uma das
CableApcExtension 83/84.

In
`@Resources/Prototypes/ADT/Entities/Structures/Machines/Computers/drop_pod_console.yml`:
- Around line 44-51: Remove the duplicate DefaultStationBeaconNuclear entry from
the beaconBlacklist in the drop pod console configuration, keeping the existing
single entry and leaving the surrounding blacklist entries unchanged.

---

Nitpick comments:
In `@Content.Client/ADT/Shuttles/DropPodConsoleBui.cs`:
- Around line 102-103: Remove the redundant RebuildBeaconList() call from
UpdateState, leaving RefreshState() to perform the rebuild through its existing
call. Preserve the surrounding state-update flow unchanged.

In `@Content.Server/ADT/Shuttles/DropPodConsoleSystem.cs`:
- Around line 469-513: Remove the initial war cooldown block that checks
comp.WarDeclaredTime and computes warNukieArriveDelay before GetTcInSlot. Keep
the later launchBlockedByWar check based on NukeopsRuleComponent.WarDeclaredTime
and WarNukieArriveDelay as the sole war-state enforcement path.
🪄 Autofix (Beta)

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: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 8ad8a722-c893-4c07-8c8b-2596dfd18075

📥 Commits

Reviewing files that changed from the base of the PR and between e73b9cd and bc6a1be.

⛔ Files ignored due to path filters (10)
  • Resources/Audio/_Dumont/Eventos/Droppod/alpha_predator.ogg is excluded by !**/*.ogg
  • Resources/Audio/_Dumont/Eventos/Droppod/colliding_stars.ogg is excluded by !**/*.ogg
  • Resources/Audio/_Dumont/Eventos/Droppod/corporate_rats.ogg is excluded by !**/*.ogg
  • Resources/Audio/_Dumont/Eventos/Droppod/frontal_attack.ogg is excluded by !**/*.ogg
  • Resources/Audio/_Dumont/Eventos/Droppod/razormind.ogg is excluded by !**/*.ogg
  • Resources/Audio/_Dumont/Eventos/Droppod/shots_fired.ogg is excluded by !**/*.ogg
  • Resources/Audio/_Dumont/Eventos/Droppod/the_insurgency's_end.ogg is excluded by !**/*.ogg
  • Resources/Textures/ADT/Effects/droppod_target.rsi/targeting.png is excluded by !**/*.png
  • Resources/Textures/Structures/Machines/computers.rsi/request-syndie.png is excluded by !**/*.png
  • Resources/Textures/Structures/Machines/computers.rsi/syndie_generic_keys.png is excluded by !**/*.png
📒 Files selected for processing (32)
  • Content.Client/ADT/Shuttles/DropPodConsoleBui.cs
  • Content.Client/ADT/Shuttles/DropPodNavMapControl.cs
  • Content.IntegrationTests/Tests/PrototypeSaveTest.cs
  • Content.Server/ADT/Shuttles/DropPodConsoleSystem.cs
  • Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs
  • Content.Shared/ADT/Shuttles/Components/DropPodBeaconInfo.cs
  • Content.Shared/ADT/Shuttles/Components/DropPodConsoleBuiState.cs
  • Content.Shared/ADT/Shuttles/Components/DropPodConsoleComponent.cs
  • Content.Shared/ADT/Shuttles/Components/DropPodConsoleDeployMessage.cs
  • Content.Shared/ADT/Shuttles/Components/DropPodTargetStationComponent.cs
  • Content.Shared/ADT/Shuttles/Components/DropPodWarSyncEvent.cs
  • Content.Shared/ADT/Shuttles/Components/NukeDropPodComponent.cs
  • Content.Shared/Destructible/DroppodSuppressedComponent.cs
  • Resources/Audio/_Dumont/Eventos/Droppod/attributions.yml
  • Resources/Locale/en-US/ADT/ui/drop-pod-console.ftl
  • Resources/Locale/pt-BR/_Dumont/ui/drop-pod-console.ftl
  • Resources/Locale/pt-BR/communications/communications-console-component.ftl
  • Resources/Locale/pt-BR/nukeops/war-declarator.ftl
  • Resources/Locale/ru-RU/ADT/drop-pode-console.ftl
  • Resources/Locale/ru-RU/ADT/ui/drop-pod-console.ftl
  • Resources/Maps/ADTMaps/Nonstation/nukeplanet_adt.yml
  • Resources/Maps/ADTMaps/Shuttles/nuke_dropod.yml
  • Resources/Maps/Shuttles/infiltrator.yml
  • Resources/Maps/_Dumont/Nonstations/nukieplanet.yml
  • Resources/Prototypes/ADT/Entities/Effects/droppod_target.yml
  • Resources/Prototypes/ADT/Entities/Stations/base.yml
  • Resources/Prototypes/ADT/Entities/Structures/Machines/Computers/drop_pod_console.yml
  • Resources/Prototypes/Entities/Stations/nanotrasen.yml
  • Resources/Prototypes/GameRules/roundstart.yml
  • Resources/Prototypes/_Dumont/Audio/drop_pod_music.yml
  • Resources/Textures/ADT/Effects/droppod_target.rsi/meta.json
  • Resources/Textures/Structures/Machines/computers.rsi/meta.json

Comment thread Content.Client/ADT/Shuttles/DropPodConsoleBui.cs
Comment thread Content.Shared/ADT/Shuttles/Components/DropPodConsoleComponent.cs
Comment thread Resources/Locale/en-US/ADT/ui/drop-pod-console.ftl
Comment thread Resources/Maps/ADTMaps/Nonstation/nukeplanet_adt.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.

4 participants