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

◆ SpawnMinionOnCursor()

int Terraria.Player.SpawnMinionOnCursor ( IEntitySource projectileSource,
int ownerIndex,
int minionProjectileId,
int originalDamageNotScaledByMinionDamage,
float KnockBack,
Vector2 offsetFromCursor = default(Vector2),
Vector2 velocityOnSpawn = default(Vector2) )
inline

Definition at line 50101 of file Player.cs.

50102 {
50103 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
50104 //IL_0005: Unknown result type (might be due to invalid IL or missing references)
50105 //IL_0006: Unknown result type (might be due to invalid IL or missing references)
50106 //IL_0007: Unknown result type (might be due to invalid IL or missing references)
50107 //IL_0009: Unknown result type (might be due to invalid IL or missing references)
50108 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
50109 //IL_0088: Unknown result type (might be due to invalid IL or missing references)
50110 //IL_0089: Unknown result type (might be due to invalid IL or missing references)
50111 Vector2 pointPoisition = Main.MouseWorld;
50114 float ai = 0f;
50116 {
50117 switch (entitySource_ItemUse.Item.type)
50118 {
50119 case 1157:
50120 ai = 60f;
50121 break;
50122 case 2364:
50123 case 2365:
50124 case 2535:
50125 case 2621:
50126 case 2749:
50127 case 3474:
50128 ai = 1f;
50129 break;
50130 }
50131 }
50133 Main.projectile[num].originalDamage = originalDamageNotScaledByMinionDamage;
50134 return num;
50135 }
Use the interface, T:Terraria.DataStructures.IEntitySource_WithStatsFromItem instead when checking en...
void LimitPointToPlayerReachableArea(ref Vector2 pointPoisition)
Definition Player.cs:45170

References Terraria.Player.LimitPointToPlayerReachableArea(), Terraria.Main.MouseWorld, Terraria.Projectile.NewProjectile(), and Terraria.Main.projectile.

Referenced by Terraria.Player.ItemCheck_Shoot().

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