Definition at line 41978 of file WorldGen.cs.
41979 {
41980 float num = 14f;
41984 if (ammo == 2)
41985 {
41987 }
41988 if (ammo == 3)
41989 {
41991 }
41992 if (ammo == 4)
41993 {
41995 num = 3f;
41996 }
41997 if (ammo == 5)
41998 {
42000 num = 3f;
42001 }
42004 if (ammo == 5)
42005 {
42007 }
42008 if (ammo == 2)
42009 {
42011 }
42013 {
42016 }
42018 {
42021 }
42023 {
42026 }
42028 {
42031 }
42033 {
42036 }
42038 {
42041 }
42043 {
42046 }
42048 {
42051 }
42053 {
42056 }
42061 if (ammo == 4 || ammo == 5)
42062 {
42064 {
42065 vector.X += 5f;
42066 }
42067 vector.Y += 5f;
42068 }
42069 bool flag = true;
42071 {
42072 flag = false;
42073 }
42074 if (!flag)
42075 {
42076 return;
42077 }
42081 if (Main.myPlayer != owner && Main.netMode == 2 && (ammo == 4 || ammo == 5))
42082 {
42083 NetMessage.SendData(108, owner, -1,
null,
Damage,
KnockBack, x, y,
angle, ammo, owner);
42084 return;
42085 }
42086 if (Main.netMode == 2)
42087 {
42088 owner = Main.myPlayer;
42089 }
42090 int num9 = Projectile.NewProjectile(
GetProjectileSource_PlayerOrWires(x, y,
fromWire, Main.player[owner]),
vector.X,
vector.Y,
num6,
num7,
type,
Damage,
KnockBack, owner,
num4,
num5);
42091 Main.projectile[
num9].originatedFromActivableTile =
true;
42092 }
static double Sqrt(double d)
static IEntitySource GetProjectileSource_PlayerOrWires(int x, int y, bool fromWiring, Player player)
static bool BunnyCannonCanFire()
References Terraria.GameContent.Damage, Terraria.Main.myPlayer, Terraria.Main.netMode, Terraria.Projectile.NewProjectile(), Terraria.Main.player, Terraria.Main.projectile, Terraria.NetMessage.SendData(), System.Math.Sqrt(), and System.type.
Referenced by Terraria.MessageBuffer.GetData(), Terraria.Wiring.HitWireSingle(), Terraria.Player.ShootFromCannon(), and Terraria.Player.TileInteractionsUse().