Skip to content

Przejęta SI nie kupi Doomsday ani fabryki borgów - #511

Merged
Joker66613 merged 1 commit into
masterfrom
fix-malf-hijacked
Oct 27, 2026
Merged

Joker66613 merged 1 commit into
masterfrom
fix-malf-hijacked

Conversation

@Joker66613

Copy link
Copy Markdown
Collaborator

Co

Przejęta SI (hijacked_ai) miała mieć zablokowane dwa moduły malf: Doomsday Device i Robotic Factory. Blokada nie działała:

  • can_use() w aquila/code/modules/antagonists/traitor/equipment/Malf_Modules.dm było przypięte do /datum/AI_Module/destructive/nuke_station i /datum/AI_Module/utility/place_cyborg_transformer, a te moduły w core to /datum/AI_Module/large/... (DM po cichu tworzył nowe, nieużywane typy),
  • can_use() nie było nigdzie wywoływane.

Poprawka

  • poprawione ścieżki na /large/, mind?. dla bezpieczeństwa,
  • ui_static_data sklepu modułów ukrywa moduły, których dana SI nie może kupić,
  • purchase_module odrzuca zakup takiego modułu (gdyby ktoś wysłał akcję ręcznie).

Zwykły malf (traitor-AI) widzi i kupuje wszystko jak dotąd.

Test

dm.exe -DCBT — 0 błędów. W grze niesprawdzone: nadać SI antaga Przejęta SI, otworzyć sklep modułów — nie powinno być Doomsday ani Robotic Factory; dla zwykłego malfa powinny być.

can_use() było zdefiniowane na nieistniejących ścieżkach (destructive/, utility/
zamiast large/) i nikt go nie wywoływał. Teraz sklep ukrywa zablokowane moduły,
a zakup je sprawdza.
@coderabbitai

coderabbitai Bot commented Oct 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 28 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0a3ef864-30b2-4237-81dd-db85b4e56a2e
Commits

Reviewing files that changed from the base of the PR and between 9850ef8 and 1bc0ec8.

Files selected for processing: 1
  • aquila/code/modules/antagonists/traitor/equipment/Malf_Modules.dm
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@Joker66613
Joker66613 merged commit 51ddfdd into master Oct 27, 2026
9 checks passed
@Joker66613
Joker66613 deleted the fix-malf-hijacked branch October 27, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants