npc chancetohit?
This code seems to be doing the calculations in attack.cpp but for some reason a lvl 1 npc hitting a lvl 1 player only hits about 30% or less, of his swings. I must be missing something?
Code:
else{ |
MeleeMitigation also plays a role , because if AC mitigation reduces the damage to 0 then it registers has a MISS. So not all the misses comes from the mob actually missing his hit roll.
|
I've got my lvl 1 mobs hitting for min 7 max 8, i don't think it could be turning 20%+ of hits into misses.
|
if i'm doing this right, a lvl 1 npc hitting a lvl 1 pc, the npc should have a 55.5% chance to hit. PC having 0 defense.
|
A level 1 mob will have roughly the same chance to hit as to be hit by a level 1 player BEFORE mitigation mitigates any hits to misses. If your players have naturally high ac for level 1s the mobs will have to have more strength to compensate, and it scales very quickly in the first ten levels.
|
the biggest problem with "to hit" chance that there is no way to improve them with any stat =)
Originaly it was belived DEX makes you score hits more often (hence you could build your char towards DEX rather than STR, so you would hit for less dmg and every swing), but since you told us DEX is not improving your to hit chances - we are stuck at pre-set % chances for class/level etc |
Thanks for the response. My level 1's are naked, and have 0 skill. I just tested again on a level 1 wizard and got 26% hits.
|
Quote:
If i remeber corectly paladins have 55% chance to hit cap, and no ammount of uber stats ever make them hit more often. |
I think the new system is an improvement. The old system was impossible to try to balance. I'm happy with the new one, I just wanted to make sure I wasn't missing something. I think it has room to grow, but it's a good new base.
I guess i'll start looking at the mitigation system, i didn't realize it would have an affect on the chancetohit. Btw KLS, on the first line of the npc chancetohit code, I think there's a small error. I may be wrong, not that it makes much of a difference but shouldn't it be retrieving the attackers skill in 1hs? Code:
uint16 atkSkill = (database.GetSkillCap(WARRIOR, (SkillType)_1H_SLASHING, defender->GetLevel()) + 5); |
All times are GMT -4. The time now is 02:59 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.