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

◆ DoEyebrellaRainEffect()

void Terraria.Player.DoEyebrellaRainEffect ( )
inlineprivate

Definition at line 12198 of file Player.cs.

12199 {
12200 //IL_001e: Unknown result type (might be due to invalid IL or missing references)
12201 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
12202 //IL_003a: Unknown result type (might be due to invalid IL or missing references)
12203 //IL_005f: Unknown result type (might be due to invalid IL or missing references)
12204 //IL_0064: Unknown result type (might be due to invalid IL or missing references)
12205 //IL_0069: Unknown result type (might be due to invalid IL or missing references)
12206 //IL_006a: Unknown result type (might be due to invalid IL or missing references)
12207 //IL_0078: Unknown result type (might be due to invalid IL or missing references)
12208 //IL_00d0: Unknown result type (might be due to invalid IL or missing references)
12209 //IL_00d1: Unknown result type (might be due to invalid IL or missing references)
12210 if (Main.netMode == 2 || Main.dedServ || Main.rand.Next(4) != 0)
12211 {
12212 return;
12213 }
12214 Vector2 vector = MountedCenter - new Vector2(0f, (float)height * 0.5f) + new Vector2((-0.5f + Main.rand.NextFloat()) * (float)(width + 18), -30f);
12215 int num = (int)(vector.X / 16f);
12216 int num2 = (int)(vector.Y / 16f);
12217 if (WorldGen.InWorld(num, num2))
12218 {
12219 Tile tile = Main.tile[num, num2];
12220 if (tile != null && !WorldGen.SolidTile3(tile) && tile.liquid <= 0)
12221 {
12222 Vector2 val = default(Vector2);
12223 ((Vector2)(ref val))._002Ector(Main.windSpeedCurrent * 3f, 9f);
12224 Rain.NewRainForced(vector, val);
12225 }
12226 }
12227 }
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
Vector2 MountedCenter
Returns the player's center adjusted for mount and step stool usage. Typically used in conjunction wi...
Definition Player.cs:3692

References Terraria.Main.dedServ, Terraria.Entity.height, Terraria.WorldGen.InWorld(), Terraria.Player.MountedCenter, Terraria.Main.netMode, Terraria.Rain.NewRainForced(), Terraria.Main.rand, Terraria.WorldGen.SolidTile3(), Terraria.Main.tile, Terraria.Entity.width, and Terraria.Main.windSpeedCurrent.

Referenced by Terraria.Player.UpdateEquips().

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