28 lines
688 B
C#
28 lines
688 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace UFS3
|
|
{
|
|
[CreateAssetMenu(fileName = "BaitData", menuName = "Data/BaitData")]
|
|
public class BaitData : BaseItemData, IItemType
|
|
{
|
|
public List<FishData> attractedFish = new List<FishData>();
|
|
|
|
public ItemType ItemType => ItemType.Bait;
|
|
|
|
public override string StatisticText
|
|
{
|
|
get
|
|
{
|
|
string text = string.Concat("<b>Weight:</b> " + weight + "g\n", "\n<size=32><b>Best for:</b></size>\n");
|
|
List<string> baitFishNames = new List<string>();
|
|
attractedFish.ForEach(delegate(FishData fish)
|
|
{
|
|
baitFishNames.Add(fish.FishName);
|
|
});
|
|
return text + string.Join(", ", baitFishNames);
|
|
}
|
|
}
|
|
}
|
|
}
|