Player::getDefense Bug Fix

In RealOTS when wielding two handed weapons the defense skill used is the weapon's type, however, this was not used although the code was added but seems I had forgotten to get the skill level.
This commit is contained in:
Alejandro Mujica 2019-02-07 23:05:30 -04:00
parent 233edcb48f
commit 000460265c
2 changed files with 3 additions and 1 deletions

View File

@ -263,6 +263,8 @@ int32_t Player::getDefense()
default: default:
break; break;
} }
defenseSkill = getSkillLevel(defenseSkill);
} }
if (shield) { if (shield) {

View File

@ -21,7 +21,7 @@
<PropertyGroup Label="Globals"> <PropertyGroup Label="Globals">
<Keyword>Win32Proj</Keyword> <Keyword>Win32Proj</Keyword>
<ProjectGuid>{A10F9657-129F-0FEF-14CB-CEE0B0E5AA3E}</ProjectGuid> <ProjectGuid>{A10F9657-129F-0FEF-14CB-CEE0B0E5AA3E}</ProjectGuid>
<WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion> <WindowsTargetPlatformVersion>10.0.17763.0</WindowsTargetPlatformVersion>
</PropertyGroup> </PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">