TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ AI_007_TownEntities_Shimmer_TeleportToLandingSpot()

void Terraria.NPC.AI_007_TownEntities_Shimmer_TeleportToLandingSpot ( )
inlineprivate

Definition at line 59115 of file NPC.cs.

59116 {
59117 //IL_0011: Unknown result type (might be due to invalid IL or missing references)
59118 //IL_0016: Unknown result type (might be due to invalid IL or missing references)
59119 //IL_001a: Unknown result type (might be due to invalid IL or missing references)
59120 //IL_001f: Unknown result type (might be due to invalid IL or missing references)
59121 //IL_0025: Unknown result type (might be due to invalid IL or missing references)
59122 //IL_002a: Unknown result type (might be due to invalid IL or missing references)
59123 //IL_002b: Unknown result type (might be due to invalid IL or missing references)
59124 //IL_0030: Unknown result type (might be due to invalid IL or missing references)
59125 //IL_005b: Unknown result type (might be due to invalid IL or missing references)
59126 //IL_005d: Unknown result type (might be due to invalid IL or missing references)
59127 //IL_0067: Unknown result type (might be due to invalid IL or missing references)
59128 //IL_006c: Unknown result type (might be due to invalid IL or missing references)
59129 //IL_0071: Unknown result type (might be due to invalid IL or missing references)
59130 //IL_0078: Unknown result type (might be due to invalid IL or missing references)
59131 //IL_0079: Unknown result type (might be due to invalid IL or missing references)
59133 if (vector.HasValue)
59134 {
59135 Vector2 vector2 = position;
59136 position = vector.Value;
59137 Vector2 movementVector = position - vector2;
59138 int num = 560;
59139 if (((Vector2)(ref movementVector)).Length() >= (float)num)
59140 {
59141 ai[2] = 30f;
59143 {
59144 PositionInWorld = vector2 + base.Size / 2f,
59145 MovementVector = movementVector
59146 });
59147 }
59148 netUpdate = true;
59149 }
59150 }
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
static void BroadcastParticleSpawn(ParticleOrchestraType type, ParticleOrchestraSettings settings)
float[] ai
An array with 4 slots used for any sort of data storage, which is occasionally synced from the server...
Definition NPC.cs:997
Vector2? AI_007_TownEntities_Shimmer_ScanForBestSpotToLandOn()
Definition NPC.cs:59152
bool netUpdate
Definition NPC.cs:1130

References Terraria.NPC.ai, Terraria.NPC.AI_007_TownEntities_Shimmer_ScanForBestSpotToLandOn(), Terraria.GameContent.Drawing.ParticleOrchestrator.BroadcastParticleSpawn(), Terraria.NPC.netUpdate, and Terraria.Entity.position.

Referenced by Terraria.NPC.AI_007_TownEntities().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: