Use typed item names in weapon diagnostics

This commit is contained in:
Meta Vens 2026-06-14 11:01:49 +01:00
commit 746c686150
4 changed files with 5 additions and 3 deletions

View file

@ -60,6 +60,6 @@ public class GuidedProjectileManager : InstantWeaponEffectManager
p.TopSpeed = item.Evaluate(guidance.MissileVelocity);
p.TargetPosition = () => source.Entity.Position + length( (float3)source.LookAtPoint.position - source.Entity.Position) * source.Entity.LookDirection;
}
else Debug.LogError($"Weapon {item.Data.Name} linked to {name} effect, but is not a Launcher!");
else Debug.LogError($"Weapon {item.RuntimeItem?.Name ?? "Unknown item"} linked to {name} effect, but is not a Launcher!");
}
}