Esempio n. 1
0
    // Start as new character
    // Default stats here
    public void InitCharacter()
    {
        gameStats = new int[(int)GameStats.Count];
        gameStats[(int)GameStats.Time] = 180;  // Testing purposes

        keyItems = new bool[(int)KeyItems.Count];
        // keyItems[(int)KeyItems.Shovel] = true;  // Testing purposes

        // TODO: find a better way to do this part?
        itemRanks    = new int[3][];
        itemRanks[0] = new int[(int)SwordRanks.Count];

        questLoader = GetComponent <QuestLoader>();
        questLoader.Init();
        questCompletion = new bool[questCount.Length][];
        for (int i = 0; i < questCount.Length; i++)
        {
            questCompletion[i] = new bool[questCount[i]];
        }

        playerStats = new int[(int)PlayerStats.Count];
        playerStats[(int)PlayerStats.MAX_HP] = 5;
        playerStats[(int)PlayerStats.HP]     = 5;

        maps = new bool[(int)Maps.Count];
        maps[(int)Maps.Plains] = true;
        bossEnabled            = new bool[(int)Maps.Count];
    }