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

◆ DefaultTokite()

void Terraria.Item.DefaultTokite ( int projId)
inline

Definition at line 47862 of file Item.cs.

47863 {
47864 width = 20;
47865 height = 28;
47867 consumable = false;
47868 ranged = false;
47869 noUseGraphic = true;
47870 maxStack = 1;
47872 }
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
static int buyPrice(int platinum=0, int gold=0, int silver=0, int copper=0)
Converts the provided buy price into copper coins. If assigned to F:Terraria.Item....
Definition Item.cs:49543
int maxStack
The maximum number of items that can be contained within a single stack. F:Terraria....
Definition Item.cs:402
bool consumable
Whether the item is consumed after use. If consumed, the item stack will decrease by 1....
Definition Item.cs:488
bool noUseGraphic
If true, the item's sprite will not be visible while the item is in use. Defaults to false.
Definition Item.cs:641
void SetShopValues(ItemRarityColor rarity, int coinValue)
A helper method that sets item rarity (F:Terraria.Item.rare) and item value (F:Terraria....
Definition Item.cs:48724
bool ranged
Definition Item.cs:838
void DefaultToThrownWeapon(int baseProjType, int singleShotTime, float shotVelocity, bool hasAutoReuse=false)
This method sets a variety of Item values common to thrown weapons. Specifically:
Definition Item.cs:48515

References Terraria.Item.buyPrice(), Terraria.Item.consumable, Terraria.Item.DefaultToThrownWeapon(), Terraria.Entity.height, Terraria.Item.maxStack, Terraria.Item.noUseGraphic, Terraria.Item.ranged, Terraria.Item.SetShopValues(), and Terraria.Entity.width.

Referenced by Terraria.Item.SetDefaults5().

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