57795 {
57796
57800 int num = 680;
57806 if (Main.player[
owner].setSquireT2)
57807 {
57809 }
57814 {
57815 center.Y -= 4f;
57816 }
57818 {
57824 {
57826 }
57827 }
57829 {
57831 bool flag = false;
57832 if (Main.player[
owner].ballistaPanic &&
ai[1] > 60f)
57833 {
57835 }
57836 if (Main.player[
owner].ballistaPanic && Main.player[
owner].setSquireT3 &&
ai[1] > 30f)
57837 {
57839 }
57841 {
57843 }
57844 else
57845 {
57846 flag = true;
57847 }
57850 {
57854 {
57856 }
57857 else
57858 {
57860 }
57861 if (flag &&
owner == Main.myPlayer)
57862 {
57867 }
57868 }
57869 else
57870 {
57873 {
57875 }
57877 }
57878 }
57879 else if (
ai[0] == 2f)
57880 {
57882 if (
ai[1] == (
float)
num2)
57883 {
57888 {
57890 }
57893 {
57895 }
57896 else
57897 {
57899 }
57901 if (
owner == Main.myPlayer)
57902 {
57904 }
57905 }
57907 {
57910 }
57911 }
57914 velocity.Y += 0.2f;
57915 }
static int Sign(decimal value)
static SlotId PlayTrackedSound(SoundStyle style, Vector2 position)
static readonly LegacySoundStyle DD2_BallistaTowerShot
int AI_134_Ballista_FindTarget(float shot_range, float deadBottomAngle, Vector2 shootingSpot)
static int GetBallistraShotDelay(Player player)
IEntitySource GetProjectileSource_FromThis()
static int NewProjectile(IEntitySource spawnSource, Vector2 position, Vector2 velocity, int Type, int Damage, float KnockBack, int Owner=-1, float ai0=0f, float ai1=0f, float ai2=0f)