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

◆ UpdateFogMachineCloud()

void Terraria.Gore.UpdateFogMachineCloud ( )
inlineprivate

Definition at line 245 of file Gore.cs.

246 {
247 //IL_002d: Unknown result type (might be due to invalid IL or missing references)
248 //IL_003c: Unknown result type (might be due to invalid IL or missing references)
249 //IL_0041: Unknown result type (might be due to invalid IL or missing references)
250 //IL_0046: Unknown result type (might be due to invalid IL or missing references)
251 //IL_004b: Unknown result type (might be due to invalid IL or missing references)
252 //IL_0051: Unknown result type (might be due to invalid IL or missing references)
253 //IL_0057: Unknown result type (might be due to invalid IL or missing references)
254 //IL_00d9: Unknown result type (might be due to invalid IL or missing references)
255 //IL_00df: Unknown result type (might be due to invalid IL or missing references)
256 //IL_00e4: Unknown result type (might be due to invalid IL or missing references)
257 //IL_00e9: Unknown result type (might be due to invalid IL or missing references)
259 if (timeLeft <= 0)
260 {
261 active = false;
262 return;
263 }
264 bool flag = false;
265 Point point = (position + new Vector2(15f, 0f)).ToTileCoordinates();
266 if (WorldGen.SolidTile(Main.tile[point.X, point.Y]))
267 {
268 flag = true;
269 }
270 if (timeLeft <= 240)
271 {
272 flag = true;
273 }
274 if (!flag)
275 {
276 if (alpha > 225 && Main.rand.Next(2) == 0)
277 {
278 alpha--;
279 }
280 }
281 else
282 {
283 if (Main.rand.Next(2) == 0)
284 {
285 alpha++;
286 }
287 if (alpha >= 255)
288 {
289 active = false;
290 return;
291 }
292 }
294 }
Vector2 velocity
Definition Gore.cs:20
Vector2 position
Definition Gore.cs:18
int type
Definition Gore.cs:28
bool active
Definition Gore.cs:32
int alpha
Definition Gore.cs:26
int timeLeft
Definition Gore.cs:36
static int[] DisappearSpeed
The value subtracted from F:Terraria.Gore.timeLeft every tick for a given gore type (F:Terraria....
Definition GoreID.cs:29

References Terraria.Gore.active, Terraria.Gore.alpha, Terraria.ID.GoreID.Sets.DisappearSpeed, Terraria.Gore.position, Terraria.Main.rand, Terraria.WorldGen.SolidTile(), Terraria.Main.tile, Terraria.Gore.timeLeft, Terraria.Gore.type, and Terraria.Gore.velocity.

Referenced by Terraria.Gore.Update().

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