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

◆ DefaultToBow()

void Terraria.Item.DefaultToBow ( int singleShotTime,
float shotVelocity,
bool hasAutoReuse = false )
inline

This method sets a variety of Item values common to bow weapons.
Specifically:

width = 14;
height = 30;
UseSound = SoundID.Item5;

Additionally:

Parameters
singleShotTime
shotVelocity
hasAutoReuse

Definition at line 48427 of file Item.cs.

48428 {
48430 width = 14;
48431 height = 30;
48433 }
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 Arrow
Definition AmmoID.cs:137
AmmoID entries represent ammo types. Ammo items that share the same AmmoID value assigned to F:Terrar...
Definition AmmoID.cs:11
static readonly SoundStyle Item5
Definition SoundID.cs:687
SoundStyle? UseSound
The sound this item makes when used. Set this to an existing T:Terraria.ID.SoundID entry or assign to...
Definition Item.cs:534
void DefaultToRangedWeapon(int baseProjType, int ammoID, int singleShotTime, float shotVelocity, bool hasAutoReuse=false)
This method sets a variety of Item values common to ranged weapons. Specifically:
Definition Item.cs:48483

References Terraria.ID.AmmoID.Arrow, Terraria.Item.DefaultToRangedWeapon(), Terraria.Entity.height, Terraria.ID.SoundID.Item5, Terraria.Item.UseSound, 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: