Skip to content

Commit c5b6de7

Browse files
committed
save round logic
1 parent d2ed148 commit c5b6de7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/shard-bridge.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export class ShardBridge implements Bridge.Service {
321321

322322
if (config.totalLegitPlayers === 0) config.totalLegitPlayers = 1;
323323

324-
config.rewardItemAmount = this.info.rewardItemAmount;
324+
// config.rewardItemAmount = this.info.rewardItemAmount;
325325
// parseFloat(
326326
// (
327327
// Math.round(
@@ -330,7 +330,7 @@ export class ShardBridge implements Bridge.Service {
330330
// ).toFixed(3)
331331
// );
332332

333-
config.rewardWinnerAmount = this.info.rewardWinnerAmount;
333+
// config.rewardWinnerAmount = this.info.rewardWinnerAmount;
334334
// parseFloat(
335335
// (
336336
// Math.round(
@@ -340,9 +340,11 @@ export class ShardBridge implements Bridge.Service {
340340
// ).toFixed(3)
341341
// );
342342

343+
console.log('Configured seer info', this.info);
344+
343345
return {
344-
rewardWinnerAmount: config.rewardWinnerAmount,
345-
rewardItemAmount: config.rewardItemAmount,
346+
rewardWinnerAmount: this.info.rewardWinnerAmount,
347+
rewardItemAmount: this.info.rewardItemAmount,
346348
};
347349
}
348350

@@ -359,7 +361,7 @@ export class ShardBridge implements Bridge.Service {
359361
const res = await this.realm.seer.emit.evolution.saveRound.mutate({
360362
shardId: ctx.client.id,
361363
round: input,
362-
rewardWinnerAmount: config.rewardWinnerAmount,
364+
rewardWinnerAmount: this.info.rewardWinnerAmount,
363365
clients: this.clients,
364366
});
365367

0 commit comments

Comments
 (0)