Fix crit calculation and bonus attack/def/luck
This commit is contained in:
@@ -29,7 +29,7 @@ internal class PlayerEffectService
|
||||
{
|
||||
var weapon = _player.EquipmentComponent.EquippedWeapon.Value as Weapon;
|
||||
var newAttack = Mathf.Max(weapon.BonusAttack - 1, 0);
|
||||
weapon.SetWeaponAttack(newAttack);
|
||||
weapon.SetAttack(newAttack);
|
||||
_player.EquipmentComponent.UpdateEquipment(weapon);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user