Exemple #1
0
    /// <summary>
    /// Takes initial values and scales them based on potency
    /// </summary>
    private void SetupChemicalContents()
    {
        List <string> nameList   = new List <string>();
        List <float>  amountList = new List <float>();

        for (int i = 0; i < reagentContainer.Amounts.Count; i++)
        {
            nameList.Add(reagentContainer.Reagents[i]);
            amountList.Add(reagentContainer.Amounts[i] * plantData.Potency);
        }
        //Reset container
        reagentContainer.ResetContents(nameList, amountList);
    }