Skip to content

Commit

Permalink
now with truffle ready show
Browse files Browse the repository at this point in the history
  • Loading branch information
nofilenamed committed May 18, 2021
1 parent 20400d6 commit 46488dd
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
15 changes: 15 additions & 0 deletions ModConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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,
Expand Down
9 changes: 9 additions & 0 deletions ModEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Binary file added Truffle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 46488dd

Please sign in to comment.