예제 #1
0
	//TODO: Take into consideration characters levels 
	//(probably should be moved into GameManager so not duplicated on player side)
	private int CalcDamage (Attack attack) {
		float baseDamage = Random.Range (attack.getMinHit(), attack.getMaxHit ());
		float afterDamageResist = _gm.GetTargetPercentDamageForResistence (player, attack.getDamageType ());
		return Mathf.FloorToInt (baseDamage * afterDamageResist);
	}