Skip to content

Commit

Permalink
Documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
JavidPack committed Sep 14, 2018
1 parent 7069fe8 commit 837c8a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/tModLoader/Terraria.ModLoader/ModNPC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ public virtual void PostDraw(SpriteBatch spriteBatch, Color drawColor)
}

/// <summary>
/// Whether or not this NPC can spawn with the given spawning conditions. Return the weight for the chance of this NPC to spawn compared to vanilla mobs. All vanilla mobs combined have a total weight of 1. Returns 0 by default, which disables natural spawning.
/// Whether or not this NPC can spawn with the given spawning conditions. Return the weight for the chance of this NPC to spawn compared to vanilla mobs. All vanilla mobs combined have a total weight of 1. Returns 0 by default, which disables natural spawning. Remember to always use spawnInfo.player and not Main.LocalPlayer when checking Player or ModPlayer fields, otherwise your mod won't work in Multiplayer.
/// </summary>
/// <param name="spawnInfo"></param>
/// <returns></returns>
Expand Down

0 comments on commit 837c8a4

Please sign in to comment.