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

◆ CanShimmer()

bool Terraria.Item.CanShimmer ( )
inline

Definition at line 49558 of file Item.cs.

49559 {
49562 {
49563 return false;
49564 }
49565 bool flag = false;
49566 if ((type == 1326 || type == 779 || type == 3031 || type == 5364) && NPC.downedMoonlord)
49567 {
49568 flag = true;
49569 }
49570 if (type == 4986 && !NPC.unlockedSlimeRainbowSpawn)
49571 {
49572 flag = true;
49573 }
49574 if (type == 3461 || createTile == 139)
49575 {
49576 flag = true;
49577 }
49579 {
49580 return makeNPC > 0;
49581 }
49582 return true;
49583 }
static int[] CoinLuckValue
Set for defining how much coin luck according to its stack this item gives to nearby players when thr...
Definition ItemID.cs:1613
static int[] ShimmerTransformToItem
If > 0 for a given item type (F:Terraria.Item.type), then that item will transform into the retrieved...
Definition ItemID.cs:151
int makeNPC
The numerical ID of the NPC that this item creates when used. Mainly used for caught critters as ite...
Definition Item.cs:270
int GetShimmerEquivalentType()
Definition Item.cs:49634
int createTile
The ID of the tile this item places on use. Either a T:Terraria.ID.TileID entry or M:Terraria....
Definition Item.cs:435
int FindDecraftAmount()
Definition Item.cs:49624
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
Definition Item.cs:345

References Terraria.ID.ItemID.Sets.CoinLuckValue, Terraria.Item.createTile, Terraria.NPC.downedMoonlord, Terraria.Item.FindDecraftAmount(), Terraria.Item.GetShimmerEquivalentType(), Terraria.GameContent.ShimmerTransforms.IsItemTransformLocked(), Terraria.Item.makeNPC, Terraria.ID.ItemID.Sets.ShimmerTransformToItem, Terraria.Item.type, and Terraria.NPC.unlockedSlimeRainbowSpawn.

Referenced by Terraria.Item.Shimmering().

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