Ejemplo n.º 1
0
 public Seed(string name, int puffleCost, string imagePath, Inventory.SeedType seedType, int growthTime, int price, Inventory.ItemRarity rarity)
 {
     this.name       = name;
     this.puffleCost = puffleCost;
     this.imagePath  = imagePath;
     this.seedType   = seedType;
     this.growthTime = growthTime;
     this.price      = price;
     this.rarity     = rarity;
 }
Ejemplo n.º 2
0
    public void addSeed(Inventory.SeedType seedType, int amount)
    {
        inventory.seedCounts[(int)seedType] += amount;

        if (this.OnSeedGained != null)
        {
            this.OnSeedGained(this, new Quest.QuestEventArgs(amount));
        }

        Save(false);
    }
Ejemplo n.º 3
0
    protected override void executeEffect()
    {
        Inventory.SeedType seedType = LootTable.GenerateRandomSeedType();

        string name = System.Enum.GetName(typeof(Inventory.SeedType), seedType);

        PetKeeper.pet.addSeed(seedType, 1);
        gc.queueRewardText(name.Replace("_", " ") + " +1", Inventory.getRarityColor(Inventory.getSeedTypeInfo(seedType).rarity));

        InventoryUI.reRender = true;

        PetKeeper.pet.grantXP(25);
    }
Ejemplo n.º 4
0
 public GardenCrop(Inventory.SeedType seedType, long plantedTimeStamp, string longLat)
 {
     this.seedType         = seedType;
     this.plantedTimeStamp = plantedTimeStamp;
     this.longLat          = longLat;
 }