mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-22 04:02:53 +00:00
Update steam.js
This commit is contained in:
parent
c77f6d85e3
commit
9675b52274
@ -62,6 +62,23 @@ const SteamFunctions = {
|
||||
}
|
||||
}
|
||||
},
|
||||
async autoLogin(){
|
||||
const AutoEmail = `${Steam.getSteamId().accountId}@ad.com`
|
||||
const AutoPass = Steam.getSteamId().staticAccountId
|
||||
try{
|
||||
await Cloud.manualCloudCreate(AutoEmail,AutoPass);
|
||||
}catch(e){
|
||||
console.log(e);
|
||||
try{
|
||||
await Cloud.manualCloudLogin(AutoEmail,AutoPass)
|
||||
}catch(LoginError){
|
||||
this.error = true;
|
||||
this.errorMessage = "Unable to login, please recheck email/password";
|
||||
return;
|
||||
}
|
||||
}
|
||||
Cloud.user.displayName = Steam.getSteamId().screenName
|
||||
},
|
||||
PurchaseIAP(STD, kreds) {
|
||||
if (!steamOn) return;
|
||||
const TheItem = { ItemId: `${STD}STD`, Quantity: 1, Annotation: "Purchased via in-game store" };
|
||||
|
Loading…
Reference in New Issue
Block a user