namespace Sasalka; [GameResource( "Ammo Item Definition", "ammo", "", Category = "Sasalka", Icon = "inventory_2" )] public class AmmoItemDefinition : BaseItemDefinition { [Property, Category( "Ammo Properties" )] public string AmmoType { get; set; } = "Pistol"; [Property, Category( "Ammo Properties" )] public float Damage { get; set; } = 10f; [Property, Category( "Ammo Properties" )] public float Penetration { get; set; } = 0f; [Property, Category( "Ammo Properties" )] public bool IsExplosive { get; set; } = false; [Property, Category( "Ammo Properties" )] public float ExplosionRadius { get; set; } = 0f; [Property, Category( "Ammo Properties" )] public string CompatibleWeapons { get; set; } = ""; public override ItemCategory Category => ItemCategory.Ammo; public override bool CanUse() => false; // Патроны нельзя использовать напрямую public bool IsCompatibleWith( string ammoType ) { return AmmoType == ammoType; } }