public void update(long timePassed){
        if(weapon.roundDenom == 0){
            empty();
        }else{
            if(reloadTimePassed >= 0){
                reloadTimePassed += timePassed;
            }
            if((int)nextFullIcon.X == icons.length - 1 && (int)nextFullIcon.Y == icons[0].length &&reloadTimePassed >= reloadTime && weapon.roundDenom - Weapon.bulletsPerRound[weapon.type] >= 0 && weapon.roundDenom > 0){
                reloadTimePassed = -1;
                refill();   
            }
            if(weapon.resetAmmo && weapon.bulletsLeft == Weapon.bulletsPerRound[weapon.type]){
                reloadTimePassed = -1;
                refill();
                weapon.resetAmmo = false;
            }else{
                reloadTimePassed = -1;
                refill(weapon.bulletsLeft);
                weapon.resetAmmo = false;
            }
        }
        
        
    }