Repository navigation
Introduce the recently added weapon Moonweaver's Dawn - #427
Conversation
Reviewer's GuideIntroduces the new Moonweaver's Dawn sword by adding its implementation, registering it in the swords module, and updating relevant tests to include it. Entity relationship diagram for sword registration including Moonweaver's DawnerDiagram
SWORD_REGISTRY {
string name
Sword class_ref
}
MoonweaversDawn {
string name
WeaponStat seco_stat
Tier tier
Rare rare
string refi_name
list refi_list
string file
}
SWORD_REGISTRY ||--|{ MoonweaversDawn : contains
Class diagram for the new Moonweaver's Dawn swordclassDiagram
class Sword
class MoonweaversDawn {
+name: str = "Moonweaver's Dawn"
+seco_stat: WeaponStat
+tier: Tier
+rare: Rare
+refi_name: str = "Secret Silver's Testament"
+refi_list: list[str]
+file: str = "mwdn"
}
Sword <|-- MoonweaversDawn
class WeaponStat
class WeaponStatType
class Tier
class Rare
MoonweaversDawn --> WeaponStat
MoonweaversDawn --> Tier
MoonweaversDawn --> Rare
WeaponStat --> WeaponStatType
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request introduces the new weapon Moonweaver's Dawn by adding its data model, registering it, and including corresponding tests. The changes are well-structured and follow the existing patterns in the codebase. I've found one area for improvement regarding code readability in the new weapon's data file, where long strings can be broken up for better maintainability.
| refi_list: list[str] = [ | ||
| "Increases Elemental Burst DMG by 20%. When the character's Energy Capacity does not exceed 60, Elemental Burst DMG increases by an additional 16%. When the character's Energy Capacity does not exceed 40, Elemental Burst DMG increases by an additional 28%.", | ||
| "Increases Elemental Burst DMG by 25%. When the character's Energy Capacity does not exceed 60, Elemental Burst DMG increases by an additional 20%. When the character's Energy Capacity does not exceed 40, Elemental Burst DMG increases by an additional 35%.", | ||
| "Increases Elemental Burst DMG by 30%. When the character's Energy Capacity does not exceed 60, Elemental Burst DMG increases by an additional 24%. When the character's Energy Capacity does not exceed 40, Elemental Burst DMG increases by an additional 42%.", | ||
| "Increases Elemental Burst DMG by 35%. When the character's Energy Capacity does not exceed 60, Elemental Burst DMG increases by an additional 28%. When the character's Energy Capacity does not exceed 40, Elemental Burst DMG increases by an additional 49%.", | ||
| "Increases Elemental Burst DMG by 40%. When the character's Energy Capacity does not exceed 60, Elemental Burst DMG increases by an additional 32%. When the character's Energy Capacity does not exceed 40, Elemental Burst DMG increases by an additional 56%." | ||
| ] |
There was a problem hiding this comment.
The strings in refi_list are very long, which harms readability. For better maintainability, you can split them across multiple lines. Python automatically concatenates adjacent string literals.
refi_list: list[str] = [
(
"Increases Elemental Burst DMG by 20%. When the character's Energy Capacity does not exceed 60, "
"Elemental Burst DMG increases by an additional 16%. When the character's Energy Capacity does not "
"exceed 40, Elemental Burst DMG increases by an additional 28%."
),
(
"Increases Elemental Burst DMG by 25%. When the character's Energy Capacity does not exceed 60, "
"Elemental Burst DMG increases by an additional 20%. When the character's Energy Capacity does not "
"exceed 40, Elemental Burst DMG increases by an additional 35%."
),
(
"Increases Elemental Burst DMG by 30%. When the character's Energy Capacity does not exceed 60, "
"Elemental Burst DMG increases by an additional 24%. When the character's Energy Capacity does not "
"exceed 40, Elemental Burst DMG increases by an additional 42%."
),
(
"Increases Elemental Burst DMG by 35%. When the character's Energy Capacity does not exceed 60, "
"Elemental Burst DMG increases by an additional 28%. When the character's Energy Capacity does not "
"exceed 40, Elemental Burst DMG increases by an additional 49%."
),
(
"Increases Elemental Burst DMG by 40%. When the character's Energy Capacity does not exceed 60, "
"Elemental Burst DMG increases by an additional 32%. When the character's Energy Capacity does not "
"exceed 40, Elemental Burst DMG increases by an additional 56%."
),
]
sdglitched
left a comment
There was a problem hiding this comment.
Please resolve the merge conflict.
Co-authored-by: Akashdeep Dhar <akashdeep.dhar@gmail.com> Co-authored-by: Claude Code <noreply@anthropic.com>
sdglitched
left a comment
There was a problem hiding this comment.
LGTM π
Thanks for working on this π
Introduce the recently added weapon
Moonweaver's DawnFixes #426
Summary by Sourcery
Introduce the new Moonweaver's Dawn sword weapon by defining its data model, registering it in the weapons list, and adding corresponding tests
New Features:
Tests: