Commit ec931392 authored by 神楽坂玲奈's avatar 神楽坂玲奈

增加TAG自动设置16000LP

parent ed113f9c
{
"name": "mycard-mobile",
"version": "1.0.17",
"version": "1.0.18",
"license": "UNLISENCED",
"scripts": {
"ng": "ng",
......
......@@ -25,7 +25,7 @@
<md-option [value]="2">OCG & TCG</md-option>
<md-option [value]="3">专有卡禁止</md-option>
</md-select>
<md-select class="full-width" placeholder="决斗模式" name="mode" [(ngModel)]="room.options.mode" required>
<md-select class="full-width" placeholder="决斗模式" name="mode" [(ngModel)]="room.options.mode" (ngModelChange)="set_start_lp()" required>
<md-option [value]="0">单局模式</md-option>
<md-option [value]="1">比赛模式</md-option>
<md-option [value]="2">TAG</md-option>
......
......@@ -48,4 +48,12 @@ export class NewRoomComponent {
this.ygopro.share('房间密码是' + host_password);
}
set_start_lp() {
if (this.room.options.mode == 2) {
this.room.options.start_lp = 16000;
} else {
this.room.options.start_lp = 8000;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment