50948 {
50949
50950
50951
50952
50953
50954
50955
50956
50957
50958
50959
50960
50961
50962
50963
50964
50965
50966
50967
50968
50969
50970
50971
50972
50973
50974
50975
50976
50977
50978
50979
50980
50981
50982
50983
50984
50985
50986
50987
50988
50989
50990
50992 {
50993 float num = (float)Main.rand.Next(90, 111) * 0.01f;
50994 num *= (Main.essScale + 0.5f) / 2
f;
50996 }
50997 else if (
type == 3191)
50998 {
50999 float num9 = (float)Main.rand.Next(90, 111) * 0.01f;
51000 num9 *= (Main.essScale + 0.5f) / 2
f;
51002 }
51003 else if (
type == 520 ||
type == 3454)
51004 {
51005 float num10 = (float)Main.rand.Next(90, 111) * 0.01f;
51006 num10 *= Main.essScale;
51008 }
51009 else if (
type == 521 ||
type == 3455)
51010 {
51011 float num11 = (float)Main.rand.Next(90, 111) * 0.01f;
51012 num11 *= Main.essScale;
51014 }
51015 else if (
type == 547 ||
type == 3453)
51016 {
51017 float num12 = (float)Main.rand.Next(90, 111) * 0.01f;
51018 num12 *= Main.essScale;
51020 }
51021 else if (
type == 548)
51022 {
51023 float num13 = (float)Main.rand.Next(90, 111) * 0.01f;
51024 num13 *= Main.essScale;
51026 }
51027 else if (
type == 575)
51028 {
51029 float num14 = (float)Main.rand.Next(90, 111) * 0.01f;
51030 num14 *= Main.essScale;
51032 }
51033 else if (
type == 549)
51034 {
51035 float num15 = (float)Main.rand.Next(90, 111) * 0.01f;
51036 num15 *= Main.essScale;
51038 }
51040 {
51041 float num16 = (float)Main.rand.Next(90, 111) * 0.01f;
51042 num16 *= Main.essScale * 0.5f;
51044 }
51046 {
51047 float num2 = (float)Main.rand.Next(90, 111) * 0.01f;
51048 num2 *= Main.essScale * 0.5f;
51050 }
51051 else if (
type == 522)
51052 {
51053 float num3 = (float)Main.rand.Next(90, 111) * 0.01f;
51054 num3 *= Main.essScale * 0.2f;
51056 }
51057 else if (
type == 1332)
51058 {
51059 float num4 = (float)Main.rand.Next(90, 111) * 0.01f;
51060 num4 *= Main.essScale * 0.2f;
51062 }
51063 else if (
type == 3456)
51064 {
51065 Lighting.AddLight(
base.Center,
new Vector3(0.2
f, 0.4
f, 0.5
f) * Main.essScale);
51066 }
51067 else if (
type == 3457)
51068 {
51069 Lighting.AddLight(
base.Center,
new Vector3(0.4
f, 0.2
f, 0.5
f) * Main.essScale);
51070 }
51071 else if (
type == 3458)
51072 {
51073 Lighting.AddLight(
base.Center,
new Vector3(0.5
f, 0.4
f, 0.2
f) * Main.essScale);
51074 }
51075 else if (
type == 3459)
51076 {
51077 Lighting.AddLight(
base.Center,
new Vector3(0.2
f, 0.2
f, 0.5
f) * Main.essScale);
51078 }
51079 else if (
type == 501)
51080 {
51081 if (Main.rand.Next(6) == 0)
51082 {
51085 obj.velocity *= 0.3f;
51086 Main.dust[
num5].scale *= 0.5f;
51087 }
51088 }
51089 else if (
type == 3822)
51090 {
51091 Lighting.AddLight(
base.Center, 0.1f, 0.3f, 0.1f);
51092 }
51093 else if (
type == 1970)
51094 {
51095 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.75
f, 0
f, 0.75
f);
51096 }
51097 else if (
type == 1972)
51098 {
51099 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0
f, 0
f, 0.75
f);
51100 }
51101 else if (
type == 1971)
51102 {
51103 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.75
f, 0.75
f, 0
f);
51104 }
51105 else if (
type == 1973)
51106 {
51107 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0
f, 0.75
f, 0
f);
51108 }
51109 else if (
type == 1974)
51110 {
51111 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.75
f, 0
f, 0
f);
51112 }
51113 else if (
type == 1975)
51114 {
51115 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.75
f, 0.75
f, 0.75
f);
51116 }
51117 else if (
type == 1976)
51118 {
51119 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.75
f, 0.375
f, 0
f);
51120 }
51121 else if (
type == 2679)
51122 {
51123 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.6
f, 0
f, 0.6
f);
51124 }
51125 else if (
type == 2687)
51126 {
51127 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0
f, 0
f, 0.6
f);
51128 }
51129 else if (
type == 2689)
51130 {
51131 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.6
f, 0.6
f, 0
f);
51132 }
51133 else if (
type == 2683)
51134 {
51135 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0
f, 0.6
f, 0
f);
51136 }
51137 else if (
type == 2685)
51138 {
51139 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.6
f, 0
f, 0
f);
51140 }
51141 else if (
type == 2681)
51142 {
51143 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.6
f, 0.6
f, 0.6
f);
51144 }
51145 else if (
type == 2677)
51146 {
51147 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.6
f, 0.375
f, 0
f);
51148 }
51149 else if (
type == 105)
51150 {
51152 {
51153 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 1
f, 0.95
f, 0.8
f);
51154 }
51155 }
51156 else if (
type == 2701)
51157 {
51158 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.7
f, 0.65
f, 0.55
f);
51159 }
51161 {
51164 {
51166 }
51167 }
51168 else if (
type == 3114)
51169 {
51171 {
51172 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 1
f, 0
f, 1
f);
51173 }
51174 }
51175 else if (
type == 1245)
51176 {
51178 {
51179 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 1
f, 0.5
f, 0
f);
51180 }
51181 }
51182 else if (
type == 433)
51183 {
51185 {
51186 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.5
f * Main.demonTorch + 1
f * (1
f - Main.demonTorch), 0.3f, 1
f * Main.demonTorch + 0.5f * (1
f - Main.demonTorch));
51187 }
51188 }
51189 else if (
type == 523)
51190 {
51191 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.85
f, 1.2
f, 0.7
f);
51192 }
51193 else if (
type == 974)
51194 {
51196 {
51197 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.75
f, 0.85
f, 1.4
f);
51198 }
51199 }
51200 else if (
type == 1333)
51201 {
51202 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 1.25
f, 1.25
f, 0.7
f);
51203 }
51204 else if (
type == 4383)
51205 {
51207 {
51208 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 1.4
f, 0.85
f, 0.55
f);
51209 }
51210 }
51211 else if (
type == 5293)
51212 {
51214 {
51215 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.25
f, 0.65
f, 1
f);
51216 }
51217 }
51218 else if (
type == 5353)
51219 {
51221 {
51222 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.81
f, 0.72
f, 1
f);
51223 }
51224 }
51225 else if (
type == 4384)
51226 {
51227 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.25
f, 1.3
f, 0.8
f);
51228 }
51229 else if (
type == 3045)
51230 {
51231 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), (
float)Main.DiscoR / 255
f, (float)Main.DiscoG / 255
f, (
float)Main.DiscoB / 255
f);
51232 }
51233 else if (
type == 3004)
51234 {
51235 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.95
f, 0.65
f, 1.3
f);
51236 }
51237 else if (
type == 2274)
51238 {
51240 float g = 1.3499999f;
51243 {
51244 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f),
r,
g,
b);
51245 }
51246 }
51247 else if (
type >= 427 &&
type <= 432)
51248 {
51250 {
51256 {
51260 }
51262 {
51266 }
51268 {
51272 }
51274 {
51278 }
51280 {
51284 }
51286 {
51290 }
51292 }
51293 }
51295 {
51296 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.4
f, 0.16
f, 0.36
f);
51297 }
51299 {
51300 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0
f, 0.36
f, 0.4
f);
51301 }
51303 {
51304 Lighting.AddLight((
int)((position.X + (float)(
width / 2)) / 16
f), (int)((
position.Y + (
float)(
height / 2)) / 16
f), 0.5
f, 0.25
f, 0.05
f);
51305 }
51307 {
51308 Lighting.AddLight(
base.Center, 0.3f, 0.3f, 0.2f);
51309 }
51310 else if (
type == 41)
51311 {
51313 {
51314 Lighting.AddLight((
int)((position.X + (float)
width) / 16
f), (
int)((position.Y + (float)(
height / 2)) / 16
f), 1
f, 0.75f, 0.55f);
51315 }
51316 }
51317 else if (
type == 988)
51318 {
51320 {
51321 Lighting.AddLight((
int)((position.X + (float)
width) / 16
f), (
int)((position.Y + (float)(
height / 2)) / 16
f), 0.35f, 0.65f, 1
f);
51322 }
51323 }
51324 else if (
type == 1326)
51325 {
51326 Lighting.AddLight((
int)base.Center.X / 16, (int)
base.Center.Y / 16, 1
f, 0.1f, 0.8f);
51327 }
51328 else if (
type == 5335)
51329 {
51330 Lighting.AddLight((
int)base.Center.X / 16, (int)
base.Center.Y / 16, 0.85f, 0.1f, 0.8f);
51331 }
51332 else if (
type >= 5140 &&
type <= 5146)
51333 {
51338 {
51339 case 5140:
51343 break;
51344 case 5141:
51348 break;
51349 case 5142:
51353 break;
51354 case 5143:
51358 break;
51359 case 5144:
51363 break;
51364 case 5145:
51368 break;
51369 case 5146:
51370 num6 *= (float)Main.DiscoR / 255
f;
51371 num7 *= (float)Main.DiscoG / 255
f;
51372 num8 *= (float)Main.DiscoB / 255
f;
51373 break;
51374 }
51376 }
51377 else if (
type == 282)
51378 {
51380 }
51381 else if (
type == 286)
51382 {
51384 }
51385 else if (
type == 3112)
51386 {
51388 }
51389 else if (
type == 4776)
51390 {
51392 }
51393 else if (
type == 3002)
51394 {
51396 }
51397 else if (
type == 331)
51398 {
51400 }
51401 else if (
type == 183)
51402 {
51404 }
51405 else if (
type == 75)
51406 {
51409 {
51410 Dust dust = Dust.NewDustPerfect(
base.Center +
new Vector2(0
f, (
float)
height * 0.2
f) + Main.rand.NextVector2CircularEdge(
width, (
float)
height * 0.6f) * (0.3f + Main.rand.NextFloat() * 0.5f), 228, (Vector2?)
new Vector2(0
f, (0
f - Main.rand.NextFloat()) * 0.3f - 1.5f), 127,
default(Color), 1
f);
51411 dust.scale = 0.5f;
51412 dust.fadeIn = 1.1f;
51413 dust.noGravity = true;
51414 dust.noLight = true;
51415 }
51416 }
51418 {
51421 {
51422 Dust
dust2 = Dust.NewDustPerfect(
base.Center +
new Vector2(0
f, (
float)
height * -0.1
f) + Main.rand.NextVector2CircularEdge((
float)
width * 0.6f, (
float)
height * 0.6f) * (0.3f + Main.rand.NextFloat() * 0.5f), 279, (Vector2?)
new Vector2(0
f, (0
f - Main.rand.NextFloat()) * 0.3f - 1.5f), 127,
default(Color), 1
f);
51423 dust2.scale = 0.5f;
51424 dust2.fadeIn = 1.1f;
51425 dust2.noGravity = true;
51426 dust2.noLight = true;
51427 dust2.alpha = 0;
51428 }
51429 }
51430 }
bool wet
The Entity is currently in water. Projectile: Affects movement speed and some projectiles die when ...
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
static bool[] Torches
If true for a given item type (F:Terraria.Item.type), then that item is a torch. Torches can be aut...
static bool[] WaterTorches
If true for a given item type (F:Terraria.Item.type), then that item is a water torch....
static bool[] BossBag
Set for all boss bags. Causes bags to drop dev armor and creates a glow around the item when dropped ...
int createTile
The ID of the tile this item places on use. Either a T:Terraria.ID.TileID entry or M:Terraria....
int placeStyle
The style of the tile being placed. Used for tiles that have a different look depending on the item u...
Color color
Draws the item sprite with a colored tint. Gel and Sharkfin use this to spawn different colored items...
int timeSinceItemSpawned
A value that increases every tick an item is in the world. Defaults to the value in F:Terraria....
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....