22128 {
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
22149
22150
22151 if (type == 659 || type == 667)
22152 {
22154 if (!Falling)
22155 {
22157 if ((
float)Main.rand.Next(100) >
num * 50
f)
22158 {
22160 }
22161 }
22163 {
22164 return;
22165 }
22169 {
22170 movementVector.Y *= -1
f;
22171 }
22173 {
22177 }
22178 if (!
TileLoader.
HasWalkDust(type) && type != 147 && type != 25 && type != 53 && type != 189 && type != 0 && type != 123 && type != 57 && type != 112 && type != 116 && type != 196 && type != 193 && type != 195 && type != 197 && type != 199 && type != 229 && type != 234 && type != 371 && type != 460 && type != 666)
22179 {
22180 return;
22181 }
22183 if (Falling)
22184 {
22186 if (type == 666)
22187 {
22189 }
22190 }
22191 for (
int i = 0; i <
num2; i++)
22192 {
22195 if (type == 666)
22196 {
22197 if (paintColor != 0)
22198 {
22199 break;
22200 }
22202 }
22203 if (type == 53)
22204 {
22206 }
22207 if (type == 189)
22208 {
22210 }
22211 if (type == 0)
22212 {
22214 }
22215 if (type == 123)
22216 {
22218 }
22219 if (type == 57)
22220 {
22222 }
22223 if (type == 112)
22224 {
22226 }
22227 if (type == 234)
22228 {
22230 }
22231 if (type == 116)
22232 {
22234 }
22235 if (type == 196)
22236 {
22238 }
22239 if (type == 193)
22240 {
22242 }
22243 if (type == 195 || type == 199)
22244 {
22246 }
22247 if (type == 197)
22248 {
22250 }
22251 if (type == 229)
22252 {
22254 }
22255 if (type == 371)
22256 {
22258 }
22259 if (type == 460)
22260 {
22262 }
22263 if (type == 25)
22264 {
22266 }
22267 if (
num3 == 32 && Main.rand.Next(2) == 0)
22268 {
22270 }
22271 if (
num3 == 14 && Main.rand.Next(2) == 0)
22272 {
22274 }
22275 if (
num3 == 51 && Main.rand.Next(2) == 0)
22276 {
22278 }
22279 if (
num3 == 36 && Main.rand.Next(2) == 0)
22280 {
22282 }
22283 if (
num3 == 0 && Main.rand.Next(3) != 0)
22284 {
22286 }
22287 if (
num3 == 53 && Main.rand.Next(3) != 0)
22288 {
22290 }
22292 if (type == 193)
22293 {
22295 }
22296 if (type == 197)
22297 {
22299 }
22300 if (type == 460)
22301 {
22303 }
22305 if (!Falling)
22306 {
22308 if ((
float)Main.rand.Next(100) >
num4 * 100
f)
22309 {
22311 }
22312 }
22314 {
22315 continue;
22316 }
22319 {
22321 }
22323 {
22325 }
22327 {
22328 continue;
22329 }
22332 {
22334 }
22336 {
22337 Main.dust[
num6].scale += (float)Main.rand.Next(3) * 0.1f;
22338 Main.dust[
num6].noLight =
true;
22339 }
22341 {
22342 Main.dust[
num6].scale += (float)Main.rand.Next(6) * 0.1f;
22343 }
22345 {
22346 Main.dust[
num6].scale += 0.25f;
22347 Main.dust[
num6].alpha = 50;
22348 }
22350 {
22351 Main.dust[
num6].scale += (float)Main.rand.Next(2, 8) * 0.1f;
22352 }
22353 Main.dust[
num6].noGravity =
true;
22355 {
22356 if (Main.rand.Next(4) == 0)
22357 {
22358 Main.dust[
num6].noGravity =
false;
22359 Main.dust[
num6].scale *= 1.1f;
22360 }
22361 else
22362 {
22363 Main.dust[
num6].scale *= 1.2f;
22364 }
22365 }
22367 {
22368 Main.dust[
num6].velocity.X *= 1.2f;
22369 Main.dust[
num6].velocity.Y *= 0.8f;
22370 Main.dust[
num6].velocity.Y -= 1
f;
22372 obj.velocity *= 0.8f;
22373 Main.dust[
num6].scale += (float)Main.rand.Next(3) * 0.1f;
22374 Main.dust[
num6].velocity.X = (Main.dust[
num6].position.X - (position.X + (float)(
width / 2))) * 0.2f;
22375 if (Main.dust[
num6].velocity.Y > 0
f)
22376 {
22377 Main.dust[
num6].velocity.Y *= -1
f;
22378 }
22379 Main.dust[
num6].velocity.X +=
num5 * 0.3f;
22380 }
22381 else
22382 {
22384 obj2.velocity *= 0.2f;
22385 }
22386 Main.dust[
num6].position.X -=
num5 * 1
f;
22388 {
22389 Main.dust[
num6].velocity.Y *= -1
f;
22390 }
22391 }
22392 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
static void RequestParticleSpawn(bool clientOnly, ParticleOrchestraType type, ParticleOrchestraSettings settings, int? overrideInvokingPlayerIndex=null)
static readonly SoundStyle Item177
static void WalkDust(int type, ref int dustType, ref bool makeDust, ref Color color)
static bool HasWalkDust(int type)
This serves as the central class from which tile-related functions are supported and carried out.