|
TModLoader v1.4.4.9
TModLoader source code documentation
|
| float Terraria.Projectile.scale = 1f |
Scales how large the projectile will be drawn. Will also affect the hitbox (F:Terraria.Entity.width, F:Terraria.Entity.height) if assigned in SetDefaults. If changed elsewhere it will not affect the hitbox, so that will have to be adjusted manually via code in that situation if needed.
Due to legacy code, scale does not affect the draw origin correctly, resulting in the projectile not rotating around the hitbox center correctly nor being drawn correctly centered on the hitbox. For small changes (0.8f to 1.2f) the effect is unnoticeable, but it is advised to avoid large values unless the projectile is manually drawn with the correct approach via M:Terraria.ModLoader.ModProjectile.PreDraw(Microsoft.Xna.Framework.Color@).
Defaults to 1f.
Definition at line 135 of file Projectile.cs.
Referenced by Terraria.Projectile.AI_121_StardustDragon(), Terraria.Projectile.Colliding(), Terraria.Projectile.CutTiles(), Terraria.Projectile.Damage(), Terraria.Projectile.DefaultToWhip(), Terraria.Projectile.HandleMovement(), Terraria.Projectile.SetDefaults(), and Terraria.Projectile.UpdateEnchantmentVisuals().