48173 {
48174
48175
48176
48177
48178
48179
48180
48181
48182
48183
48184
48185
48186
48187
48188
48189
48190
48191
48192
48193
48194
48195
48196
48197
48198
48199
48200
48201
48202
48203
48204
48205
48206
48207
48208
48209
48210
48211
48212
48213 Point
p =
base.Center.ToTileCoordinates();
48214 Vector2
vector =
p.ToVector2();
48216 Vector2
zero = Vector2.Zero;
48220 {
48225 }
48228 {
48232 {
48234 }
48235 }
48237 {
48238 for (
int i =
p.X -
num; i < p.X +
num + 1; i++)
48239 {
48240 for (
int j =
p.Y -
num;
j < p.Y +
num + 1;
j++)
48241 {
48243 {
48244 Vector2 v =
vector -
new Vector2((
float)i, (
float)
j);
48245 Vector2
vector2 = v.SafeNormalize(Vector2.Zero) *
Math.Max((
float)
num - ((Vector2)(
ref v)).Length(), 0
f);
48249 }
48250 }
48251 }
48253 {
48255 }
48256 if (((Vector2)(
ref zero)).Length() > 1
f)
48257 {
48259 }
48260 }
48263 {
48266 }
48267 }
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.
static readonly SoundStyle Item28
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
bool netUpdate
Set manually to true in M:Terraria.ModLoader.ModProjectile.AI once to make it sync its current F:Terr...
int frame
The frame number in the spritesheet that this projectile will be drawn with. Assign in M:Terraria....
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
int timeLeft
Time in ticks before this projectile will naturally despawn. Each update timeLeft is decreased by 1...
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...
int frameCounter
Used as a timer to decide when to change F:Terraria.Projectile.frame. Defaults to 0.