projectile fix

This commit is contained in:
dingo
2026-01-19 11:07:24 -05:00
parent 11628617ae
commit 01a19056bb
7 changed files with 3514 additions and 32 deletions
+17 -5
View File
@@ -169,22 +169,34 @@ public class DungeonItemDefinition
/// <summary>
/// Whether projectile flies linearly (true) or spins (false)
/// Linear projectiles use ProjectileFrontFrame and ProjectileBackFrame
/// Linear projectiles use front/back coordinates
/// Spinning projectiles rotate as they fly
/// </summary>
public bool IsLinearProjectile { get; set; } = false;
/// <summary>
/// Frame index for front of linear projectile (arrow tip pointing forward)
/// X coordinate of arrow tip (front) in the sprite image
/// Only used when IsLinearProjectile = true
/// </summary>
public int ProjectileFrontFrame { get; set; } = 0;
public int ProjectileFrontX { get; set; } = 0;
/// <summary>
/// Frame index for back of linear projectile (arrow tail/feathers)
/// Y coordinate of arrow tip (front) in the sprite image
/// Only used when IsLinearProjectile = true
/// </summary>
public int ProjectileBackFrame { get; set; } = 0;
public int ProjectileFrontY { get; set; } = 0;
/// <summary>
/// X coordinate of arrow tail (back) in the sprite image
/// Only used when IsLinearProjectile = true
/// </summary>
public int ProjectileBackX { get; set; } = 0;
/// <summary>
/// Y coordinate of arrow tail (back) in the sprite image
/// Only used when IsLinearProjectile = true
/// </summary>
public int ProjectileBackY { get; set; } = 0;
// Visuals
/// <summary>