Ejemplo n.º 1
0
    public static void StopDigging()
    {
        MusicPlayer.FadeOut();

        // check for any emails to send
        DebtProgression.UpdateProgression();
        StoryProgression.UpdateProgression();
        AdvertisementProgression.CheckEmails();
        NewsProgression.UpdateNews();

        SaveData.Get().madePaymentToday = false; // set this AFTER email checks... just in case we send an email based on missing payments

        // Load the Computer scene
        singleton.isComputerScene = true;
        singleton.computerView.gameObject.SetActive(true);
        // Go to the "gem sale" tab
        if (isFirstTimeComputing)
        {
            // email
            singleton.computerView.GetComponentInChildren <WebBrowser>().SetTab(1);
            isFirstTimeComputing = false;
        }
        else
        {
            // gem selling!
            singleton.computerView.GetComponentInChildren <WebBrowser>().SetTab(0);
        }
    }
Ejemplo n.º 2
0
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject.CompareTag("Player"))
     {
         if (!hasShownDialog)
         {
             NewsProgression.AddNewsForNextDay(NewsProgression.ParallelResearchNews());
             DiggingUIOverlay.ShowPopup("What is this? It looks so strange, like it's from another world...", "artifact");
             hasShownDialog = true;
         }
     }
 }
Ejemplo n.º 3
0
    private Document JournalDocumentFour()
    {
        NewsProgression.AddNewsForNextDay(NewsProgression.AddEquilibriumNews());
        Document d = new Document();

        d.name = "[Found Journal] June 7";
        d.body = "June 7:\r\n" +
                 "Today is the second day since I lost my memory.\r\n" +
                 "It’s good that I have this journal to give me an idea of my past, but I can’t seem to find my way back...\r\n" +
                 "Am I just stuck here forever?\r\n" +
                 "Huh, there's something odd about these lights...";
        return(d);
    }
Ejemplo n.º 4
0
    private Document JournalDocumentThree()
    {
        NewsProgression.AddNewsForNextDay(NewsProgression.AddSpaceTearNews());
        Document d = new Document();

        d.name = "[Found Journal] June 6";
        d.body = "June 6:\r\n" +
                 "Who am I?\r\n" +
                 "Where am I!?\r\n" +
                 "What am I doing here ?!!?!\r\n" +
                 "Don’t panic, don’t panic, don’t panic…";
        return(d);
    }
Ejemplo n.º 5
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.gameObject.CompareTag("Player"))
        {
            SaveData saveData = SaveData.Get();
            if (!saveData.foundBody)
            {
                NewsProgression.AddNewsForNextDay(NewsProgression.EarthquakeNews());
                saveData.foundBody = true;
                DiggingUIOverlay.ShowPopup("Goodness gracious, is this a dead body? Why does he look... just like me!?", "deadbody");

                saveData.musicStage++;
                saveData.activeShopItem++;

                // todo: email/document
            }
        }
    }
Ejemplo n.º 6
0
    public void PurchaseItem()
    {
        ShopItem item = shopItemList[mActiveItem];

        SaveData.Get().debt += item.priceInDollars;
        SaveData.Get().IncreaseMinimumPayment(100);
        shopItemList[mActiveItem] = new ShopItem(item.name, item.description, item.imageName, item.priceInDollars, item.effectType, item.effectValue, true);
        // The effect of the item
        switch (item.effectType)
        {
        case "DigSkill":
            if (item.effectValue == 1)
            {
                NewsProgression.AddNewsForNextDay(NewsProgression.DebtNews());
            }
            SaveData.Get().digSkill = Mathf.Max(SaveData.Get().digSkill, item.effectValue);
            break;

        default:
            Debug.LogError("Purchase an item with unknown effect type: " + item.effectType);
            break;
        }
    }