else { takenAmount = amountRequested; quantityCurrent -= takenAmount; }
takenAmount = amountRequested; quantityCurrent -= takenAmount;
    public float take(float amountRequested){        //idiot check        if (amountRequested <= 0f) {            return 0f;        }        float takenAmount;        //asking for more stuff than exists, reaction can't happen        if (amountRequested > quantityCurrent) {            return 0f;        }        //stuff exists for request        else {            takenAmount = amountRequested;            quantityCurrent -= takenAmount;        }        return takenAmount;    }