tspeeddownloadx.blogg.se

Diablo 2 open wounds
Diablo 2 open wounds













diablo 2 open wounds

If the defender is a monster, check whenever this is a regular monster (either flag2 or flag5 in ptMonsterData+TypeFlags is true, flag2 = IsNormal, flag5 = IsMinion), otherwise divide the damage by 2. In this section the game first adds +40 to damage (so we got the return value from the previous function call +40). same as doing - 0, no effect, msvc opt crap

diablo 2 open wounds

rand()%100, if rand()%100 >= stat_value the function returns false.Ĭode: Select all 6FC965C1 MOV EAX, eax = pDefender->eTypeĦFC965C8 JNZ SHORT D2GAME.6FC965E0 (eType != UNIT_PLAYER) -> skipĦFC965DC JNZ SHORT D2GAME.6FC965FB (event != DAMAGED_IN_MISSILE) -> endĦFC965DE JMP SHORT D2GAME.6FC965F2 (else goto nerf)ĦFC965E3 JNZ SHORT D2GAME.6FC965FB (eType != UNIT_MONSYER) -> endĦFC965E9 CALL D2GAME.6FD09D80 check special unit flags in ptMonDataĦFC965F0 JE SHORT D2GAME.6FC965FB (skip when both flags when flag2 or flag5 are true) Next get the value of the stat associated with the event and compare it vs. This is quite standard stuff, check if the attacker, the defender and the attack structure exist, if any of them is a null pointer the function returns false.















Diablo 2 open wounds