Use item keys only in runtime commits
This commit is contained in:
parent
ffe9d6d7bf
commit
e9372ce4c4
8 changed files with 11 additions and 54 deletions
|
|
@ -97,8 +97,6 @@ public class ActionBarConsumableBinding : ActionBarBinding
|
|||
public string TargetItemKey =>
|
||||
Guid.TryParse(Target?.LegacyId, out var legacyId) ? AetheriaRuntimeItemReference.FromLegacyId(legacyId) : "";
|
||||
|
||||
public string TargetItemDefinitionLegacyId => Target?.LegacyId ?? "";
|
||||
|
||||
}
|
||||
|
||||
public class ActionBarGearBinding : ActionBarBinding
|
||||
|
|
@ -112,16 +110,6 @@ public class ActionBarGearBinding : ActionBarBinding
|
|||
|
||||
public int BehaviorIndex => Item?.Behaviors == null ? -1 : Array.IndexOf(Item.Behaviors, Behavior);
|
||||
|
||||
public string TargetItemDefinitionLegacyId
|
||||
{
|
||||
get
|
||||
{
|
||||
return AetheriaRuntimeItemReference.ToLegacyId(TargetItemKey) is var legacyId && legacyId != Guid.Empty
|
||||
? legacyId.ToString("D")
|
||||
: "";
|
||||
}
|
||||
}
|
||||
|
||||
public string TargetItemKey => Item?.EquippableItem?.ItemKey ?? "";
|
||||
|
||||
public ActionBarGearBinding(Entity entity, ActionBarSlot slot, EquippedItem item, IActivatedBehavior behavior) : base(entity, slot)
|
||||
|
|
|
|||
Loading…
Reference in a new issue