|
tModLoader v2025.09
A mod to make and play Terraria mods
|
Satisfied when any of the provided NPCs is killed. Only players who damaged/"interacted" with the NPC (NPC.playerInteraction) will be awarded the achievement.
Use multiple conditions if tracking multiple NPC individually is needed.
More...
Inherits AchievementCondition.
Public Member Functions | |
| NPCKilledCondition (short npcId) | |
| NPCKilledCondition (short npcId, string name) | |
| NPCKilledCondition (short[] npcIds) | |
| NPCKilledCondition (short[] npcIds, string name) | |
Public Member Functions inherited from AchievementCondition | |
| delegate void | AchievementUpdate (AchievementCondition condition) |
| virtual void | Clear () |
| virtual void | Complete () |
| IAchievementTracker | GetAchievementTracker () |
| virtual void | Load (JObject state) |
Static Public Member Functions | |
| static AchievementCondition | Create (params short[] npcIds) |
| static AchievementCondition | Create (short npcId) |
| static AchievementCondition[] | CreateMany (params short[] npcs) |
Additional Inherited Members | |
Public Attributes inherited from AchievementCondition | |
| readonly string | Name |
Protected Member Functions inherited from AchievementCondition | |
| AchievementCondition (string name) | |
| virtual IAchievementTracker | CreateAchievementTracker () |
Protected Attributes inherited from AchievementCondition | |
| IAchievementTracker | _tracker |
Properties inherited from AchievementCondition | |
| bool | IsCompleted [get] |
Events inherited from AchievementCondition | |
| AchievementUpdate | OnComplete |
Satisfied when any of the provided NPCs is killed. Only players who damaged/"interacted" with the NPC (NPC.playerInteraction) will be awarded the achievement.
Use multiple conditions if tracking multiple NPC individually is needed.