public int playerDamageDealt(Player player, Monster monster) {
        // Calculate player stats
        player.calcStats();

        // Player's base damage
        int damage = player.baseDamage;

        // Determine critical hit
        if(Math.random() < player.critChance) {
            damage *= player.critDamage;
            JOptionPane.showMessageDialog(null, "Critical hit!");
        }

        // Factor in weapon damage
        int minDamage = damage + player.equippedWeapon.minDamage;
        int maxDamage = damage + player.equippedWeapon.maxDamage;

        // Calculate the damage
        Random rng = new Random();
        damage = minDamage + rng.nextInt(maxDamage - minDamage);

        return damage;
    }