Projectile handling

This commit is contained in:
dingo
2026-01-19 10:46:37 -05:00
parent f5a5d54ae4
commit 11628617ae
8 changed files with 3347 additions and 9 deletions
+19
View File
@@ -167,6 +167,25 @@ public class DungeonItemDefinition
/// </summary>
public bool IsThrowable { get; set; } = false;
/// <summary>
/// Whether projectile flies linearly (true) or spins (false)
/// Linear projectiles use ProjectileFrontFrame and ProjectileBackFrame
/// 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)
/// Only used when IsLinearProjectile = true
/// </summary>
public int ProjectileFrontFrame { get; set; } = 0;
/// <summary>
/// Frame index for back of linear projectile (arrow tail/feathers)
/// Only used when IsLinearProjectile = true
/// </summary>
public int ProjectileBackFrame { get; set; } = 0;
// Visuals
/// <summary>
/// Path to the item's sprite image on CDN (e.g., "textures/items/sword_iron.png")