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

◆ AI_164_StormTigerGem()

void Terraria.Projectile.AI_164_StormTigerGem ( )
inlineprivate

Definition at line 49448 of file Projectile.cs.

49449 {
49450 //IL_013b: Unknown result type (might be due to invalid IL or missing references)
49451 //IL_0140: Unknown result type (might be due to invalid IL or missing references)
49452 //IL_0143: Unknown result type (might be due to invalid IL or missing references)
49453 //IL_00b6: Unknown result type (might be due to invalid IL or missing references)
49454 Player player = Main.player[owner];
49455 if (type == 831)
49456 {
49457 if (player.dead)
49458 {
49459 player.stormTiger = false;
49460 }
49461 if (player.stormTiger)
49462 {
49463 timeLeft = 2;
49464 }
49465 if (++frameCounter >= 4)
49466 {
49467 frameCounter = 0;
49468 if (++frame >= 6)
49469 {
49470 frame = 0;
49471 }
49472 }
49473 }
49474 if (type == 970)
49475 {
49476 if (player.ownedProjectileCounts[type] > 1 && localAI[0] == 0f)
49477 {
49478 localAI[0] = 1f;
49480 }
49481 if (player.dead)
49482 {
49483 player.abigailMinion = false;
49484 }
49485 if (player.abigailMinion)
49486 {
49487 timeLeft = 2;
49488 }
49489 if (++frameCounter >= 4)
49490 {
49491 frameCounter = 0;
49492 if (++frame >= 6)
49493 {
49494 frame = 0;
49495 }
49496 }
49497 }
49501 Vector2 center = AI_164_GetHomeLocation(player, index, totalIndexesInGroup);
49502 base.Center = center;
49503 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
static readonly SoundStyle AbigailUpgrade
Definition SoundID.cs:253
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
static List< int > _ai164_blacklistedTargets
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....
int frame
The frame number in the spritesheet that this projectile will be drawn with. Assign in M:Terraria....
static Vector2 AI_164_GetHomeLocation(Player master, int stackedIndex, int totalIndexes)
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
int timeLeft
Time in ticks before this projectile will naturally despawn. Each update timeLeft is decreased by 1...
void AI_GetMyGroupIndexAndFillBlackList(List< int > blackListedTargets, out int index, out int totalIndexesInGroup)
int frameCounter
Used as a timer to decide when to change F:Terraria.Projectile.frame. Defaults to 0.

References Terraria.Player.abigailMinion, Terraria.ID.SoundID.AbigailUpgrade, Terraria.Player.dead, Terraria.Player.ownedProjectileCounts, Terraria.Main.player, Terraria.Audio.SoundEngine.PlaySound(), and Terraria.Player.stormTiger.

+ Here is the call graph for this function: