Fixed two issues caused by enabling PerksFile setting:

1. Both Armor Class and Melee Damage got increased by Heavy Handed trait.
2. Melee Damage bonus from Heavy Handed was less than it should have.
This commit is contained in:
NovaRain
2015-10-01 14:45:09 +08:00
parent 5b2eea0bd7
commit 44eae76402
+2 -1
View File
@@ -787,8 +787,9 @@ static int _stdcall trait_adjust_stat_override(DWORD statID) {
break;
case STAT_ac:
if(check_trait(TRAIT_kamikaze)) return -stat_get_base_direct(STAT_ac);
break;
case STAT_melee_dmg:
if(check_trait(TRAIT_heavy_handed)) result+=2;
if(check_trait(TRAIT_heavy_handed)) result+=4;
break;
case STAT_carry_amt:
if(check_trait(TRAIT_small_frame)) {