tModLoader  0.12 Alpha
A mod to make and play Terraria mods
Terraria.GameContent.Bestiary.NPCKillsTracker Class Reference

Inherits Terraria.GameContent.IPersistentPerWorldContent, and Terraria.GameContent.IOnPlayerJoining.

Public Member Functions

int GetKillCount (NPC npc)
 
int GetKillCount (string persistentId)
 
void Load (BinaryReader reader, int gameVersionSaveWasMadeOn)
 
void OnPlayerJoining (int playerIndex)
 
void RegisterKill (NPC npc)
 
void Reset ()
 
void Save (BinaryWriter writer)
 
void SetKillCountDirectly (string persistentId, int killCount)
 
void ValidateWorld (BinaryReader reader, int gameVersionSaveWasMadeOn)
 

Static Public Attributes

const int POSITIVE_KILL_COUNT_CAP = 9999