Exemplo n.º 1
0
 public void BiteHuman()
 {
     if (GameManager.res_HumanPop > 0)
     {
         VampireManager.vampires_amount_Total[0] += 1;
         GameManager.res_HumanPop -= 1;
         //StartCoroutine("BiteCooldown");
         StatisticsWindow.AddEvent("A human is bitten. +1 " + VampireManager.vampires_name[0]);
         //cooldown = true;
     }
 }
Exemplo n.º 2
0
    public void ascendVamp() //Function for ascending vampires  (TO DO: incorporate multiple ascensions in one click)
    {
        //If max
        if (AmountButton.amountIndex == 6)
        {
            //Log Event
            StatisticsWindow.AddEvent((100 * GetAscendableAmount()).ToString() + " " + VampireManager.vampires_name[vampIndex] + "s has turned into " + GetAscendableAmount() + " " + VampireManager.vampires_name[vampIndex + 1]);

            VampireManager.vampires_amount_Total[vampIndex + 1] += GetAscendableAmount();
            VampireManager.vampires_amount_Total[vampIndex]     -= 100 * GetAscendableAmount();
            GameManager.res_Blood -= VampireManager.vampires_cost_ascend[vampIndex] * GetAscendableAmount();
        }
        else
        {
            //Log Event
            StatisticsWindow.AddEvent((100 * AmountButton.amountNumber).ToString() + " " + VampireManager.vampires_name[vampIndex] + "s has turned into " + AmountButton.amountNumber + " " + VampireManager.vampires_name[vampIndex + 1]);

            VampireManager.vampires_amount_Total[vampIndex + 1] += AmountButton.amountNumber;
            VampireManager.vampires_amount_Total[vampIndex]     -= 100 * AmountButton.amountNumber;
            GameManager.res_Blood -= VampireManager.vampires_cost_ascend[vampIndex] * AmountButton.amountNumber;
        }
    }
Exemplo n.º 3
0
 private void Update()
 {
     //Welcome Message
     if (StatisticsWindow.isActiveAndEnabled && Log_WelcomeMessage == 0)
     {
         Log_WelcomeMessage = 1;
     }
     else
     if (StatisticsWindow.isActiveAndEnabled && Log_WelcomeMessage == 1)
     {
         StatisticsWindow.AddEvent("Welcome to Vampirism Idle!");
         Log_WelcomeMessage = 2;
     }
     /////
 }