Skip to content

活动更新#131

Merged
Q1213a merged 5 commits into
masterfrom
dev
May 20, 2026
Merged

活动更新#131
Q1213a merged 5 commits into
masterfrom
dev

Conversation

@Q1213a
Copy link
Copy Markdown
Collaborator

@Q1213a Q1213a commented May 20, 2026

No description provided.

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Sorry @Q1213a, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces the "Alliance Before the Sacred Seal" event, adding comprehensive map configurations, campaign logic, and localization support across multiple languages. Feedback from the review identifies missing or misplaced generated configuration markers in the map files and inconsistent method usage for clearing bosses. Additionally, a translation correction is needed for the Traditional Chinese localization file to ensure consistency.

MAP_SIREN_HAS_BOSS_ICON_SMALL = True
MAP_SWIPE_MULTIPLY = (1.179, 1.201)
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.140, 1.161)
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.107, 1.127)
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.

medium

The Config class is missing the # ===== End of generated config ===== marker. This marker is essential for the configuration generator to correctly identify and update the generated block in the future.

Suggested change
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.107, 1.127)
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.107, 1.127)
# ===== End of generated config =====

return self.battle_default()

def battle_5(self):
return self.fleet_boss.clear_boss()
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.

medium

Inconsistent use of self.fleet_boss.clear_boss(). Other files in this event (e.g., a1.py, a2.py) use the standard self.clear_boss() method provided by CampaignBase. It is recommended to use the standard method for consistency across all map files.

Suggested change
return self.fleet_boss.clear_boss()
return self.clear_boss()

Comment on lines +58 to +68
# ===== End of generated config =====

MAP_CHAPTER_SWITCH_20241219 = True
STAGE_ENTRANCE = ['half', '20240725']
MAP_HAS_MODE_SWITCH = True
STAGE_INCREASE_AB = True
MAP_WALK_USE_CURRENT_FLEET = True
MAP_SIREN_HAS_BOSS_ICON_SMALL = True
MAP_SWIPE_MULTIPLY = (1.179, 1.201)
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.140, 1.161)
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.107, 1.127)
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.

medium

The # ===== End of generated config ===== marker is misplaced. Several configuration items (lines 60-68) that are typically part of the generated block are currently outside of it. This may cause issues with the configuration generator.

Suggested change
# ===== End of generated config =====
MAP_CHAPTER_SWITCH_20241219 = True
STAGE_ENTRANCE = ['half', '20240725']
MAP_HAS_MODE_SWITCH = True
STAGE_INCREASE_AB = True
MAP_WALK_USE_CURRENT_FLEET = True
MAP_SIREN_HAS_BOSS_ICON_SMALL = True
MAP_SWIPE_MULTIPLY = (1.179, 1.201)
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.140, 1.161)
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.107, 1.127)
MAP_CHAPTER_SWITCH_20241219 = True
STAGE_ENTRANCE = ['half', '20240725']
MAP_HAS_MODE_SWITCH = True
STAGE_INCREASE_AB = True
MAP_WALK_USE_CURRENT_FLEET = True
MAP_SIREN_HAS_BOSS_ICON_SMALL = True
MAP_SWIPE_MULTIPLY = (1.179, 1.201)
MAP_SWIPE_MULTIPLY_MINITOUCH = (1.140, 1.161)
MAP_SWIPE_MULTIPLY_MAATOUCH = (1.107, 1.127)
# ===== End of generated config =====

"event_20260226_cn": "春滿客棧Online",
"event_20260326_cn": "漫遊者招募計劃",
"event_20260417_cn": "假日航線閃耀海濱",
"event_20260520_cn": "Alliance Before the Sacred Seal",
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.

medium

The translation for event_20260520_cn is currently in English. It should be translated to Traditional Chinese to maintain consistency with the rest of the file.

Suggested change
"event_20260520_cn": "Alliance Before the Sacred Seal",
"event_20260520_cn": "聖印前的同盟",

@Q1213a Q1213a merged commit 409f2a7 into master May 20, 2026
6 checks passed
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.

1 participant