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

◆ DefaultToQuestFish()

void Terraria.Item.DefaultToQuestFish ( )
inline

This method sets a variety of Item values common to quest fish items.
Specifically:

questItem = true; maxStack = 1; width = 26; height = 26; uniqueStack = true; rare = F:Terraria.ID.ItemRarityID.Quest;

Definition at line 31448 of file Item.cs.

31449 {
31450 questItem = true;
31451 maxStack = 1;
31452 width = 26;
31453 height = 26;
31454 uniqueStack = true;
31455 rare = -11;
31456 }
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
bool questItem
If true, categorizes the given item as a quest fish. Quest fish get a special tooltip,...
Definition Item.cs:129
int rare
Indicates the rarity of an item. Assign to a T:Terraria.ID.ItemRarityID value. Vanilla values range f...
Definition Item.cs:587
int maxStack
The maximum number of items that can be contained within a single stack. F:Terraria....
Definition Item.cs:402
bool uniqueStack
Players cannot pick up a uniqueStack item if they have an item with the same F:Terraria....
Definition Item.cs:706

References Terraria.Entity.height, Terraria.Item.maxStack, Terraria.Item.questItem, Terraria.Item.rare, Terraria.Item.uniqueStack, and Terraria.Entity.width.

Referenced by Terraria.Item.SetDefaults3(), and Terraria.Item.SetDefaults5().

+ Here is the caller graph for this function: