Пример #1
0
 public void RepairEquipment()
 {
     if (questDb.activeQuest.Count >= 2)
     {
         questProg.AddToProgress(1);
         questDb.activeQuest [1].ChainId = 1;
     }
 }
Пример #2
0
    public void DropAnItem()
    {
        generateLootAmount = Random.Range(0, 4);

        for (int i = 0; i < generateLootAmount; i++)
        {
            myItems.Add(dropManager.GetComponent <DropItemList> ().DropAnItem());
        }
        Debug.Log(questProg.CalculateDropChance());
        if (questProg.CalculateDropChance())
        {
            Debug.Log("I dropped a quest Item");
            questProg.AddToProgress(0);
            myItems.Add(itemDb.database[itemDb.database.Count - 1]);
        }
        dropedItemsOnce = true;
        GenerateTheLootBox();
    }