fix: antag steal check#63
Conversation
📝 WalkthroughWalkthroughThis PR enables map-existence verification for MAID steal objective checks across multiple role-based objective systems (thief, traitor, changeling, corporate agent) by updating the ChangesMAID Steal Objective Behavior
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (3)
Resources/Prototypes/_Goobstation/Changeling/Objectives/changeling.yml (1)
297-297: 💤 Low valueConsider removing redundant
verifyMapExistence: truesetting.
LingStealSupermatterSliverObjectivenow inheritsverifyMapExistence: truefrom its parentChangelingStealObjective(Line 114), making this explicit setting unnecessary.♻️ Cleanup suggestion
- type: StealCondition - verifyMapExistence: true stealGroup: SupermatterSliver🤖 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 `@Resources/Prototypes/_Goobstation/Changeling/Objectives/changeling.yml` at line 297, Remove the redundant verifyMapExistence: true entry from the LingStealSupermatterSliverObjective block in changeling.yml since ChangelingStealObjective already defines verifyMapExistence: true; locate the LingStealSupermatterSliverObjective definition and delete the explicit verifyMapExistence line so inheritance from ChangelingStealObjective is relied upon.Resources/Prototypes/Objectives/thief.yml (1)
122-122: 💤 Low valueConsider removing redundant
verifyMapExistence: truesettings.These child objectives (
BaseThiefStealCollectionObjective,BaseThiefStealStructureObjective,BaseThiefStealAnimalObjective,LAMPStealCollectionObjective) now inheritverifyMapExistence: truefrom their parentBaseThiefStealObjective(Line 112), making these explicit settings unnecessary.♻️ Cleanup suggestion
Remove the redundant
verifyMapExistence: truelines from:
- Line 122 (
BaseThiefStealCollectionObjective)- Line 130 (
BaseThiefStealStructureObjective)- Line 140 (
BaseThiefStealAnimalObjective)- Line 230 (
LAMPStealCollectionObjective)Also applies to: 130-130, 140-140, 230-230
🤖 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 `@Resources/Prototypes/Objectives/thief.yml` at line 122, Remove the redundant verifyMapExistence: true entries from the child objective definitions since they inherit this flag from BaseThiefStealObjective; specifically delete the verifyMapExistence lines in BaseThiefStealCollectionObjective, BaseThiefStealStructureObjective, BaseThiefStealAnimalObjective and LAMPStealCollectionObjective so the children rely on the parent BaseThiefStealObjective's setting.Resources/Prototypes/_Goobstation/Objectives/corporageagent.yml (1)
388-388: 💤 Low valueConsider removing redundant
verifyMapExistence: truesetting.
CorporateStealSupermatterSliverObjectivenow inheritsverifyMapExistence: truefrom its parentBaseCorporateStealObjective(Line 38), making this explicit setting unnecessary.♻️ Cleanup suggestion
- type: StealCondition - verifyMapExistence: true stealGroup: SupermatterSliver🤖 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 `@Resources/Prototypes/_Goobstation/Objectives/corporageagent.yml` at line 388, Remove the redundant verifyMapExistence: true entry from the CorporateStealSupermatterSliverObjective YAML block since it already inherits verifyMapExistence: true from BaseCorporateStealObjective; locate the CorporateStealSupermatterSliverObjective definition and delete the verifyMapExistence key so the objective relies on the parent setting.
🤖 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.
Nitpick comments:
In `@Resources/Prototypes/_Goobstation/Changeling/Objectives/changeling.yml`:
- Line 297: Remove the redundant verifyMapExistence: true entry from the
LingStealSupermatterSliverObjective block in changeling.yml since
ChangelingStealObjective already defines verifyMapExistence: true; locate the
LingStealSupermatterSliverObjective definition and delete the explicit
verifyMapExistence line so inheritance from ChangelingStealObjective is relied
upon.
In `@Resources/Prototypes/_Goobstation/Objectives/corporageagent.yml`:
- Line 388: Remove the redundant verifyMapExistence: true entry from the
CorporateStealSupermatterSliverObjective YAML block since it already inherits
verifyMapExistence: true from BaseCorporateStealObjective; locate the
CorporateStealSupermatterSliverObjective definition and delete the
verifyMapExistence key so the objective relies on the parent setting.
In `@Resources/Prototypes/Objectives/thief.yml`:
- Line 122: Remove the redundant verifyMapExistence: true entries from the child
objective definitions since they inherit this flag from BaseThiefStealObjective;
specifically delete the verifyMapExistence lines in
BaseThiefStealCollectionObjective, BaseThiefStealStructureObjective,
BaseThiefStealAnimalObjective and LAMPStealCollectionObjective so the children
rely on the parent BaseThiefStealObjective's setting.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 8438a647-3f93-45ed-87ee-3ec6f8ca1d94
📒 Files selected for processing (4)
Resources/Prototypes/Objectives/thief.ymlResources/Prototypes/Objectives/traitor.ymlResources/Prototypes/_Goobstation/Changeling/Objectives/changeling.ymlResources/Prototypes/_Goobstation/Objectives/corporageagent.yml
Описание
Теперь большая часть задач проверяет наличие предмета перед выдачей задачи на воровство
Изменения
🆑 CREAsTIVE
Summary by CodeRabbit