add version to more games
This commit is contained in:
parent
eea868a22a
commit
69c94cbbad
|
@ -9,4 +9,9 @@ export default class asa extends Epic {
|
||||||
this.clientSecret = 'PP5UGxysEieNfSrEicaD1N2Bb3TdXuD7xHYcsdUHZ7s'
|
this.clientSecret = 'PP5UGxysEieNfSrEicaD1N2Bb3TdXuD7xHYcsdUHZ7s'
|
||||||
this.deploymentId = 'ad9a8feffb3b4b2ca315546f038c3ae2'
|
this.deploymentId = 'ad9a8feffb3b4b2ca315546f038c3ae2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async run(state) {
|
||||||
|
await super.run(state)
|
||||||
|
state.version = state.raw.attributes.BUILDID_s + '.' + state.raw.attributes.MINORBUILDID_s
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,5 +15,6 @@ export default class palworld extends Epic {
|
||||||
await super.run(state)
|
await super.run(state)
|
||||||
state.name = state.raw.attributes.NAME_s
|
state.name = state.raw.attributes.NAME_s
|
||||||
state.numplayers = state.raw.attributes.PLAYERS_l
|
state.numplayers = state.raw.attributes.PLAYERS_l
|
||||||
|
state.version = state.raw.attributes.VERSION_S
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue