Module:Npcinfo/doc

A module used to obtain the main stats of each NPC.

It can calculate NPC stats for different numbers of players （for multiplayer） and/or different stages of the game (normal / expert mode /expert hardmode / expert hardmode post-plantera).

The calc code is sync with v1.3.5.3.

Usage
NPC id. Can be -1 to -65, 1 to 579(except 76, 146, 408, 403, 404).
 * id

The number of active players, default is 1. For some Boss or Boss-like NPC, in expert mode, their health increases as the number of players increases.
 * (optional) players

The prefix for output var， default is. For example, the default varname for damage is, if you used  , the varname will be
 * (optional) prefix

When you use this module, it sets a number of dpl variables, you can retrieve them by using, for instance.

Main variables:

Examples
See source code for detail.

id= -3（Green Slime）:

aiStyle: boss: buffImmune: buffImmuneAll: damage: damage_expert: damage_hardmode: damage_postplantera: defense: defense_expert: defense_hardmode: defense_postplantera: dontCountMe: friendly: knockBackResist: knockBackResist_expert: knockBackResist_hardmode: knockBackResist_postplantera: lifeMax: lifeMax_expert: lifeMax_hardmode: lifeMax_postplantera: netID: npcSlots: playersCount: rarity: scale: townNPC: type: value: value_expert: value_hardmode: value_postplantera: id=4(Eye of Cthulhu):

aiStyle: boss: buffImmune: buffImmuneAll: damage: damage_expert: damage_hardmode: damage_postplantera: defense: defense_expert: defense_hardmode: defense_postplantera: dontCountMe: friendly: knockBackResist: knockBackResist_expert: knockBackResist_hardmode: knockBackResist_postplantera: lifeMax: lifeMax_expert: lifeMax_hardmode: lifeMax_postplantera: netID: npcSlots: playersCount: rarity: scale: townNPC: type: value: value_expert: value_hardmode: value_postplantera: id=4(Eye of Cthulhu), players=3(more health):

aiStyle: boss: buffImmune: buffImmuneAll: damage: damage_expert: damage_hardmode: damage_postplantera: defense: defense_expert: defense_hardmode: defense_postplantera: dontCountMe: friendly: knockBackResist: knockBackResist_expert: knockBackResist_hardmode: knockBackResist_postplantera: lifeMax: lifeMax_expert: lifeMax_hardmode: lifeMax_postplantera: netID: npcSlots: playersCount: rarity: scale: townNPC: type: value: value_expert: value_hardmode: value_postplantera: id=54(Clothier， NPC):

aiStyle: boss: buffImmune: buffImmuneAll: damage: damage_expert: damage_hardmode: damage_postplantera: defense: defense_expert: defense_hardmode: defense_postplantera: dontCountMe: friendly: knockBackResist: knockBackResist_expert: knockBackResist_hardmode: knockBackResist_postplantera: lifeMax: lifeMax_expert: lifeMax_hardmode: lifeMax_postplantera: netID: npcSlots: playersCount: rarity: scale: townNPC: type: value: value_expert: value_hardmode: value_postplantera: