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; }
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); }
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); }
public GardenCrop(Inventory.SeedType seedType, long plantedTimeStamp, string longLat) { this.seedType = seedType; this.plantedTimeStamp = plantedTimeStamp; this.longLat = longLat; }