L2JMobius

Public Development => Shares/Contributions => Topic started by: michaldoroz7 on May 25, 2026, 04:23:25 PM

Title: Brave Spear - Momentum Power logic implementation
Post by: michaldoroz7 on May 25, 2026, 04:23:25 PM
Hey.

I've implemented logic for adding 20% more damage for charging skills when Brave Spear - Momentum Power is ON, also added this buff to GK and Duelist which needed a little script because of not typical process -> 110 lvl gives skill Momentum Power of Valor which replace old Brave Spear with the new one. Right now it's working but maybe there is a better handle for it or create more generic code to use it in the future if similar skills will appear.

Patches: https://drive.google.com/file/d/1PiTM8d9f5zPRxSEIQniPW_k7mekIShbo/view?usp=sharing
Title: Re: Brave Spear - Momentum Power logic implementation
Post by: Mobius on May 26, 2026, 01:00:36 AM
I really think on somewhat replace MomentumPowerUpgrade.java with some new skilltree parameter.

Isn't the existing skilltree removeSkill parameter enough?
It can be used with multiple skills.
Title: Re: Brave Spear - Momentum Power logic implementation
Post by: michaldoroz7 on May 26, 2026, 02:19:34 PM
I don’t have access right now to code but the idea I’m thinking about right now is to add generic parameter to skills tree XML like <replaceskill> which will handle cases like this.
Title: Re: Brave Spear - Momentum Power logic implementation
Post by: Mobius on May 26, 2026, 04:05:07 PM
How about the ReplaceSkillBySkill effect?