Method | Description | |
---|---|---|
DropLootBegin ( int &itemId, Vector2 &pos, Vector2 &randomBox, int &Type, int &Stack, bool &noBroadcast, int &prefixGiven, bool &noGrabDelay, bool &reverseLookup, global npc ) : bool | ||
DropLootBegin ( int &itemId, Vector2 &pos, int &width, int &height, int &Type, int &Stack, bool &noBroadcast, int &prefixGiven, bool &noGrabDelay, bool &reverseLookup, global npc ) : bool |
Method | Description | |
---|---|---|
AIBegin ( global npc ) : bool |
This method is injected into the start of the AI() method. The return value will dictate if normal vanilla code should continue to run.
|
|
AIEnd ( global npc ) : void |
This method is injected into the end of the AI() method.
|
|
BossBagItem ( int X, int Y, int Width, int Height, int Type, int Stack, bool noBroadcast, int pfix, bool noGrabDelay, bool reverseLookup, global npc ) : int |
This method injected into the DropBossBags call, replacing the server NewItem calls. We check the result for -1 to cancel the function.
|
|
Create ( int &index, int &x, int &y, int &type, int &start, float &ai0, float &ai1, float &ai2, float &ai3, int &target ) : global::Terraria.NPC | ||
DropLootBegin ( int &itemId, int &x, int &y, int &width, int &height, int &type, int &stack, bool &noBroadcast, int &pfix, bool &noGrabDelay, bool &reverseLookup, global npc ) : bool | ||
DropLootEnd ( Vector2 pos, Vector2 randomBox, int type, int stack, bool noBroadcast, int prefixGiven, bool noGrabDelay, bool reverseLookup, global npc ) : void | ||
DropLootEnd ( Vector2 pos, int width, int height, int type, int stack, bool noBroadcast, int prefixGiven, bool noGrabDelay, bool reverseLookup, global npc ) : void | ||
DropLootEnd ( int x, int y, int width, int height, int type, int stack, bool noBroadcast, int pfix, bool noGrabDelay, bool reverseLookup, global npc ) : void | ||
Killed ( global npc ) : void |
Called from Terraria.NPC.checkDead when an NPC has been killed
|
|
NetDefaultsBegin ( global npc, int &type ) : bool |
This method is injected into the start of the NetDefaults method. The return value will dictate if normal vanilla code should continue to run.
|
|
NetDefaultsEnd ( global npc, int &type ) : void |
This method is injected into the end of the NetDefaults method.
|
|
PostTransform ( global npc ) : void | ||
PreTransform ( global npc, int &newType ) : bool | ||
SetDefaultsByIdBegin ( global npc, int &type, float &scaleOverride ) : bool |
This method is injected into the start of the SetDefaults(int,bool) method. The return value will dictate if normal vanilla code should continue to run.
|
|
SetDefaultsByIdEnd ( global npc, int type, float scaleOverride ) : void |
This method is injected into the end of the SetDefaults(int,bool) method.
|
|
SetDefaultsByNameBegin ( global npc, string &name ) : bool |
This method is injected into the start of the SetDefaults(string) method. The return value will dictate if normal vanilla code should continue to run.
|
|
SetDefaultsByNameEnd ( global npc, string &name ) : void |
This method is injected into the end of the SetDefaults(string) method.
|
|
Spawn ( int &index ) : bool |
Called from Terraria.NPC.NewNPC after the NPC has been created and is about to be spawned into the world. Ideally the consumer will set the index to 200 to fully cancel the event |
|
Strike ( global npc, double &cancelResult, int &Damage, float &knockBack, int &hitDirection, bool &crit, bool &noEffect, bool &fromNet, global entity ) : bool |
This method is injected into the StrikeNPC method along with an additional variable [cancelResult] which is returned if this method returns false.
|
|
UpdateBegin ( global npc, int &i ) : bool | ||
UpdateEnd ( global npc, int i ) : void |
public static DropLootBegin ( int &itemId, Vector2 &pos, Vector2 &randomBox, int &Type, int &Stack, bool &noBroadcast, int &prefixGiven, bool &noGrabDelay, bool &reverseLookup, global npc ) : bool | ||
itemId | int | |
pos | Vector2 | |
randomBox | Vector2 | |
Type | int | |
Stack | int | |
noBroadcast | bool | |
prefixGiven | int | |
noGrabDelay | bool | |
reverseLookup | bool | |
npc | global | |
return | bool |
public static DropLootBegin ( int &itemId, Vector2 &pos, int &width, int &height, int &Type, int &Stack, bool &noBroadcast, int &prefixGiven, bool &noGrabDelay, bool &reverseLookup, global npc ) : bool | ||
itemId | int | |
pos | Vector2 | |
width | int | |
height | int | |
Type | int | |
Stack | int | |
noBroadcast | bool | |
prefixGiven | int | |
noGrabDelay | bool | |
reverseLookup | bool | |
npc | global | |
return | bool |