예제 #1
0
    public void WinBattleFromQuest()
    {
        winScreen.SetActive(true);

        int xp        = QuestManager.CalculateXPReward(_quest, _passedChecks);
        int followers = QuestManager.CalculateFollowerReward(_quest, _passedChecks);

        Debug.Log(followers);
        winText.text = "Congratulations! You've earned: " + xp + " XP, and " + followers + " followers!";
    }
예제 #2
0
    public void UpdateInformationFromQuestAndReturn()
    {
        int xp        = QuestManager.CalculateXPReward(_quest, _passedChecks);
        int followers = QuestManager.CalculateFollowerReward(_quest, _passedChecks);

        GameInformation.PlayerXP += xp;
        Debug.Log(followers);
        Debug.Log(GameInformation.PlayerFollowers);
        GameInformation.PlayerFollowers += followers;
        Debug.Log(GameInformation.PlayerFollowers);
        SaveInformation.SaveAllInformation();

        ReturnToMap();
    }