myLogger.debug("consumedCO2LowBuffer.getAmountMissing() = "+consumedCO2LowBuffer.getAmountMissing()); myLogger.debug("consumedCO2LowBuffer.getCapacity() = "+consumedCO2LowBuffer.getCapacity()); myLogger.debug("CO2RiskLowReturn = "+CO2RiskLowReturn);
    private void healthCheck() {        //check for death        float randomNumber = myRandomGen.nextFloat();        float CO2RiskLowReturn = MathUtils.calculateSCurve(consumedCO2LowBuffer.getAmountMissing(), consumedCO2LowBuffer.getCapacity());        float CO2RiskHighReturn = MathUtils.calculateSCurve(consumedCO2HighBuffer.getAmountMissing(), consumedCO2HighBuffer.getCapacity());        float waterRiskReturn = MathUtils.calculateSCurve(consumedWaterBuffer.getAmountMissing(), consumedWaterBuffer.getCapacity());        float heatRiskReturn = MathUtils.calculateSCurve(consumedHeatBuffer.getAmountMissing(), consumedHeatBuffer.getCapacity());        float lightRiskReturn = MathUtils.calculateSCurve(consumedLightBuffer.getAmountMissing(), consumedLightBuffer.getCapacity());        myLogger.debug("consumedCO2LowBuffer.getAmountMissing() = "+consumedCO2LowBuffer.getAmountMissing());        myLogger.debug("consumedCO2LowBuffer.getCapacity() = "+consumedCO2LowBuffer.getCapacity());        myLogger.debug("CO2RiskLowReturn = "+CO2RiskLowReturn);        if (CO2RiskLowReturn > randomNumber) {        	kill();            myLogger.info(getPlantTypeString()                    + " crops have died from low CO2 at " + getDaysOfGrowth()                    + " days (risk was " + (CO2RiskLowReturn * 100) + "%)");        } else if (CO2RiskHighReturn > randomNumber) {        	kill();            myLogger.info(getPlantTypeString()                    + " crops have died from high CO2 at " + getDaysOfGrowth()                    + " days (risk was " + (CO2RiskHighReturn * 100) + "%)");        } else if (waterRiskReturn > randomNumber) {        	kill();            myLogger.info(getPlantTypeString()                    + " crops have died from lack of water at "                    + getDaysOfGrowth() + " days (risk was "                    + (waterRiskReturn * 100) + "%)");        } else if (heatRiskReturn > randomNumber) {        	kill();            myLogger.info(getPlantTypeString()                    + " crops have died from lack of heat at "                    + getDaysOfGrowth() + " days (risk was "                    + (heatRiskReturn * 100) + "%)");        } else if (lightRiskReturn > randomNumber) {        	kill();            myLogger.info(getPlantTypeString()                    + " crops have died from lack of light at "                    + getDaysOfGrowth() + " days (risk was "                    + (lightRiskReturn * 100) + "%)");        }    }