8.0 combat formulas and few items. and update world

This commit is contained in:
ErikasKontenis
2022-10-09 10:49:25 +03:00
parent 903b723e11
commit 1efbf9c38d
10 changed files with 1828 additions and 1174 deletions

View File

@@ -1296,10 +1296,23 @@ void Combat::getAttackValue(Creature* creature, uint32_t& attackValue, uint32_t&
}
skillValue = player->getSkillLevel(skill);
if (weapon->getMinimumLevel() > player->getLevel()) {
attackValue = std::max<uint32_t>(7, attackValue / 2);
}
} else {
attackValue = 7;
skillValue = player->getSkillLevel(skill);
}
// begin 8.0 combat formula
if (player->getVocationId() == 3 || player->getVocationId() == 7) {
attackValue += (player->getLevel() / 4.5);
}
else if (player->getVocationId() == 4 || player->getVocationId() == 8) {
attackValue += (player->getLevel() / 3.0);
}
// end 8.0 combat formula
} else if (Monster* monster = creature->getMonster()) {
attackValue = monster->mType->info.attack;
skillValue = monster->mType->info.skill;