Implement damage reflection skill#479
Conversation
sven-n
left a comment
There was a problem hiding this comment.
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.
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.
Oh okay, I found this one: https://guidescroll.com/2011/08/mu-online-summoner-guide/
There was a problem hiding this comment.
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
sven-n
left a comment
There was a problem hiding this comment.
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.