// will take the hit enemy and attackspeed // 'Physics' equations float LinearAttPhys(Character Enemy, float AttSpeed) { int EnemyHealth = Enemy.GetHealth(); int EnemyWeight = Enemy.GetWeight(); float knockback = (damage_ * (EnemyHealth + 1)); // might be some magic numbers in here float resistance = EnemyWeight /10; // might be some magic numbers in here float power = knockback - resistance; return power; }