add version to more games

This commit is contained in:
Pedro Ivo Hudson 2024-02-04 11:37:02 -03:00
parent eea868a22a
commit 69c94cbbad
2 changed files with 6 additions and 0 deletions

View File

@ -9,4 +9,9 @@ export default class asa extends Epic {
this.clientSecret = 'PP5UGxysEieNfSrEicaD1N2Bb3TdXuD7xHYcsdUHZ7s'
this.deploymentId = 'ad9a8feffb3b4b2ca315546f038c3ae2'
}
async run(state) {
await super.run(state)
state.version = state.raw.attributes.BUILDID_s + '.' + state.raw.attributes.MINORBUILDID_s
}
}

View File

@ -15,5 +15,6 @@ export default class palworld extends Epic {
await super.run(state)
state.name = state.raw.attributes.NAME_s
state.numplayers = state.raw.attributes.PLAYERS_l
state.version = state.raw.attributes.VERSION_S
}
}