-
Notifications
You must be signed in to change notification settings - Fork 333
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
Implement damage reflection skill #479
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Afaik, reflect options stack (they are just added together) and can reach over 100%
src/Persistence/Initialization/Skills/ReflectionEffectInitializer.cs
Outdated
Show resolved
Hide resolved
var boostPerEnergy = this.Context.CreateNew<AttributeRelationship>(); | ||
boostPerEnergy.InputAttribute = Stats.TotalEnergy.GetPersistent(this.GameConfiguration); | ||
boostPerEnergy.InputOperator = InputOperator.ExponentiateByAttribute; | ||
boostPerEnergy.InputOperand = 1 - (0.01f / 42f); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
InputOperand = 0.01f / 40f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering that it's 1% for every 42 energy points, is there a reason why it has to be divided by 40?
Or maybe the formula I put forward is not correct. I found it on a forum that claimed it was the "official" formula.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh okay, I found this one: https://guidescroll.com/2011/08/mu-online-summoner-guide/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found this in the published sources:
https://forum.ragezone.com/threads/development-season-12-full-src-gs.1193275/page-4#post-9193953
src/Persistence/Initialization/Skills/ReflectionEffectInitializer.cs
Outdated
Show resolved
Hide resolved
src/Persistence/Initialization/Skills/ReflectionEffectInitializer.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good now. A new config update plugin for existing configurations would be great 😅
Implementation of the Damage Reflection skill.
As I've read, I should implement a reflection according to the following formula:
30+(Total Energy/42)
I've implemented the basics, but I think I'm not understanding the powerup formula system well, since when I check the reflectiondamage (from the stat), it has values well below the minimum 0.3 expected.