Use typed item names in weapon diagnostics
This commit is contained in:
parent
477e1b2ed5
commit
746c686150
4 changed files with 5 additions and 3 deletions
Binary file not shown.
|
|
@ -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!");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public class WeaponGroupAssignment : MonoBehaviour
|
|||
public void Inspect(EquippedItem item)
|
||||
{
|
||||
var weapon = item.GetBehavior<Weapon>();
|
||||
if (weapon == null) throw new ArgumentException($"Attempted to inspect weapon groups on item \"{item.Data.Name}\" but no weapon is present!");
|
||||
if (weapon == null) throw new ArgumentException($"Attempted to inspect weapon groups on item \"{item.RuntimeItem?.Name ?? "Unknown item"}\" but no weapon is present!");
|
||||
var groupCount = ActionGameManager.Instance.Settings.GameplaySettings.WeaponGroupCount;
|
||||
for (int i = 0; i < groupCount; i++)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -253,7 +253,9 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted.
|
|||
max durability only, with current runtime durability as the generic
|
||||
denominator for incomplete typed rows. `ItemManager.Evaluate` also uses typed
|
||||
runtime item max durability and item names when evaluating unequipped
|
||||
performance stats. `ItemManager` typed item instantiation primitives create
|
||||
performance stats. Weapon group assignment and guided projectile diagnostics
|
||||
report names from equipped typed runtime rows instead of `ItemData.Name`.
|
||||
`ItemManager` typed item instantiation primitives create
|
||||
simple commodities, crafted items, and equippable items from runtime catalog
|
||||
rows; old DTO-based item creation is gone from blueprint cloning.
|
||||
`EquippedItem` also takes conductivity, max durability, thermal bounds, and
|
||||
|
|
|
|||
Loading…
Reference in a new issue