21000 {
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21032 {
21034 }
21036 {
21039 }
21041 Vector2
vector =
default(Vector2);
21042 ((Vector2)(
ref vector)).
_002Ector((
float)Main.screenWidth, (float)Main.screenHeight);
21044 if (((Rectangle)(
ref hitbox)).Intersects(Utils.CenteredRectangle(Main.screenPosition +
vector / 2
f,
vector +
new Vector2(400
f))) && Main.rand.Next(6) == 0)
21045 {
21046 Gore.NewGore(
position,
velocity * 0.2
f, Utils.SelectRandom<
int>(Main.rand, 16, 17, 17, 17));
21047 }
21048 for (int i = 0; i < 2; i++)
21049 {
21050 if (Main.rand.Next(8) == 0)
21051 {
21054 dust.velocity *= 0.25f;
21055 dust.scale = 1.3f;
21056 dust.noGravity = true;
21057 dust.velocity +=
velocity.RotatedBy((
float)Math.PI / 8
f * (1
f - (float)(2 * i))) * 0.2f;
21058 }
21059 }
21060 }
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 ...
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
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 readonly SoundStyle Item9
int alpha
How transparent to draw this projectile. 0 to 255. 255 is completely transparent. ExampleBulletsets...
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...