using Godot; using Newlon; [GlobalClass] [Tool] public partial class PlantReward : RewardResource { [Export] public PlantResource Plant { get; private set; } public override PackedScene GetPreview() { return Plant.Scene; } public override bool Redeem() { if (PlayerProgress.Instance.PlayerPlants.Contains(Plant) == false) { PlayerProgress.Instance.PlayerPlants.Add(Plant); return true; } else { return false; } } }