Exemplo n.º 1
0
        private void OnItemTurnedInEvent(string eventGuid, string modelId, string itemGuid, int amount)
        {
            RemoveItem(itemGuid, amount);

            var quest = QuestTracker.GetActiveQuestContainingModelId(modelId);

            foreach (var reward in quest.GetRewards(modelId))
            {
                AddItem(reward.ItemId, reward.Amount);
            }
        }
Exemplo n.º 2
0
 public override void _Ready()
 {
     Instance    = this;
     _questScene = GD.Load(QUEST_NODE_PATH) as PackedScene;
 }