-
Notifications
You must be signed in to change notification settings - Fork 58
Skill Dot Debuff Refactor #619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skill Dot Debuff Refactor #619
Conversation
WalkthroughIntroduced Changes
Sequence Diagram(s)sequenceDiagram
actor Caster
actor Owner
participant Mapper
participant Metadata
participant Buffs
Mapper->>Metadata: create DotBuff(Target: DotTargetType)
Caster->>Buffs: ApplyDotBuff(DotBuff)
alt Target == DotTargetType.Caster
Buffs->>Caster.Buffs: AddBuff(source=Owner, target=Caster, ...)
else Target == DotTargetType.Owner
Buffs->>Owner.Buffs: AddBuff(source=Caster, target=Owner, ...)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Repository UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)Maple2.Server.Game/Model/Field/Buff.cs (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (1)
✏️ Tip: You can disable this entire section by setting 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 |
Maple2.Model/Enum/Skill.cs
Introduced a new Skill enum:
DotTargetType. It was found forDotDamagePropertyXML values can really only be two values. This change makes it easier to reason about who is the caster and who is the owner of the dot (de)buff.Previously, dot damage values were using the
SkillTargetTypeenum. This enum was updated toDotTargetTypefor dot damage buff application. Other areas, like skill target decisions, still use theSkillTargetType.Because the enum mapping has changed,
Maple2.File.Ingestwill need to be run to update the new enum mapping.Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.