tcape / stc_game

Unity 3D Dungeon Crawler game. Junior project 2018/19
5 stars 2 forks source link

As a user, I want to mark quest progress when killing mobs for quest objectives #194

Open shantahuja opened 5 years ago

shantahuja commented 5 years ago

As of right now, the "set quest progress on kill" script does not mark quest progress for the defeat illamuwa quest. in the decision for death script: replace if (controller.gameObject.CompareTag("Enemy")) { controller.target.GetComponent().stats.GainXP(controller.characterStats.stats.XP);

        if (controller.gameObject.GetComponent<SetQuestProgressOnKilled>())
            controller.gameObject.GetComponent<SetQuestProgressOnKilled>().OnKilled();
    }