Projectile handling
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user