terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ UpdateNPC_BuffApplyVFX()

void Terraria.NPC.UpdateNPC_BuffApplyVFX ( )
inlineprivate

Definition at line 7822 of file NPC.cs.

7823 {
7824 bool flag = this.canDisplayBuffs;
7825 if (flag)
7826 {
7827 float x = this.position.X;
7828 float y = this.position.Y;
7829 float x2 = this.netOffset.X;
7830 float y2 = this.netOffset.Y;
7831 if (!flag)
7832 {
7833 }
7834 bool flag2 = this.markedByScytheWhip;
7835 if (flag2)
7836 {
7837 if (!flag2)
7838 {
7839 }
7840 int num;
7841 if (num == 0)
7842 {
7843 if (!flag2)
7844 {
7845 }
7846 Rectangle hitbox = base.Hitbox;
7847 }
7848 }
7849 bool flag3 = this.poisoned;
7850 if (flag3)
7851 {
7852 if (!flag3)
7853 {
7854 }
7855 int num2;
7856 if (num2 == 0)
7857 {
7858 float x3 = this.position.X;
7859 float y3 = this.position.Y;
7860 int width = this.width;
7861 bool wet = this.wet;
7862 if (!flag3)
7863 {
7864 }
7865 int num3 = 13107;
7866 int num4 = 1;
7867 Dust dust;
7868 dust.noGravity = num4 != 0;
7869 dust.fadeIn = (float)num3;
7870 }
7871 }
7872 bool flag4 = this.venom;
7873 if (flag4)
7874 {
7875 if (!flag4)
7876 {
7877 }
7878 int num5;
7879 if (num5 == 0)
7880 {
7881 float x4 = this.position.X;
7882 float y4 = this.position.Y;
7883 int width2 = this.width;
7884 bool wet2 = this.wet;
7885 if (!flag4)
7886 {
7887 }
7888 int num6 = 1;
7889 int num7 = 16320;
7890 Dust dust2;
7891 dust2.noGravity = num6 != 0;
7892 dust2.fadeIn = (float)num7;
7893 }
7894 }
7895 bool flag5 = this.shadowFlame;
7896 if (flag5)
7897 {
7898 if (!flag5)
7899 {
7900 }
7901 float x5 = this.position.X;
7902 float y5 = this.position.Y;
7903 int width3 = this.width;
7904 bool wet3 = this.wet;
7905 float x6 = this.velocity.X;
7906 float y6 = this.velocity.Y;
7907 if (!flag5)
7908 {
7909 }
7910 int num8 = 1;
7911 Dust dust3;
7912 dust3.noGravity = num8 != 0;
7913 float x7 = dust3.velocity.X;
7914 float y7 = dust3.velocity.Y;
7915 if (num8 == 0)
7916 {
7917 }
7920 if (num8 == 0)
7921 {
7922 }
7923 int num9;
7924 if (num9 == 0)
7925 {
7926 float num10 = dust3.scale;
7928 }
7929 }
7930 bool flag6 = this.onFire;
7931 if (flag6)
7932 {
7933 if (!flag6)
7934 {
7935 }
7936 float x8 = this.position.X;
7937 float y8 = this.position.Y;
7938 int width4 = this.width;
7939 bool wet4 = this.wet;
7940 float x9 = this.velocity.X;
7941 float y9 = this.velocity.Y;
7942 if (!flag6)
7943 {
7944 }
7945 int num11 = 1;
7946 Dust dust4;
7947 dust4.noGravity = num11 != 0;
7948 float x10 = dust4.velocity.X;
7949 float y10 = dust4.velocity.Y;
7950 if (num11 == 0)
7951 {
7952 }
7955 int num12;
7956 if (num12 == 0)
7957 {
7958 float num13 = dust4.scale;
7960 }
7961 float x11 = this.position.X;
7962 float y11 = this.position.Y;
7963 }
7964 bool flag7 = this.onFire3;
7965 if (flag7)
7966 {
7967 if (!flag7)
7968 {
7969 }
7970 float x12 = this.position.X;
7971 float y12 = this.position.Y;
7972 int width5 = this.width;
7973 bool wet5 = this.wet;
7974 float x13 = this.velocity.X;
7975 float y13 = this.velocity.Y;
7976 if (!flag7)
7977 {
7978 }
7979 int num14 = 1;
7980 Dust dust5;
7981 dust5.noGravity = num14 != 0;
7982 float x14 = dust5.velocity.X;
7983 float y14 = dust5.velocity.Y;
7984 if (num14 == 0)
7985 {
7986 }
7989 int num15;
7990 if (num15 == 0)
7991 {
7992 float num16 = dust5.scale;
7994 }
7995 float x15 = this.position.X;
7996 float y15 = this.position.Y;
7997 }
7998 bool flag8 = this.daybreak;
7999 if (flag8)
8000 {
8001 if (!flag8)
8002 {
8003 }
8004 float x16 = this.position.X;
8005 float y16 = this.position.Y;
8006 int width6 = this.width;
8007 bool wet6 = this.wet;
8008 float x17 = this.velocity.X;
8009 float y17 = this.velocity.Y;
8010 if (!flag8)
8011 {
8012 }
8013 int num17 = 1;
8014 Dust dust6;
8015 dust6.noGravity = num17 != 0;
8016 float x18 = dust6.velocity.X;
8017 float y18 = dust6.velocity.Y;
8018 if (num17 == 0)
8019 {
8020 }
8023 if (num17 == 0)
8024 {
8025 }
8026 int num18;
8027 if (num18 == 0)
8028 {
8029 float num19 = dust6.scale;
8031 }
8032 float x19 = this.position.X;
8033 float y19 = this.position.Y;
8034 if (num17 == 0)
8035 {
8036 }
8037 }
8038 bool flag9 = this.betsysCurse;
8039 int num22;
8040 if (flag9)
8041 {
8042 if (!flag9)
8043 {
8044 }
8045 float x20 = this.position.X;
8046 float y20 = this.position.Y;
8047 int width7 = this.width;
8048 bool wet7 = this.wet;
8049 float x21 = this.velocity.X;
8050 float y21 = this.velocity.Y;
8051 if (!flag9)
8052 {
8053 }
8054 int num20 = 1;
8055 Dust dust7;
8056 dust7.noGravity = num20 != 0;
8057 float x22 = dust7.velocity.X;
8058 float y22 = dust7.velocity.Y;
8059 if (num20 == 0)
8060 {
8061 }
8062 int num21 = 26214;
8063 dust7.scale = (float)num21;
8066 float x23 = dust7.velocity.X;
8067 float y23 = dust7.velocity.Y;
8071 float x24 = this.position.X;
8072 float y24 = this.position.Y;
8073 num22 = 32640;
8074 }
8075 bool flag10 = this.oiled;
8076 if (flag10)
8077 {
8078 if (!flag10)
8079 {
8080 }
8081 int num23;
8082 if (num23 != 0)
8083 {
8084 float x25 = this.position.X;
8085 float y25 = this.position.Y;
8086 if (!flag10)
8087 {
8088 }
8089 int num24;
8090 if (num24 == 0)
8091 {
8092 int width8 = this.width;
8093 bool wet8 = this.wet;
8094 if (!flag10)
8095 {
8096 }
8097 if (num22 == 0)
8098 {
8099 }
8100 int num25;
8101 Dust dust8;
8102 int num26;
8103 if (num25 == 0)
8104 {
8105 num26 = dust8.alpha;
8107 }
8108 if (num26 == 0)
8109 {
8110 }
8111 int num27;
8112 if (num27 == 0)
8113 {
8114 int num28 = dust8.alpha;
8116 }
8117 int num29 = 1;
8118 dust8.noLight = num29 != 0;
8119 float x26 = dust8.velocity.X;
8120 float y26 = dust8.velocity.Y;
8121 if (num29 == 0)
8122 {
8123 }
8124 float x27 = this.velocity.X;
8125 float y27 = this.velocity.Y;
8126 }
8127 }
8128 }
8129 bool flag11 = this.dryadWard;
8130 if (flag11)
8131 {
8132 float x28 = this.velocity.X;
8133 if (!flag11)
8134 {
8135 }
8136 int num30;
8137 if (num30 == 0)
8138 {
8139 int height = this.height;
8140 float x29 = this.position.X;
8141 float y28 = this.position.Y;
8142 int width9 = this.width;
8143 float x30 = this.velocity.X;
8144 float y29 = this.velocity.Y;
8145 if (!flag11)
8146 {
8147 }
8148 int num31 = 1;
8149 Dust dust9;
8150 dust9.noGravity = num31 != 0;
8151 dust9.noLight = num31 != 0;
8152 float x31 = dust9.velocity.X;
8153 float y30 = dust9.velocity.Y;
8154 if (num31 == 0)
8155 {
8156 }
8158 dust9.velocity.Y = (float)height;
8159 }
8160 }
8161 bool flag12 = this.dryadBane;
8162 if (flag12)
8163 {
8164 if (!flag12)
8165 {
8166 }
8167 int num32;
8168 if (num32 == 0)
8169 {
8170 float x32 = this.position.X;
8171 float y31 = this.position.Y;
8172 int width10 = this.width;
8173 bool wet9 = this.wet;
8174 float x33 = this.velocity.X;
8175 float y32 = this.velocity.Y;
8176 if (!flag12)
8177 {
8178 }
8179 int num33 = 1;
8180 Dust dust10;
8181 dust10.noGravity = num33 != 0;
8182 float x34 = dust10.velocity.X;
8183 float y33 = dust10.velocity.Y;
8184 if (num33 == 0)
8185 {
8186 }
8187 int num34 = 1;
8190 dust10.noLight = num34 != 0;
8191 }
8192 }
8193 bool flag13 = this.loveStruck;
8194 if (flag13)
8195 {
8196 if (!flag13)
8197 {
8198 }
8199 int num35;
8200 if (num35 == 0)
8201 {
8202 if (!flag13)
8203 {
8204 }
8205 float x35 = this.position.X;
8206 float y34 = this.position.Y;
8207 int width11 = this.width;
8208 if (this.height == 0)
8209 {
8210 }
8211 }
8212 }
8213 bool flag14 = this.stinky;
8214 float x37;
8215 float y36;
8216 if (flag14)
8217 {
8218 if (!flag14)
8219 {
8220 }
8221 int num36;
8222 if (num36 == 0)
8223 {
8224 if (!flag14)
8225 {
8226 }
8227 float x36 = this.position.X;
8228 float y35 = this.position.Y;
8229 int width12 = this.width;
8230 bool wet10 = this.wet;
8231 Dust dust11;
8232 x37 = dust11.velocity.X;
8233 y36 = dust11.velocity.Y;
8236 }
8237 }
8238 bool flag15 = this.dripping;
8239 if (flag15)
8240 {
8241 if (!flag15)
8242 {
8243 }
8244 int num37;
8245 if (num37 != 0)
8246 {
8247 float x38 = this.position.X;
8248 float y37 = this.position.Y;
8249 if (!flag15)
8250 {
8251 }
8252 int width13 = this.width;
8253 bool wet11 = this.wet;
8254 int num38;
8255 if (num38 != 0)
8256 {
8257 int num39;
8258 Dust dust12;
8259 int num40;
8260 if (num39 == 0)
8261 {
8262 num40 = dust12.alpha;
8264 }
8265 if (num40 == 0)
8266 {
8267 }
8268 int num41;
8269 if (num41 == 0)
8270 {
8271 int num42 = dust12.alpha;
8273 }
8274 int num43 = 1;
8275 dust12.noLight = num43 != 0;
8276 dust12.noGravity = num43 != 0;
8277 float x39 = dust12.velocity.X;
8278 float y38 = dust12.velocity.Y;
8279 if (num43 == 0)
8280 {
8281 }
8282 return;
8283 }
8284 int num44;
8285 Dust dust13;
8286 int num45;
8287 if (num44 == 0)
8288 {
8289 num45 = dust13.alpha;
8291 }
8292 if (num45 == 0)
8293 {
8294 }
8295 int num46;
8296 if (num46 == 0)
8297 {
8298 int num47 = dust13.alpha;
8300 }
8301 int num48 = 1;
8302 dust13.noLight = num48 != 0;
8303 float x40 = dust13.velocity.X;
8304 float y39 = dust13.velocity.Y;
8305 if (num48 == 0)
8306 {
8307 }
8310 float x41 = this.velocity.X;
8311 float y40 = this.velocity.Y;
8314 }
8315 }
8316 bool flag16 = this.drippingSlime;
8317 if (flag16)
8318 {
8319 if (!flag16)
8320 {
8321 }
8322 int num49;
8323 if (num49 != 0)
8324 {
8325 float x42 = this.position.X;
8326 float y41 = this.position.Y;
8327 if (!flag16)
8328 {
8329 }
8330 int num50;
8331 if (num50 == 0)
8332 {
8333 int width14 = this.width;
8334 bool wet12 = this.wet;
8335 if (!flag16)
8336 {
8337 }
8338 int num51;
8339 Dust dust14;
8340 int num52;
8341 if (num51 == 0)
8342 {
8343 num52 = dust14.alpha;
8345 }
8346 if (num52 == 0)
8347 {
8348 }
8349 int num53;
8350 if (num53 == 0)
8351 {
8352 int num54 = dust14.alpha;
8354 }
8355 int num55 = 1;
8356 dust14.noLight = num55 != 0;
8357 float x43 = dust14.velocity.X;
8358 float y42 = dust14.velocity.Y;
8359 if (num55 == 0)
8360 {
8361 }
8364 float x44 = this.velocity.X;
8365 float y43 = this.velocity.Y;
8368 }
8369 }
8370 }
8371 bool flag17 = this.drippingSparkleSlime;
8372 if (flag17)
8373 {
8374 if (!flag17)
8375 {
8376 }
8377 int num56;
8378 if (num56 != 0)
8379 {
8380 float x45 = this.position.X;
8381 float y44 = this.position.Y;
8382 if (!flag17)
8383 {
8384 }
8385 int num57;
8386 if (num57 == 0)
8387 {
8388 int width15 = this.width;
8389 bool wet13 = this.wet;
8390 if (!flag17)
8391 {
8392 }
8393 int num58;
8394 Dust dust15;
8395 int num59;
8396 if (num58 == 0)
8397 {
8398 num59 = dust15.alpha;
8400 }
8401 if (num59 == 0)
8402 {
8403 }
8404 int num60;
8405 if (num60 == 0)
8406 {
8407 int num61 = dust15.alpha;
8409 }
8410 int num62 = 1;
8411 dust15.noLight = num62 != 0;
8412 float x46 = dust15.velocity.X;
8413 float y45 = dust15.velocity.Y;
8414 if (num62 == 0)
8415 {
8416 }
8419 float x47 = this.velocity.X;
8420 float y46 = this.velocity.Y;
8423 }
8424 }
8425 }
8426 bool flag18 = this.onFrostBurn;
8427 float num67;
8428 if (flag18)
8429 {
8430 if (!flag18)
8431 {
8432 }
8433 float x48 = this.position.X;
8434 float y47 = this.position.Y;
8435 int width16 = this.width;
8436 bool wet14 = this.wet;
8437 float x49 = this.velocity.X;
8438 float y48 = this.velocity.Y;
8439 if (!flag18)
8440 {
8441 }
8442 int num63 = 1;
8443 Dust dust16;
8444 dust16.noGravity = num63 != 0;
8445 float x50 = dust16.velocity.X;
8446 float y49 = dust16.velocity.Y;
8447 if (num63 == 0)
8448 {
8449 }
8452 int num64 = 4;
8453 int num65;
8454 if (num65 == 0)
8455 {
8456 float num66 = dust16.scale;
8458 }
8459 float x51 = this.position.X;
8460 float y50 = this.position.Y;
8461 Lighting.AddLight(1073741824, num64, num67, num67, num67);
8462 }
8463 bool flag19 = this.onFrostBurn2;
8464 if (flag19)
8465 {
8466 if (!flag19)
8467 {
8468 }
8469 float x52 = this.position.X;
8470 float y51 = this.position.Y;
8471 int width17 = this.width;
8472 bool wet15 = this.wet;
8473 float x53 = this.velocity.X;
8474 float y52 = this.velocity.Y;
8475 if (!flag19)
8476 {
8477 }
8478 int num68 = 1;
8479 Dust dust17;
8480 dust17.noGravity = num68 != 0;
8481 float x54 = dust17.velocity.X;
8482 float y53 = dust17.velocity.Y;
8483 if (num68 == 0)
8484 {
8485 }
8488 int num69 = 4;
8489 int num70;
8490 if (num70 == 0)
8491 {
8492 float num71 = dust17.scale;
8494 }
8495 float x55 = this.position.X;
8496 float y54 = this.position.Y;
8497 Lighting.AddLight(1073741824, num69, num67, num67, num67);
8498 }
8499 bool flag20 = this.onFire2;
8500 if (flag20)
8501 {
8502 if (!flag20)
8503 {
8504 }
8505 float x56 = this.position.X;
8506 float y55 = this.position.Y;
8507 int width18 = this.width;
8508 bool wet16 = this.wet;
8509 float x57 = this.velocity.X;
8510 float y56 = this.velocity.Y;
8511 if (!flag20)
8512 {
8513 }
8514 int num72 = 1;
8515 Dust dust18;
8516 dust18.noGravity = num72 != 0;
8517 float x58 = dust18.velocity.X;
8518 float y57 = dust18.velocity.Y;
8519 if (num72 == 0)
8520 {
8521 }
8524 int num73 = 4;
8525 int num74;
8526 if (num74 == 0)
8527 {
8528 float num75 = dust18.scale;
8530 }
8531 float x59 = this.position.X;
8532 float y58 = this.position.Y;
8533 Lighting.AddLight(1073741824, num73, num67, num67, num67);
8534 }
8535 bool flag21 = this.shimmering;
8536 float num76 = this.shimmerTransparency;
8537 float num78;
8538 if (flag21)
8539 {
8541 float num77 = this.shimmerTransparency;
8542 this.GetShimmered();
8543 num78 = this.shimmerTransparency;
8544 int num79 = 16256;
8546 return;
8547 }
8548 if (this.justHit)
8549 {
8551 }
8552 bool[] array = this.buffImmune;
8554 float x60 = this.position.X;
8555 float y59 = this.position.Y;
8556 float x61 = this.netOffset.X;
8557 float y60 = this.netOffset.Y;
8558 if (array == null)
8559 {
8560 }
8562 }
8563 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
Vector2 netOffset
Definition NPC.cs:11129
bool drippingSparkleSlime
Definition NPC.cs:11114
bool dryadBane
Definition NPC.cs:11306
bool onFire2
Definition NPC.cs:11234
bool venom
Definition NPC.cs:11252
bool stinky
Definition NPC.cs:11279
bool poisoned
Definition NPC.cs:11246
bool dryadWard
Definition NPC.cs:11282
bool markedByScytheWhip
Definition NPC.cs:11249
void GetShimmered()
Definition NPC.cs:8566
bool canDisplayBuffs
Definition NPC.cs:11222
bool oiled
Definition NPC.cs:11318
bool onFire
Definition NPC.cs:11231
bool betsysCurse
Definition NPC.cs:11315
float shimmerTransparency
Definition NPC.cs:11204
bool shimmering
Definition NPC.cs:11261
bool[] buffImmune
Definition NPC.cs:11219
bool justHit
Definition NPC.cs:11396
bool dripping
Definition NPC.cs:11108
bool drippingSlime
Definition NPC.cs:11111
bool shadowFlame
Definition NPC.cs:11255
bool onFrostBurn2
Definition NPC.cs:11243
bool daybreak
Definition NPC.cs:11309
bool loveStruck
Definition NPC.cs:11276
bool onFire3
Definition NPC.cs:11237
bool onFrostBurn
Definition NPC.cs:11240

References Terraria.Lighting.AddLight(), Terraria.Dust.alpha, System.array, Terraria.NPC.betsysCurse, Terraria.NPC.buffImmune, Terraria.NPC.canDisplayBuffs, Terraria.NPC.daybreak, Terraria.NPC.dripping, Terraria.NPC.drippingSlime, Terraria.NPC.drippingSparkleSlime, Terraria.NPC.dryadBane, Terraria.NPC.dryadWard, Terraria.NPC.GetShimmered(), Terraria.Entity.height, j__TPar, Terraria.NPC.justHit, Terraria.NPC.loveStruck, Terraria.NPC.markedByScytheWhip, Terraria.NPC.netOffset, Terraria.NPC.oiled, Terraria.NPC.onFire, Terraria.NPC.onFire2, Terraria.NPC.onFire3, Terraria.NPC.onFrostBurn, Terraria.NPC.onFrostBurn2, Terraria.NPC.poisoned, Terraria.Entity.position, Terraria.NPC.shadowFlame, Terraria.NPC.shimmering, Terraria.NPC.shimmerTransparency, Terraria.NPC.stinky, Terraria.Dust.velocity, Terraria.Entity.velocity, Terraria.NPC.venom, Terraria.Entity.wet, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.NPC.UpdateNPC().