/// <summary> /// Generate a quest based on the provided node connection /// </summary> /// <param name="nodeConnection">Node connection between two npcs</param> public void GenerateKillQuest(Connection <Npc> nodeConnection) { Quest nQ = new Quest("Random Kill Quest #" + 1 + ((Random.value + Random.value) / Random.value * Random.value), nodeConnection.First.data); nQ.SetQuestReturn(nodeConnection.First.data); nQ.AddKillObjective(1, QuestTarget.NamedNpc, nodeConnection.Second.data); m_generatedQuests.Add(nQ); }