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

◆ RocketBootVisuals()

void Terraria.Player.RocketBootVisuals ( )
inlineprivate

Definition at line 27142 of file Player.cs.

27143 {
27144 //IL_0079: Unknown result type (might be due to invalid IL or missing references)
27145 //IL_004a: Unknown result type (might be due to invalid IL or missing references)
27146 //IL_007e: Unknown result type (might be due to invalid IL or missing references)
27147 //IL_02ec: Unknown result type (might be due to invalid IL or missing references)
27148 //IL_02ed: Unknown result type (might be due to invalid IL or missing references)
27149 //IL_02f2: Unknown result type (might be due to invalid IL or missing references)
27150 //IL_02f8: Unknown result type (might be due to invalid IL or missing references)
27151 //IL_030e: Unknown result type (might be due to invalid IL or missing references)
27152 //IL_0314: Unknown result type (might be due to invalid IL or missing references)
27153 //IL_033a: Unknown result type (might be due to invalid IL or missing references)
27154 //IL_033f: Unknown result type (might be due to invalid IL or missing references)
27155 //IL_0341: Unknown result type (might be due to invalid IL or missing references)
27156 //IL_0346: Unknown result type (might be due to invalid IL or missing references)
27157 //IL_034e: Unknown result type (might be due to invalid IL or missing references)
27158 //IL_0355: Unknown result type (might be due to invalid IL or missing references)
27159 //IL_035a: Unknown result type (might be due to invalid IL or missing references)
27160 //IL_01c1: Unknown result type (might be due to invalid IL or missing references)
27161 //IL_01c2: Unknown result type (might be due to invalid IL or missing references)
27162 //IL_01c7: Unknown result type (might be due to invalid IL or missing references)
27163 //IL_01cd: Unknown result type (might be due to invalid IL or missing references)
27164 //IL_01e4: Unknown result type (might be due to invalid IL or missing references)
27165 //IL_01e9: Unknown result type (might be due to invalid IL or missing references)
27166 //IL_01fe: Unknown result type (might be due to invalid IL or missing references)
27167 //IL_023e: Unknown result type (might be due to invalid IL or missing references)
27168 //IL_0248: Unknown result type (might be due to invalid IL or missing references)
27169 //IL_024d: Unknown result type (might be due to invalid IL or missing references)
27170 //IL_0255: Unknown result type (might be due to invalid IL or missing references)
27171 //IL_025b: Unknown result type (might be due to invalid IL or missing references)
27172 //IL_0265: Unknown result type (might be due to invalid IL or missing references)
27173 //IL_026a: Unknown result type (might be due to invalid IL or missing references)
27174 //IL_026f: Unknown result type (might be due to invalid IL or missing references)
27175 //IL_0277: Unknown result type (might be due to invalid IL or missing references)
27176 //IL_027c: Unknown result type (might be due to invalid IL or missing references)
27177 //IL_0283: Unknown result type (might be due to invalid IL or missing references)
27178 //IL_0288: Unknown result type (might be due to invalid IL or missing references)
27179 //IL_028d: Unknown result type (might be due to invalid IL or missing references)
27180 //IL_0295: Unknown result type (might be due to invalid IL or missing references)
27181 //IL_029c: Unknown result type (might be due to invalid IL or missing references)
27182 //IL_02a6: Unknown result type (might be due to invalid IL or missing references)
27183 //IL_02ab: Unknown result type (might be due to invalid IL or missing references)
27184 //IL_02b0: Unknown result type (might be due to invalid IL or missing references)
27185 //IL_03a0: Unknown result type (might be due to invalid IL or missing references)
27186 //IL_03aa: Unknown result type (might be due to invalid IL or missing references)
27187 //IL_03af: Unknown result type (might be due to invalid IL or missing references)
27188 //IL_03b9: Unknown result type (might be due to invalid IL or missing references)
27189 //IL_03c3: Unknown result type (might be due to invalid IL or missing references)
27190 //IL_03c8: Unknown result type (might be due to invalid IL or missing references)
27191 int num = height;
27192 if (gravDir == -1f)
27193 {
27194 num = 4;
27195 }
27196 Vector2 vector = default(Vector2);
27197 for (int i = 0; i < 2; i++)
27198 {
27199 int num2 = ((i == 0) ? 2 : (-2));
27200 Rectangle r = ((i != 0) ? new Rectangle((int)position.X + width - 4, (int)position.Y + num - 10, 8, 8) : new Rectangle((int)position.X - 4, (int)position.Y + num - 10, 8, 8));
27201 if (direction == -1)
27202 {
27203 r.X -= 4;
27204 }
27205 int type = 6;
27206 float scale = 2.5f;
27207 int alpha = 100;
27208 float num3 = 1f;
27209 ((Vector2)(ref vector))._002Ector((float)(-num2) - velocity.X * 0.3f, 2f * gravDir - velocity.Y * 0.3f);
27210 Dust dust;
27211 switch (vanityRocketBoots)
27212 {
27213 case 5:
27214 type = 6;
27215 scale = 2.5f;
27216 break;
27217 case 1:
27219 {
27220 type = 27;
27221 scale = 1.5f;
27222 }
27223 break;
27224 case 3:
27225 type = 76;
27226 scale = 1f;
27227 alpha = 20;
27228 break;
27229 case 2:
27230 if (fairyBoots)
27231 {
27232 type = Main.rand.NextFromList(new short[6] { 61, 61, 61, 242, 64, 63 });
27233 scale = 2f;
27234 alpha = 120;
27235 }
27236 else
27237 {
27238 type = 16;
27239 scale = 1.5f;
27240 alpha = 20;
27241 }
27242 break;
27243 case 4:
27244 {
27245 int num4 = Main.rand.Next(6);
27246 r.Y += 2 * (int)gravDir;
27247 if (num4 == 0 || num4 == 1)
27248 {
27249 dust = Dust.NewDustDirect(r.TopLeft(), r.Width, r.Height, 278, 0f, 0f, 100, Color.Lerp(Color.LimeGreen, Color.White, Main.rand.NextFloat() * 0.3f));
27250 dust.shader = GameShaders.Armor.GetSecondaryShader(cShoe, this);
27251 dust.scale = 0.66f;
27252 dust.noGravity = true;
27253 Dust dust2 = dust;
27254 dust2.velocity *= 0.25f;
27255 Dust dust3 = dust;
27256 dust3.velocity -= velocity * 0.5f;
27257 Dust dust4 = dust;
27258 dust4.velocity += vector * 0.5f;
27259 Dust dust5 = dust;
27260 dust5.position += dust.velocity * 4f;
27261 if (Main.rand.Next(5) == 0)
27262 {
27263 dust.fadeIn = 0.8f;
27264 }
27265 continue;
27266 }
27267 type = 107;
27268 alpha = 100;
27269 scale = 0.7f;
27270 num3 = 0.5f;
27271 break;
27272 }
27273 }
27274 dust = Dust.NewDustDirect(r.TopLeft(), r.Width, r.Height, type, 0f, 0f, alpha, default(Color), scale);
27275 dust.shader = GameShaders.Armor.GetSecondaryShader(cShoe, this);
27276 Dust dust6 = dust;
27277 dust6.velocity += vector;
27278 Dust dust7 = dust;
27279 dust7.velocity *= num3;
27280 switch (vanityRocketBoots)
27281 {
27282 case 5:
27283 dust.noGravity = true;
27284 break;
27285 case 1:
27286 dust.noGravity = true;
27287 break;
27288 case 2:
27289 {
27290 Dust dust9 = dust;
27291 dust9.velocity *= 0.1f;
27292 break;
27293 }
27294 case 3:
27295 {
27296 Dust dust8 = dust;
27297 dust8.velocity *= 0.05f;
27298 dust.velocity.Y += 0.15f;
27299 dust.noLight = true;
27300 if (Main.rand.Next(2) == 0)
27301 {
27302 dust.noGravity = true;
27303 dust.scale = 1.75f;
27304 }
27305 break;
27306 }
27307 }
27308 if (fairyBoots)
27309 {
27310 dust.noGravity = true;
27311 dust.noLightEmittence = true;
27312 }
27313 }
27314 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
static ArmorShaderDataSet Armor
Definition GameShaders.cs:7
bool socialShadowRocketBoots
Definition Player.cs:1731
int vanityRocketBoots
Definition Player.cs:2860

References Terraria.Graphics.Shaders.GameShaders.Armor, Terraria.Player.cShoe, Terraria.Entity.direction, Terraria.Player.fairyBoots, Terraria.Player.gravDir, Terraria.Entity.height, Terraria.Dust.NewDustDirect(), Terraria.Entity.position, Terraria.Main.rand, Terraria.Player.socialShadowRocketBoots, Terraria.Player.vanityRocketBoots, Terraria.Entity.velocity, and Terraria.Entity.width.

Referenced by Terraria.Player.Update().

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