Skip to content

Commit

Permalink
Analytics: Recognize extension combat state change as extension event
Browse files Browse the repository at this point in the history
  • Loading branch information
Sejsel committed Jul 8, 2024
1 parent ce1a2bc commit cbe10a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion EVTCAnalytics/Parsing/CombatItemFilters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ private static IEnumerable<StateChange> GetDirectStateChangesForEventType(Type e
// so we need to return all of them.
Debug.Assert(Enum.GetUnderlyingType(typeof(StateChange)) == typeof(byte));
if (eventType == typeof(UnknownEvent)) return Enumerable.Range(0, 256).Select(x => (StateChange) x);
if (eventType == typeof(UnknownExtensionEvent)) return [StateChange.Extension];
if (eventType == typeof(UnknownExtensionEvent)) return [StateChange.Extension, StateChange.ExtensionCombat];

throw new ArgumentException($"Event type {eventType} is not supported.");
}
Expand Down
4 changes: 2 additions & 2 deletions EVTCAnalytics/Processing/LogProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1195,8 +1195,8 @@ static WeaponSet WeaponSetFromId(long id)
case StateChange.IdleEvent:
return new UnknownEvent(item.Time, item);
case StateChange.ExtensionCombat:
// Not sure if this ever appears in logs.
return new UnknownEvent(item.Time, item);
// Same as StateChange.Extension, but skillid is treated as skill and added to the skill table.
return new UnknownExtensionEvent(item.Time, item);
case StateChange.Effect2:
{
// Official docs as of 2023-07-18:
Expand Down

0 comments on commit cbe10a0

Please sign in to comment.