TC Update March 4, 2022

All discussion regarding the Demise Test Center shard.
Post Reply
User avatar
Eos
Demise Administrator
Posts: 353

TC Update March 4, 2022

Post by Eos »

The following changes have been added to the Test Center for evaluation:
  • Hit Life Leech and Hit Mana Leech intensities are now scaled according to weapon speed. On ranged weapons the intensity is halved.
  • Hit Life Leech and Hit Mana Leech now leech on every successful hit, but the leeched value is randomized according to a formula based on the mod intensity.
For details on the scaling and randomized leeching formula, please see the articles on UOGuide:
https://www.uoguide.com/Hit_Life_Leech
https://www.uoguide.com/Hit_Mana_Leech


Two new speech commands have been added to aid in the testing:
  • "weaponinfo" - will show the old (unscaled) and new (scaled) Hit Life Leech and Hit Mana Leech values of a targeted weapon, and the resulting leech percentages.
    (The Hit Life Leech and Hit Mana Leech displayed normally on the weapon mouse-over are always scaled.)
  • "debugleech" - toggles leech information messages when doing damage.

New crafting gates have been added to the item room to craft weapons with guaranteed Hit Life Leech / Hit Mana Leech mods.
Eos
UOGDemise - Administrator

Please do not PM me for general support.
If you are experiencing game issues please send a help request in-game.

Thank you for your continued support of UOG: Demise.
User avatar
Bama
Bug Hunter
Posts: 4617

Re: TC Update March 4, 2022

Post by Bama »

Eos wrote: March 5th, 2022, 12:56 am [*] Hit Life Leech and Hit Mana Leech now leech on every successful hit, but the leeched value is randomized according to a formula based on the mod intensity.
[/list]
Obviously I need to do more testing and as I write this I see that I need to do it in non med armour

Anyway I have 0 MR items and LMC along with no focus and no meditation skill and I am an elf. So I regen 1 mana every 8-9 seconds right?

I do not think I am leeching mana on every successful hit

The weapon has 34% mana leech
No SSI
My skills are weapon and chivalry


Here is a starting point
A'A_3-5_13.13.jpg
A'A_3-5_13.13.jpg (252.08 KiB) Viewed 5348 times

I hit for 10 but I don't leech any mana
A'A_3-5_13.13-1.jpg
A'A_3-5_13.13-1.jpg (252.01 KiB) Viewed 5348 times

I hit for 10 and I also get hit I leech 1 mana.
A'A_3-5_13.13-2.jpg
A'A_3-5_13.13-2.jpg (252.08 KiB) Viewed 5348 times

I hit and I get hit though no mana leech
A'A_3-5_13.13-3.jpg
A'A_3-5_13.13-3.jpg (252.17 KiB) Viewed 5348 times

I hit and this time I gain 2 mana. I think 1 was leeched for the hit and the other was mana regen as 8+ seconds elapsed
A'A_3-5_13.13-4.jpg
A'A_3-5_13.13-4.jpg (252.04 KiB) Viewed 5348 times

As I stated I need to do more testing and will when I have more time







if ( context.Type == typeof( WraithFormSpell ) )
{
int wraithLeech = ( 5 + (int)( ( 15 * from.Skills.SpiritSpeak.Value ) / 100 ) ); // Wraith form gives 5-20% mana leech
int manaLeech = AOS.Scale( damageGiven, wraithLeech );

if ( target.Mana < manaLeech )
{
target.Mana -= target.Mana;
from.Mana += target.Mana;
}
else if ( manaLeech != 0 )
{
from.Mana += manaLeech;
from.PlaySound( 0x44D );
target.Mana -= manaLeech;
}
}


==============================================================================================================


{
wraithLeech = (5 + (int)((15 * attacker.Skills.SpiritSpeak.Value) / 100)); // Wraith form gives an additional 5-20% mana leech

// Mana leeched by the Wraith Form spell is actually stolen, not just leeched.
if (defender.Mana < AOS.Scale(damageGiven, wraithLeech))
{
defender.Mana -= defender.Mana;
attacker.Mana += defender.Mana;
}
else
{
defender.Mana -= AOS.Scale(damageGiven, wraithLeech);
manaLeech += wraithLeech;
}
}
Gabba Gabba Hey!!!

哈哈哈
Anthony File likes this.
Top
User avatar
Dysis
Demise Staff Member
Posts: 21

Re: TC Update March 4, 2022

Post by Dysis »

Bama wrote: March 5th, 2022, 7:56 pm
Eos wrote: March 5th, 2022, 12:56 am [*] Hit Life Leech and Hit Mana Leech now leech on every successful hit, but the leeched value is randomized according to a formula based on the mod intensity.
[/list]
Obviously I need to do more testing and as I write this I see that I need to do it in non med armour

Anyway I have 0 MR items and LMC along with no focus and no meditation skill and I am an elf. So I regen 1 mana every 8-9 seconds right?

I do not think I am leeching mana on every successful hit

The weapon has 34% mana leech
No SSI
My skills are weapon and chivalry


Here is a starting point
A'A_3-5_13.13.jpg


I hit for 10 but I don't leech any mana
A'A_3-5_13.13-1.jpg


