Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ AI_164_StormTigerGem()

void Terraria.Projectile.AI_164_StormTigerGem ( )
inlineprivate

Definition at line 38517 of file Projectile.cs.

38518 {
38519 Player player = Main.player[owner];
38520 if (type == 831)
38521 {
38522 if (player.dead)
38523 {
38524 player.stormTiger = false;
38525 }
38526 if (player.stormTiger)
38527 {
38528 timeLeft = 2;
38529 }
38530 if (++frameCounter >= 4)
38531 {
38532 frameCounter = 0;
38533 if (++frame >= 6)
38534 {
38535 frame = 0;
38536 }
38537 }
38538 }
38539 if (type == 970)
38540 {
38541 if (player.ownedProjectileCounts[type] > 1 && localAI[0] == 0f)
38542 {
38543 localAI[0] = 1f;
38545 }
38546 if (player.dead)
38547 {
38548 player.abigailMinion = false;
38549 }
38550 if (player.abigailMinion)
38551 {
38552 timeLeft = 2;
38553 }
38554 if (++frameCounter >= 4)
38555 {
38556 frameCounter = 0;
38557 if (++frame >= 6)
38558 {
38559 frame = 0;
38560 }
38561 }
38562 }
38567 base.Center = center;
38568 }
static void PlaySound(int type, Vector2 position, int style=1)
static readonly LegacySoundStyle AbigailUpgrade
Definition SoundID.cs:982
static List< int > _ai164_blacklistedTargets
static Vector2 AI_164_GetHomeLocation(Player master, int stackedIndex, int totalIndexes)
void AI_GetMyGroupIndexAndFillBlackList(List< int > blackListedTargets, out int index, out int totalIndexesInGroup)

References Terraria.Player.abigailMinion, Terraria.ID.SoundID.AbigailUpgrade, System.Collections.Generic.Dictionary< TKey, TValue >.Clear(), Terraria.Player.dead, System.index, Terraria.Player.ownedProjectileCounts, Terraria.Main.player, Terraria.Audio.SoundEngine.PlaySound(), Terraria.Player.stormTiger, and System.type.