58121 {
58122
58123 int num = 10;
58129 if (Main.player[
owner].setMonkT2)
58130 {
58132 }
58133 if (Main.player[
owner].setMonkT3)
58134 {
58135 num = 14;
58137 }
58139 if (
ai[0] >= (
float)
num3)
58140 {
58142 }
58144 {
58145 bool flag = false;
58146 for (
int i = 0;
i < 200;
i++)
58147 {
58150 {
58151 flag = true;
58152 break;
58153 }
58154 }
58155 if (flag)
58156 {
58158 }
58159 }
58161 {
58164 Point origin =
base.Center.ToTileCoordinates();
58167 {
58169 position.Y += 16f;
58170 return;
58171 }
58173 {
58175 }
58177 if (
flag2 && Main.tile[result.X, result.Y] !=
null && Main.tile[result.X, result.Y].blockType() == 1)
58178 {
58180 }
58185 {
58187 }
58189 {
58191 }
58195 {
58197 }
58199 }
58201 {
58204 {
58206 }
58207 }
58208 DelegateMethods.v3_1 =
new Vector3(0.2f, 0.7f, 1f);
58211 for (
int j = 0;
j < 4;
j++)
58212 {
58213 if (Main.rand.Next(6) != 0)
58214 {
58215 continue;
58216 }
58219 {
58222 {
58223 Dust dust = Dust.NewDustDirect(
targetPosition, 0, 0, 226, 0f, 0f, 100);
58226 dust.scale = 0.7f;
58227 dust.fadeIn = 1f;
58228 dust.noGravity = true;
58229 dust.noLight = true;
58230 }
58231 }
58232 }
58233 for (
int k = 0;
k < 0;
k++)
58234 {
58235 if (Main.rand.Next(10) != 0)
58236 {
58237 continue;
58238 }
58241 {
58244 {
58246 dust2.velocity *= 0.6f;
58247 dust2.velocity += Vector2.UnitY * -2f;
58248 dust2.noGravity = true;
58249 dust2.noLight = true;
58250 }
58251 }
58252 }
58253 for (
int l = 0;
l < 4;
l++)
58254 {
58255 if (Main.rand.Next(10) == 0)
58256 {
58258 dust3.velocity *= 0.6f;
58259 dust3.velocity += Vector2.UnitY * -2f;
58260 dust3.scale = 0.7f;
58261 dust3.noGravity = true;
58262 dust3.noLight = true;
58263 }
58264 }
58266 velocity.Y += 0.2f;
58267 }
static double Abs(double value)
static SlotId PlayTrackedSound(SoundStyle style, Vector2 position)
static readonly LegacySoundStyle DD2_LightningAuraZap
static Conditions.NotNull _cachedConditions_notNull
static Conditions.IsSolid _cachedConditions_solid
bool Colliding(Rectangle myRect, Rectangle targetRect)
bool AI_137_CanHit(Vector2 targetPosition)
static GenSearch Chain(GenSearch search, params GenCondition[] conditions)
static bool Find(Point origin, GenSearch search, out Point result)