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

◆ DrawProj_LightsBane()

void Terraria.Main.DrawProj_LightsBane ( Projectile proj)
inlineprivate

Definition at line 32088 of file Main.cs.

32089 {
32090 //IL_006e: Unknown result type (might be due to invalid IL or missing references)
32091 //IL_0079: Unknown result type (might be due to invalid IL or missing references)
32092 //IL_007e: Unknown result type (might be due to invalid IL or missing references)
32093 //IL_0083: Unknown result type (might be due to invalid IL or missing references)
32094 //IL_0088: Unknown result type (might be due to invalid IL or missing references)
32095 //IL_00af: Unknown result type (might be due to invalid IL or missing references)
32096 //IL_00b4: Unknown result type (might be due to invalid IL or missing references)
32097 //IL_00b5: Unknown result type (might be due to invalid IL or missing references)
32098 //IL_00b6: Unknown result type (might be due to invalid IL or missing references)
32099 //IL_00c0: Unknown result type (might be due to invalid IL or missing references)
32100 //IL_00c5: Unknown result type (might be due to invalid IL or missing references)
32101 //IL_00d1: Unknown result type (might be due to invalid IL or missing references)
32102 //IL_00dc: Unknown result type (might be due to invalid IL or missing references)
32103 //IL_00e1: Unknown result type (might be due to invalid IL or missing references)
32104 //IL_0131: Unknown result type (might be due to invalid IL or missing references)
32105 //IL_0136: Unknown result type (might be due to invalid IL or missing references)
32106 //IL_0138: Unknown result type (might be due to invalid IL or missing references)
32107 //IL_0144: Unknown result type (might be due to invalid IL or missing references)
32108 //IL_0149: Unknown result type (might be due to invalid IL or missing references)
32109 //IL_014e: Unknown result type (might be due to invalid IL or missing references)
32110 //IL_015b: Unknown result type (might be due to invalid IL or missing references)
32111 //IL_015c: Unknown result type (might be due to invalid IL or missing references)
32112 //IL_0163: Unknown result type (might be due to invalid IL or missing references)
32113 //IL_016d: Unknown result type (might be due to invalid IL or missing references)
32114 //IL_0174: Unknown result type (might be due to invalid IL or missing references)
32115 //IL_017f: Unknown result type (might be due to invalid IL or missing references)
32116 //IL_018b: Unknown result type (might be due to invalid IL or missing references)
32117 //IL_0190: Unknown result type (might be due to invalid IL or missing references)
32118 //IL_0192: Unknown result type (might be due to invalid IL or missing references)
32119 //IL_01ad: Unknown result type (might be due to invalid IL or missing references)
32120 //IL_01ae: Unknown result type (might be due to invalid IL or missing references)
32121 //IL_01b5: Unknown result type (might be due to invalid IL or missing references)
32122 //IL_01bf: Unknown result type (might be due to invalid IL or missing references)
32123 //IL_01c6: Unknown result type (might be due to invalid IL or missing references)
32124 //IL_01d1: Unknown result type (might be due to invalid IL or missing references)
32125 //IL_01dd: Unknown result type (might be due to invalid IL or missing references)
32126 //IL_01e2: Unknown result type (might be due to invalid IL or missing references)
32127 //IL_01e4: Unknown result type (might be due to invalid IL or missing references)
32128 //IL_01ff: Unknown result type (might be due to invalid IL or missing references)
32129 //IL_0200: Unknown result type (might be due to invalid IL or missing references)
32130 //IL_0206: Unknown result type (might be due to invalid IL or missing references)
32131 //IL_0211: Unknown result type (might be due to invalid IL or missing references)
32132 //IL_0213: Unknown result type (might be due to invalid IL or missing references)
32133 //IL_022b: Unknown result type (might be due to invalid IL or missing references)
32134 //IL_022c: Unknown result type (might be due to invalid IL or missing references)
32135 //IL_0232: Unknown result type (might be due to invalid IL or missing references)
32136 //IL_023d: Unknown result type (might be due to invalid IL or missing references)
32137 //IL_023f: Unknown result type (might be due to invalid IL or missing references)
32138 //IL_0257: Unknown result type (might be due to invalid IL or missing references)
32139 //IL_0258: Unknown result type (might be due to invalid IL or missing references)
32140 //IL_025e: Unknown result type (might be due to invalid IL or missing references)
32141 //IL_0269: Unknown result type (might be due to invalid IL or missing references)
32142 //IL_026b: Unknown result type (might be due to invalid IL or missing references)
32143 //IL_0283: Unknown result type (might be due to invalid IL or missing references)
32144 //IL_0284: Unknown result type (might be due to invalid IL or missing references)
32145 //IL_028a: Unknown result type (might be due to invalid IL or missing references)
32146 //IL_0295: Unknown result type (might be due to invalid IL or missing references)
32147 //IL_0297: Unknown result type (might be due to invalid IL or missing references)
32148 //IL_02c9: Unknown result type (might be due to invalid IL or missing references)
32149 //IL_02de: Unknown result type (might be due to invalid IL or missing references)
32150 //IL_02df: Unknown result type (might be due to invalid IL or missing references)
32151 //IL_02e5: Unknown result type (might be due to invalid IL or missing references)
32152 //IL_02f0: Unknown result type (might be due to invalid IL or missing references)
32153 //IL_02f2: Unknown result type (might be due to invalid IL or missing references)
32154 //IL_030a: Unknown result type (might be due to invalid IL or missing references)
32155 //IL_030b: Unknown result type (might be due to invalid IL or missing references)
32156 //IL_0311: Unknown result type (might be due to invalid IL or missing references)
32157 //IL_031c: Unknown result type (might be due to invalid IL or missing references)
32158 //IL_031e: Unknown result type (might be due to invalid IL or missing references)
32159 //IL_0350: Unknown result type (might be due to invalid IL or missing references)
32160 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
32161 //IL_0022: Unknown result type (might be due to invalid IL or missing references)
32162 //IL_0029: Unknown result type (might be due to invalid IL or missing references)
32163 //IL_0030: Unknown result type (might be due to invalid IL or missing references)
32164 //IL_0037: Unknown result type (might be due to invalid IL or missing references)
32165 //IL_003e: Unknown result type (might be due to invalid IL or missing references)
32166 //IL_0045: Unknown result type (might be due to invalid IL or missing references)
32167 //IL_0051: Expected O, but got Unknown
32168 spriteBatch.End();
32169 if (_multiplyBlendState == null)
32170 {
32171 _ = BlendState.AlphaBlend;
32172 _ = BlendState.Additive;
32174 {
32181 };
32182 }
32185 Vector2 position = proj.Center - screenPosition;
32186 LoadProjectile(proj.type);
32188 Rectangle rectangle = asset.Frame(1, 13, 0, proj.frame);
32189 Vector2 vector = rectangle.Size() / 2f;
32190 Vector2 vector2 = new Vector2(0.7f, 0.7f) * proj.scale;
32191 float num = Utils.Remap(proj.frame, 0f, 3f, 0f, 1f) * Utils.Remap(proj.frame, 4f, 12f, 1f, 0f);
32192 Rectangle value = asset.Frame(1, 13, 0, 12);
32193 Vector2 origin = vector + new Vector2(0f, 0f);
32194 spriteBatch.Draw(asset.Value, position, (Rectangle?)value, Color.White * 0.3f * num, proj.rotation, origin, new Vector2(1f, 6f) * vector2, (SpriteEffects)0, 0f);
32195 spriteBatch.Draw(asset.Value, position, (Rectangle?)value, Color.White * 0.3f * num, proj.rotation, origin, new Vector2(2f, 2f) * vector2, (SpriteEffects)0, 0f);
32196 spriteBatch.Draw(asset.Value, position, (Rectangle?)rectangle, Color.White, proj.rotation, vector, vector2, (SpriteEffects)0, 0f);
32197 spriteBatch.Draw(asset.Value, position, (Rectangle?)rectangle, Color.White, proj.rotation, vector, vector2, (SpriteEffects)0, 0f);
32198 spriteBatch.Draw(asset.Value, position, (Rectangle?)rectangle, Color.White, proj.rotation, vector, vector2, (SpriteEffects)0, 0f);
32199 spriteBatch.Draw(asset.Value, position, (Rectangle?)rectangle, Color.White, proj.rotation, vector, vector2, (SpriteEffects)0, 0f);
32200 spriteBatch.End();
32201 spriteBatch.Begin((SpriteSortMode)0, BlendState.Additive, DefaultSamplerState, DepthStencilState.None, Rasterizer, (Effect)null, Transform);
32202 spriteBatch.Draw(asset.Value, position, (Rectangle?)rectangle, Color.Magenta, proj.rotation, vector, vector2, (SpriteEffects)0, 0f);
32203 spriteBatch.Draw(asset.Value, position, (Rectangle?)rectangle, Color.Magenta, proj.rotation, vector, vector2, (SpriteEffects)0, 0f);
32204 spriteBatch.End();
32205 spriteBatch.Begin((SpriteSortMode)0, BlendState.AlphaBlend, DefaultSamplerState, DepthStencilState.None, Rasterizer, (Effect)null, Transform);
32206 }
static Asset< Texture2D >[] Projectile
void LoadProjectile(int i)
Definition Main.cs:75397
static SpriteBatch spriteBatch
Definition Main.cs:1043
static Vector2 screenPosition
The position of the top left corner of the screen in world coordinates. Modify in M:Terraria....
Definition Main.cs:1864
static Matrix Transform
Definition Main.cs:2932
static BlendState _multiplyBlendState
Definition Main.cs:2502
static SamplerState DefaultSamplerState
Definition Main.cs:2978
static RasterizerState Rasterizer
Definition Main.cs:580

References Terraria.Main._multiplyBlendState, Terraria.Main.DefaultSamplerState, Terraria.Main.LoadProjectile(), Terraria.GameContent.TextureAssets.Projectile, Terraria.Main.Rasterizer, Terraria.Utils.Remap(), Terraria.Main.screenPosition, Terraria.Main.spriteBatch, and Terraria.Main.Transform.

Referenced by Terraria.Main.DrawProj_DrawSpecialProjs().

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