Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Platonymous committed Dec 26, 2018
1 parent d793c71 commit 7e4fcf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions TMXLoader/NPCPlacement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ internal class NPCPlacement
public string map { get; set; } = "none";
public int[] position { get; set; } = new int[] { 0, 0 };
public int direction { get; set; } = 0;
public bool datable { get; set; } = false;
}
}
2 changes: 1 addition & 1 deletion TMXLoader/TMXLoaderMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ private void loadContentPacks()
helper.Events.GameLoop.SaveLoaded += (s, e) =>
{
if (Game1.getCharacterFromName(edit.name) == null)
Game1.locations.Where(gl => gl.Name == edit.map).First().addCharacter(new NPC(new AnimatedSprite("Characters\\" + edit.name, 0, 16, 32), new Vector2(edit.position[0], edit.position[1]), edit.map, 0, edit.name, false, (Dictionary<int, int[]>)null, Helper.Content.Load<Texture2D>("Portraits\\" + edit.name, ContentSource.GameContent)));
Game1.locations.Where(gl => gl.Name == edit.map).First().addCharacter(new NPC(new AnimatedSprite("Characters\\" + edit.name, 0, 16, 32), new Vector2(edit.position[0], edit.position[1]), edit.map, 0, edit.name, edit.datable, (Dictionary<int, int[]>)null, Helper.Content.Load<Texture2D>("Portraits\\" + edit.name, ContentSource.GameContent)));
};
}

Expand Down

0 comments on commit 7e4fcf6

Please sign in to comment.