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

◆ FairyEffects()

static void Terraria.NPC.FairyEffects ( Vector2 Position,
int type )
inlinestatic

Definition at line 51078 of file NPC.cs.

51079 {
51080 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
51081 //IL_0005: Unknown result type (might be due to invalid IL or missing references)
51082 //IL_0006: Unknown result type (might be due to invalid IL or missing references)
51083 //IL_000b: Unknown result type (might be due to invalid IL or missing references)
51084 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
51085 //IL_0017: Unknown result type (might be due to invalid IL or missing references)
51086 //IL_0018: Unknown result type (might be due to invalid IL or missing references)
51087 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
51088 //IL_0022: Unknown result type (might be due to invalid IL or missing references)
51089 //IL_0027: Unknown result type (might be due to invalid IL or missing references)
51090 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
51091 //IL_002d: Unknown result type (might be due to invalid IL or missing references)
51092 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
51093 //IL_0038: Unknown result type (might be due to invalid IL or missing references)
51094 //IL_0042: Unknown result type (might be due to invalid IL or missing references)
51095 //IL_0047: Unknown result type (might be due to invalid IL or missing references)
51096 //IL_0066: Unknown result type (might be due to invalid IL or missing references)
51097 //IL_0067: Unknown result type (might be due to invalid IL or missing references)
51098 //IL_0072: Unknown result type (might be due to invalid IL or missing references)
51099 //IL_0086: Unknown result type (might be due to invalid IL or missing references)
51100 //IL_0090: Unknown result type (might be due to invalid IL or missing references)
51101 //IL_0095: Unknown result type (might be due to invalid IL or missing references)
51102 //IL_010d: Unknown result type (might be due to invalid IL or missing references)
51103 //IL_0114: Unknown result type (might be due to invalid IL or missing references)
51104 //IL_00a2: Unknown result type (might be due to invalid IL or missing references)
51105 //IL_00ac: Unknown result type (might be due to invalid IL or missing references)
51106 //IL_00b1: Unknown result type (might be due to invalid IL or missing references)
51107 //IL_00c0: Unknown result type (might be due to invalid IL or missing references)
51108 //IL_00ca: Unknown result type (might be due to invalid IL or missing references)
51109 //IL_00cf: Unknown result type (might be due to invalid IL or missing references)
51110 Color value = Color.HotPink;
51111 Color value2 = Color.LightPink;
51112 int num = 4;
51113 if (type == 1)
51114 {
51115 value = Color.LimeGreen;
51116 value2 = Color.LightSeaGreen;
51117 }
51118 if (type == 2)
51119 {
51120 value = Color.RoyalBlue;
51121 value2 = Color.LightBlue;
51122 }
51123 for (int i = 0; i < 40; i++)
51124 {
51125 Dust dust = Dust.NewDustDirect(Position - new Vector2((float)num) * 0.5f, num + 4, num + 4, 278, 0f, 0f, 200, Color.Lerp(value, value2, Main.rand.NextFloat()), 0.65f);
51126 dust.velocity *= 1.5f;
51127 if (i >= 30)
51128 {
51129 dust.velocity *= 3.5f;
51130 }
51131 else if (i >= 20)
51132 {
51133 dust.velocity *= 2f;
51134 }
51135 dust.fadeIn = (float)Main.rand.Next(0, 17) * 0.1f;
51136 dust.noGravity = true;
51137 }
51138 SoundEngine.PlaySound(SoundID.Item4, (int)Position.X, (int)Position.Y);
51139 }
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 ...
static readonly SoundStyle Item4
Definition SoundID.cs:685
float value
How many copper coins the NPC will drop when killed (100 copper coins = 1 silver coin etc....
Definition NPC.cs:1156
int type
The NPC ID of this NPC. The NPC ID is a unique number assigned to each NPC loaded into the game....
Definition NPC.cs:990

References Terraria.ID.SoundID.Item4, Terraria.Dust.NewDustDirect(), Terraria.Audio.SoundEngine.PlaySound(), Terraria.Main.rand, Terraria.NPC.type, and Terraria.NPC.value.

Referenced by Terraria.NPC.AI_112_FairyCritter(), and Terraria.MessageBuffer.GetData().

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