Skip to content

Commit

Permalink
feat(runtime): 随机化初始化tick数值
Browse files Browse the repository at this point in the history
  • Loading branch information
Encaik committed Sep 21, 2024
1 parent 087cefb commit ec0db3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class AppComponent implements OnInit {
nzWidth: '1000px'
})
.afterClose.subscribe(({ character, env }) => {
this.rtSrv.init({ tick: 0 }, character, env);
this.rtSrv.init({ tick: Math.round(Math.random() * 100) }, character, env);
});
}

Expand Down

1 comment on commit ec0db3c

@vercel
Copy link

@vercel vercel bot commented on ec0db3c Sep 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

wanjie – ./

wanjie-git-main-encaiks-projects.vercel.app
wanjie-encaiks-projects.vercel.app
wanjie.vercel.app

Please sign in to comment.