User:Ferretwings/Code Checking
Jump to navigation
Jump to search
For those who wish to check the Terraria source code for information, first you will need a decompiler. Some code-checkers use JetBrains DotPeek.
Feel free to edit this list...
The following is a list of info, and where to find it. You can minimize unwanted search results by beginning your search at the start of the respective function/procedure.
info | function/procedure | location in file |
---|---|---|
File: NPC.cs | contains NPC, enemy, and critter information | |
NPC names | getNewNPCName | search for case [NPC ID]: this search will return all instances, including those that are not NPC IDssearching for case 17: will find the Merchant, and all other instances of case 17:
|
NPC/enemy/critter stats | SetDefaults | search for this.type == [NPC ID] searching for this.type == 50 will find King Slime's stats
|
Expert mode enemy stats | scaleStats | search for (this.type == [NPC ID]) searching for (this.type == 50) will find King Slime's expert mode stat scaling
|
? | AI_007_TownEntities | ? |
NPC/enemy/critter drops | NPCLoot | search for this.type == [NPC ID] or for a specific item drop, search [Item ID], or [Item ID];
|
Boss Bags | DropBossBags | |
NPC spawning conditions | SpawnNPC | |
Debuff info | UpdateNPC_BuffApplyDOTs | also UpdateNPC_SoulDrainDebuff |