I hit for 10 and I also get hit I leech 1 mana.
A'A_3-5_13.13-2.jpg


I hit and I get hit though no mana leech
A'A_3-5_13.13-3.jpg


I hit and this time I gain 2 mana. I think 1 was leeched for the hit and the other was mana regen as 8+ seconds elapsed
A'A_3-5_13.13-4.jpg


As I stated I need to do more testing and will when I have more time
Greetings Bama, this is the current formula:

Code: Select all

Scaled HML = (int)( 40 * ( (double)Hit mana leech / 100 ) )
Based on your topic, that equals to:
40 * 0.34 = 13.6 Rounded to 13. This means on each successful hit you will leech between 0 and 13%

Let's apply a RNG factor of 13%:

Total = Damage (10) * Scaled HML(13) / 100 = 1.3 rounded to 1.

It might be changed to a different output in the future. Thanks for the feedback.
Dysis
UO Demise - Game Master

PM me for general support.
If you are experiencing game issues please page for a staff member in-game.

Thank you for your continued support of UO: Demise.


Shard Rules - Last Publish - F.A.Q
Bama likes this.
Top
User avatar
Bama
Bug Hunter
Posts: 4617

Re: TC Update March 4, 2022

Post by Bama »

Dysis wrote: March 10th, 2022, 2:51 pm

Greetings Bama, this is the current formula:

Code: Select all

Scaled HML = (int)( 40 * ( (double)Hit mana leech / 100 ) )
Based on your topic, that equals to:
40 * 0.34 = 13.6 Rounded to 13. This means on each successful hit you will leech between 0 and 13%

Let's apply a RNG factor of 13%:

Total = Damage (10) * Scaled HML(13) / 100 = 1.3 rounded to 1.

It might be changed to a different output in the future. Thanks for the feedback.
OK, so everything rounds down? If so this makes sense

I did more testing
Elf character
Studded armour
Weapon and chivalry skills only 240 total
A weapon with a higher percentage mana leech 60%
So I should leech 0 to 3





Lets make this the starting point
Ho Lee Cho_3-10_13.22.jpg
Ho Lee Cho_3-10_13.22.jpg (266.27 KiB) Viewed 5292 times
Ho Lee Cho_3-10_13.22-1.jpg
Ho Lee Cho_3-10_13.22-1.jpg (266.3 KiB) Viewed 5292 times
Ho Lee Cho_3-10_13.22-2.jpg
Ho Lee Cho_3-10_13.22-2.jpg (266.29 KiB) Viewed 5292 times
Ho Lee Cho_3-10_13.22-3.jpg
Ho Lee Cho_3-10_13.22-3.jpg (265.33 KiB) Viewed 5292 times
Ho Lee Cho_3-10_13.25.jpg
Ho Lee Cho_3-10_13.25.jpg (241.6 KiB) Viewed 5292 times
Gabba Gabba Hey!!!

哈哈哈
Dysis likes this.
Top
User avatar
Bama
Bug Hunter
Posts: 4617

Re: TC Update March 4, 2022

Post by Bama »

Looks like I am leeching on hits





Ho Lee Cho_3-10_13.26-2.jpg
Ho Lee Cho_3-10_13.26-2.jpg (237.91 KiB) Viewed 5290 times
Ho Lee Cho_3-10_13.26-3.jpg
Ho Lee Cho_3-10_13.26-3.jpg (236.93 KiB) Viewed 5290 times
Ho Lee Cho_3-10_13.26-4.jpg
Ho Lee Cho_3-10_13.26-4.jpg (236.92 KiB) Viewed 5290 times
Ho Lee Cho_3-10_13.26-5.jpg
Ho Lee Cho_3-10_13.26-5.jpg (236.98 KiB) Viewed 5290 times
Ho Lee Cho_3-10_13.26-6.jpg
Ho Lee Cho_3-10_13.26-6.jpg (236.9 KiB) Viewed 5290 times
Gabba Gabba Hey!!!

哈哈哈
Dysis likes this.
Top
User avatar
Dysis
Demise Staff Member
Posts: 21

Re: TC Update March 4, 2022

Post by Dysis »

Bama wrote: March 10th, 2022, 7:54 pm
Dysis wrote: March 10th, 2022, 2:51 pm

Greetings Bama, this is the current formula:

Code: Select all

Scaled HML = (int)( 40 * ( (double)Hit mana leech / 100 ) )
Based on your topic, that equals to:
40 * 0.34 = 13.6 Rounded to 13. This means on each successful hit you will leech between 0 and 13%

Let's apply a RNG factor of 13%:

Total = Damage (10) * Scaled HML(13) / 100 = 1.3 rounded to 1.

It might be changed to a different output in the future. Thanks for the feedback.
OK, so everything rounds down? If so this makes sense
Correct, you also rely on RNG.

With those numbers you could get 0-4

0-0-0-0-0-0-1 in the worst RNG scenario :P
Dysis
UO Demise - Game Master

PM me for general support.
If you are experiencing game issues please page for a staff member in-game.

Thank you for your continued support of UO: Demise.


Shard Rules - Last Publish - F.A.Q
Bama likes this.
Top
Post Reply