Skip to content

Commit

Permalink
Show the type of unknown target tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damnae committed Feb 2, 2024
1 parent ab81771 commit a03cff8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sources/gamecore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { cleanupMarkup, cleanupNumber, } from '@/common/common'
import { cleanupMarkup, cleanupNumber, cleanupTaskName, } from '@/common/common'
import useHashStore from '@/common/hashstore'

export interface DynamicValue
Expand Down Expand Up @@ -104,6 +104,9 @@ export function evaluateTargetType(targetType?:GamecoreTargetType) : string
if (targetType?.Index)
return `Param Target #${targetType.Index}`

if (targetType?.$type)
return cleanupTaskName(targetType.$type)

return 'unknown'
}

Expand Down

0 comments on commit a03cff8

Please sign in to comment.