diff --git a/ModConfig.cs b/ModConfig.cs index a3356f0..b000778 100644 --- a/ModConfig.cs +++ b/ModConfig.cs @@ -10,8 +10,13 @@ internal class ModConfig public bool ShowIsHarvestable { get; set; } = true; + public bool ShowTruffle { get; set; } = true; + public byte ShowIsHarvestableTime { get; set; } = 5; + + + public KeySetting Keys { get; set; } = new KeySetting(); public EntitiesSetting Entities { get; set; } = new EntitiesSetting(); @@ -61,6 +66,16 @@ internal class EntitiesSetting Offset = new Vector2(4f, 4f) }; + public EntitiesConfig Truffle { get; set; } = new EntitiesConfig() + { + X = 352, + Y = 272, + Width = 16, + Height = 16, + Scale = 2f, + Offset = new Vector2(4f, 4f) + }; + public EntitiesConfig Wool { get; set; } = new EntitiesConfig() { X = 128, diff --git a/ModEntry.cs b/ModEntry.cs index b7af321..27294c3 100644 --- a/ModEntry.cs +++ b/ModEntry.cs @@ -185,6 +185,15 @@ private void OnRenderedWorld(object sender, EventArgs e) DrawEntity(Game1.objectSpriteSheet, Entities.GoatMilk, animal, animal.home, ref yOffsetFactor); break; + case 430: //Truffle ID + if (Config.ShowTruffle) + { + DrawEntity(Game1.objectSpriteSheet, Entities.Truffle, animal, animal.home, ref yOffsetFactor); + } + break; + + + case 440://Wool ID DrawEntity(Game1.objectSpriteSheet, Entities.Wool, animal, animal.home, ref yOffsetFactor); break; diff --git a/Truffle.png b/Truffle.png new file mode 100644 index 0000000..f5a4880 Binary files /dev/null and b/Truffle.png differ diff --git a/manifest.json b/manifest.json index 483f3a4..51495a0 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "Name": "AnimalObserver", "Author": "nofilenamed", - "Version": "1.0.2", + "Version": "1.0.3", "Description": "Visual status and product of your animals.", "UniqueID": "NFN.ANIMOBS", "EntryDll": "AnimalObserver.dll",