forked from mirror/openmw-tes3mp
Remove overridden code in aicombat
This commit is contained in:
parent
0d63d75bb0
commit
5c2bc515fe
1 changed files with 1 additions and 12 deletions
|
@ -682,18 +682,7 @@ std::string chooseBestAttack(const ESM::Weapon* weapon)
|
||||||
{
|
{
|
||||||
std::string attackType;
|
std::string attackType;
|
||||||
|
|
||||||
if (weapon == NULL)
|
if (weapon != NULL)
|
||||||
{
|
|
||||||
//hand-to-hand deal equal damage for each type
|
|
||||||
float roll = Misc::Rng::rollClosedProbability();
|
|
||||||
if(roll <= 0.333f) //side punch
|
|
||||||
attackType = "slash";
|
|
||||||
else if(roll <= 0.666f) //forward punch
|
|
||||||
attackType = "thrust";
|
|
||||||
else
|
|
||||||
attackType = "chop";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
//the more damage attackType deals the more probability it has
|
//the more damage attackType deals the more probability it has
|
||||||
int slash = (weapon->mData.mSlash[0] + weapon->mData.mSlash[1])/2;
|
int slash = (weapon->mData.mSlash[0] + weapon->mData.mSlash[1])/2;
|
||||||
|
|
Loading…
Reference in a new issue