Property | Type | Description | |
---|---|---|---|
blockLoot | IList |
Property | Type | Description | |
---|---|---|---|
DrawHealthBar | void | ||
GetNPCInfo | |||
IsModNPC | bool | ||
NPCLoader | System | ||
ReserveNPCID | int | ||
ResizeArrays | void | ||
SetupNPC | void | ||
SetupNPCInfo | void | ||
Unload | void |
Method | Description | |
---|---|---|
AI ( NPC npc ) : void | ||
BossBag ( NPC npc, int &bagType ) : void | ||
BossHeadRotation ( NPC npc, float &rotation ) : void | ||
BossHeadSlot ( NPC npc, int &index ) : void | ||
BossHeadSpriteEffects ( NPC npc, SpriteEffects &spriteEffects ) : void | ||
BossLoot ( NPC npc, string &name, int &potionType ) : void | ||
BuffTownNPC ( float &damageMult, int &defense ) : void | ||
CanBeHitByItem ( NPC npc, Player player, System.Item item ) : bool? | ||
CanBeHitByProjectile ( NPC npc, Projectile projectile ) : bool? | ||
CanHitNPC ( NPC npc, NPC target ) : bool? | ||
CanHitPlayer ( NPC npc, Player target, int &cooldownSlot ) : bool | ||
CanTownNPCSpawn ( int numTownNPCs, int money ) : void | ||
CheckActive ( NPC npc ) : bool | ||
CheckConditions ( int type ) : bool | ||
CheckDead ( NPC npc ) : bool | ||
ChooseSpawn ( Terraria.ModLoader.NPCSpawnInfo spawnInfo ) : int? | ||
DisplayName ( int type ) : string | ||
DrawEffects ( NPC npc, Color &drawColor ) : void | ||
DrawHealthBar ( NPC npc, float &scale ) : bool | ||
DrawTownAttackGun ( NPC npc, float &scale, int &item, int &closeness ) : void | ||
DrawTownAttackSwing ( NPC npc, Microsoft.Xna.Framework.Graphics.Texture2D &item, int &itemSize, float &scale, Vector2 &offset ) : void | ||
EditSpawnRange ( Player player, int &spawnRangeX, int &spawnRangeY, int &safeRangeX, int &safeRangeY ) : void | ||
EditSpawnRate ( Player player, int &spawnRate, int &maxSpawns ) : void | ||
FindFrame ( NPC npc, int frameHeight ) : void | ||
GetAlpha ( NPC npc, Color lightColor ) : Color? | ||
GetChat ( NPC npc, string &chat ) : void | ||
GetNPC ( int type ) : |
||
HitEffect ( NPC npc, int hitDirection, double damage ) : void | ||
ModifyHitByItem ( NPC npc, Player player, System.Item item, int &damage, float &knockback, bool &crit ) : void | ||
ModifyHitByProjectile ( NPC npc, Projectile projectile, int &damage, float &knockback, bool &crit, int &hitDirection ) : void | ||
ModifyHitNPC ( NPC npc, NPC target, int &damage, float &knockback, bool &crit ) : void | ||
ModifyHitPlayer ( NPC npc, Player target, int &damage, bool &crit ) : void | ||
NPCAI ( NPC npc ) : void | ||
NPCLoot ( NPC npc ) : void | ||
OnChatButtonClicked ( bool firstButton ) : void | ||
OnHitByItem ( NPC npc, Player player, System.Item item, int damage, float knockback, bool crit ) : void | ||
OnHitByProjectile ( NPC npc, Projectile projectile, int damage, float knockback, bool crit ) : void | ||
OnHitNPC ( NPC npc, NPC target, int damage, float knockback, bool crit ) : void | ||
OnHitPlayer ( NPC npc, Player target, int damage, bool crit ) : void | ||
PostAI ( NPC npc ) : void | ||
PostDraw ( NPC npc, |
||
PreAI ( NPC npc ) : bool | ||
PreDraw ( NPC npc, |
||
PreNPCLoot ( NPC npc ) : bool | ||
ReceiveExtraAI ( NPC npc, |
||
ResetEffects ( NPC npc ) : void | ||
ScaleExpertStats ( NPC npc, int numPlayers, float bossLifeScale ) : void | ||
SendExtraAI ( NPC npc, |
||
SetChatButtons ( string &button, string &button2 ) : void | ||
SetupShop ( int type, Chest shop, int &nextSlot ) : void | ||
SetupTravelShop ( int shop, int &nextSlot ) : void | ||
SpawnNPC ( int type, int tileX, int tileY ) : int | ||
StrikeNPC ( NPC npc, double &damage, int defense, float &knockback, int hitDirection, bool &crit ) : bool | ||
TownNPCAttackCooldown ( NPC npc, int &cooldown, int &randExtraCooldown ) : void | ||
TownNPCAttackMagic ( NPC npc, float &auraLightMultiplier ) : void | ||
TownNPCAttackProj ( NPC npc, int &projType, int &attackDelay ) : void | ||
TownNPCAttackProjSpeed ( NPC npc, float &multiplier, float &gravityCorrection, float &randomOffset ) : void | ||
TownNPCAttackShoot ( NPC npc, bool &inBetweenShots ) : void | ||
TownNPCAttackStrength ( NPC npc, int &damage, float &knockback ) : void | ||
TownNPCAttackSwing ( NPC npc, int &itemWidth, int &itemHeight ) : void | ||
TownNPCName ( int type ) : string | ||
UpdateLifeRegen ( NPC npc, int &damage ) : void | ||
UsesPartyHat ( NPC npc ) : bool |
Method | Description | |
---|---|---|
DrawHealthBar ( NPC npc, Vector2 position, float scale ) : void | ||
GetNPCInfo ( NPC npc, |
||
IsModNPC ( NPC npc ) : bool | ||
NPCLoader ( ) : System | ||
ReserveNPCID ( ) : int | ||
ResizeArrays ( bool unloading ) : void | ||
SetupNPC ( NPC npc ) : void | ||
SetupNPCInfo ( NPC npc ) : void | ||
Unload ( ) : void |
public static BossBag ( NPC npc, int &bagType ) : void | ||
npc | NPC | |
bagType | int | |
return | void |
public static BossHeadRotation ( NPC npc, float &rotation ) : void | ||
npc | NPC | |
rotation | float | |
return | void |
public static BossHeadSlot ( NPC npc, int &index ) : void | ||
npc | NPC | |
index | int | |
return | void |
public static BossHeadSpriteEffects ( NPC npc, SpriteEffects &spriteEffects ) : void | ||
npc | NPC | |
spriteEffects | SpriteEffects | |
return | void |
public static BossLoot ( NPC npc, string &name, int &potionType ) : void | ||
npc | NPC | |
name | string | |
potionType | int | |
return | void |
public static BuffTownNPC ( float &damageMult, int &defense ) : void | ||
damageMult | float | |
defense | int | |
return | void |
public static CanBeHitByItem ( NPC npc, Player player, System.Item item ) : bool? | ||
npc | NPC | |
player | Player | |
item | System.Item | |
return | bool? |
public static CanBeHitByProjectile ( NPC npc, Projectile projectile ) : bool? | ||
npc | NPC | |
projectile | Projectile | |
return | bool? |
public static CanHitNPC ( NPC npc, NPC target ) : bool? | ||
npc | NPC | |
target | NPC | |
return | bool? |
public static CanHitPlayer ( NPC npc, Player target, int &cooldownSlot ) : bool | ||
npc | NPC | |
target | Player | |
cooldownSlot | int | |
return | bool |
public static CanTownNPCSpawn ( int numTownNPCs, int money ) : void | ||
numTownNPCs | int | |
money | int | |
return | void |
public static CheckConditions ( int type ) : bool | ||
type | int | |
return | bool |
public static ChooseSpawn ( Terraria.ModLoader.NPCSpawnInfo spawnInfo ) : int? | ||
spawnInfo | Terraria.ModLoader.NPCSpawnInfo | |
return | int? |
public static DisplayName ( int type ) : string | ||
type | int | |
return | string |
public static DrawEffects ( NPC npc, Color &drawColor ) : void | ||
npc | NPC | |
drawColor | Color | |
return | void |
public static DrawHealthBar ( NPC npc, float &scale ) : bool | ||
npc | NPC | |
scale | float | |
return | bool |
public static DrawTownAttackGun ( NPC npc, float &scale, int &item, int &closeness ) : void | ||
npc | NPC | |
scale | float | |
item | int | |
closeness | int | |
return | void |
public static DrawTownAttackSwing ( NPC npc, Microsoft.Xna.Framework.Graphics.Texture2D &item, int &itemSize, float &scale, Vector2 &offset ) : void | ||
npc | NPC | |
item | Microsoft.Xna.Framework.Graphics.Texture2D | |
itemSize | int | |
scale | float | |
offset | Vector2 | |
return | void |
public static EditSpawnRange ( Player player, int &spawnRangeX, int &spawnRangeY, int &safeRangeX, int &safeRangeY ) : void | ||
player | Player | |
spawnRangeX | int | |
spawnRangeY | int | |
safeRangeX | int | |
safeRangeY | int | |
return | void |
public static EditSpawnRate ( Player player, int &spawnRate, int &maxSpawns ) : void | ||
player | Player | |
spawnRate | int | |
maxSpawns | int | |
return | void |
public static FindFrame ( NPC npc, int frameHeight ) : void | ||
npc | NPC | |
frameHeight | int | |
return | void |
public static GetAlpha ( NPC npc, Color lightColor ) : Color? | ||
npc | NPC | |
lightColor | Color | |
return | Color? |
public static GetChat ( NPC npc, string &chat ) : void | ||
npc | NPC | |
chat | string | |
return | void |
public static HitEffect ( NPC npc, int hitDirection, double damage ) : void | ||
npc | NPC | |
hitDirection | int | |
damage | double | |
return | void |
public static ModifyHitByItem ( NPC npc, Player player, System.Item item, int &damage, float &knockback, bool &crit ) : void | ||
npc | NPC | |
player | Player | |
item | System.Item | |
damage | int | |
knockback | float | |
crit | bool | |
return | void |
public static ModifyHitByProjectile ( NPC npc, Projectile projectile, int &damage, float &knockback, bool &crit, int &hitDirection ) : void | ||
npc | NPC | |
projectile | Projectile | |
damage | int | |
knockback | float | |
crit | bool | |
hitDirection | int | |
return | void |
public static ModifyHitNPC ( NPC npc, NPC target, int &damage, float &knockback, bool &crit ) : void | ||
npc | NPC | |
target | NPC | |
damage | int | |
knockback | float | |
crit | bool | |
return | void |
public static ModifyHitPlayer ( NPC npc, Player target, int &damage, bool &crit ) : void | ||
npc | NPC | |
target | Player | |
damage | int | |
crit | bool | |
return | void |
public static OnChatButtonClicked ( bool firstButton ) : void | ||
firstButton | bool | |
return | void |
public static OnHitByItem ( NPC npc, Player player, System.Item item, int damage, float knockback, bool crit ) : void | ||
npc | NPC | |
player | Player | |
item | System.Item | |
damage | int | |
knockback | float | |
crit | bool | |
return | void |
public static OnHitByProjectile ( NPC npc, Projectile projectile, int damage, float knockback, bool crit ) : void | ||
npc | NPC | |
projectile | Projectile | |
damage | int | |
knockback | float | |
crit | bool | |
return | void |
public static OnHitNPC ( NPC npc, NPC target, int damage, float knockback, bool crit ) : void | ||
npc | NPC | |
target | NPC | |
damage | int | |
knockback | float | |
crit | bool | |
return | void |
public static OnHitPlayer ( NPC npc, Player target, int damage, bool crit ) : void | ||
npc | NPC | |
target | Player | |
damage | int | |
crit | bool | |
return | void |
public static PostDraw ( NPC npc, |
||
npc | NPC | |
spriteBatch | ||
drawColor | Color | |
return | void |
public static PreDraw ( NPC npc, |
||
npc | NPC | |
spriteBatch | ||
drawColor | Color | |
return | bool |
public static ReceiveExtraAI ( NPC npc, |
||
npc | NPC | |
reader | ||
return | void |
public static ResetEffects ( NPC npc ) : void | ||
npc | NPC | |
return | void |
public static ScaleExpertStats ( NPC npc, int numPlayers, float bossLifeScale ) : void | ||
npc | NPC | |
numPlayers | int | |
bossLifeScale | float | |
return | void |
public static SendExtraAI ( NPC npc, |
||
npc | NPC | |
writer | ||
return | void |
public static SetChatButtons ( string &button, string &button2 ) : void | ||
button | string | |
button2 | string | |
return | void |
public static SetupShop ( int type, Chest shop, int &nextSlot ) : void | ||
type | int | |
shop | Chest | |
nextSlot | int | |
return | void |
public static SetupTravelShop ( int shop, int &nextSlot ) : void | ||
shop | int | |
nextSlot | int | |
return | void |
public static SpawnNPC ( int type, int tileX, int tileY ) : int | ||
type | int | |
tileX | int | |
tileY | int | |
return | int |
public static StrikeNPC ( NPC npc, double &damage, int defense, float &knockback, int hitDirection, bool &crit ) : bool | ||
npc | NPC | |
damage | double | |
defense | int | |
knockback | float | |
hitDirection | int | |
crit | bool | |
return | bool |
public static TownNPCAttackCooldown ( NPC npc, int &cooldown, int &randExtraCooldown ) : void | ||
npc | NPC | |
cooldown | int | |
randExtraCooldown | int | |
return | void |
public static TownNPCAttackMagic ( NPC npc, float &auraLightMultiplier ) : void | ||
npc | NPC | |
auraLightMultiplier | float | |
return | void |
public static TownNPCAttackProj ( NPC npc, int &projType, int &attackDelay ) : void | ||
npc | NPC | |
projType | int | |
attackDelay | int | |
return | void |
public static TownNPCAttackProjSpeed ( NPC npc, float &multiplier, float &gravityCorrection, float &randomOffset ) : void | ||
npc | NPC | |
multiplier | float | |
gravityCorrection | float | |
randomOffset | float | |
return | void |
public static TownNPCAttackShoot ( NPC npc, bool &inBetweenShots ) : void | ||
npc | NPC | |
inBetweenShots | bool | |
return | void |
public static TownNPCAttackStrength ( NPC npc, int &damage, float &knockback ) : void | ||
npc | NPC | |
damage | int | |
knockback | float | |
return | void |
public static TownNPCAttackSwing ( NPC npc, int &itemWidth, int &itemHeight ) : void | ||
npc | NPC | |
itemWidth | int | |
itemHeight | int | |
return | void |
public static TownNPCName ( int type ) : string | ||
type | int | |
return | string |
public static UpdateLifeRegen ( NPC npc, int &damage ) : void | ||
npc | NPC | |
damage | int | |
return | void |
public static UsesPartyHat ( NPC npc ) : bool | ||
npc | NPC | |
return | bool |