View Single Post
  #6  
Old 02-24-2023, 07:27 PM
7thGate 7thGate is offline
Sarnak


Join Date: Dec 2015
Posts: 370
Default

Quote:
Either that is P99 specific, or somewhere in the code I can't find. The function that pulls weapon damage on EQEMU seems to just pull the raw damage value. Maybe the damage gets doubled somewhere else a bit further along the function chain.
I believe this comes in the Roll20 function. Its called as part of MeleeMitigation here: https://github.com/EQEmu/Server/blob...ttack.cpp#L960

RollD20 is selecting one of these values to multiply the damage by: https://github.com/EQEmu/Server/blob...ttack.cpp#L915 , based on the difference between an offense roll and an AC roll. This is how additional +ATK increases average damage even if it doesn't increase max damage.

MeleeMitigation is called here, right before the damage table is applied: https://github.com/EQEmu/Server/blob...tack.cpp#L1348
__________________
Jayya - 60 Rogue, Officer <Auld Lang Syne>

Sanctum Low Man Vindi Kill: https://www.youtube.com/watch?v=xyZfNjvsDRE
Reply With Quote