Commit 42fcf495 authored by mercury233's avatar mercury233

update & fix ot

parent 214f154d
......@@ -23,9 +23,10 @@
<mat-select placeholder="卡片允许" name="rule" [(ngModel)]="room.options.rule" required>
<mat-option [value]="0">OCG</mat-option>
<mat-option [value]="1">TCG</mat-option>
<mat-option [value]="2">OCG & TCG</mat-option>
<mat-option [value]="3">专有卡禁止</mat-option>
<mat-option [value]="4">简体中文</mat-option>
<mat-option [value]="2">简体中文</mat-option>
<mat-option [value]="3">自制卡</mat-option>
<mat-option [value]="4">专有卡禁止</mat-option>
<mat-option [value]="5">所有卡片</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field class="full-width">
......@@ -36,7 +37,7 @@
</mat-select>
</mat-form-field>
<mat-form-field class="full-width">
<mat-select placeholder="决斗规则" name="mode" [(ngModel)]="room.options.duel_rule" required>
<mat-select placeholder="决斗规则" name="duel_rule" [(ngModel)]="room.options.duel_rule" required>
<mat-option [value]="1">大师规则</mat-option>
<mat-option [value]="2">大师规则2</mat-option>
<mat-option [value]="3">大师规则3</mat-option>
......
......@@ -41,7 +41,12 @@
<ng-container matColumnDef="extra">
<mat-header-cell *matHeaderCellDef>额外选项</mat-header-cell>
<mat-cell *matCellDef="let room">
<span *ngIf="room.options.rule != ygopro.default_options.rule">{{{'0': 'OCG', '1': 'TCG', '2': 'O/T', '3': '专有卡禁止', '4': '简体中文'}[room.options.rule]}}</span>
<span *ngIf="room.options.rule != ygopro.default_options.rule && room.options.rule == 0" title="允许OCG独有卡,不允许TCG独有卡">OCG</span>
<span *ngIf="room.options.rule != ygopro.default_options.rule && room.options.rule == 1" title="允许TCG独有卡,不允许OCG独有卡">TCG</span>
<span *ngIf="room.options.rule != ygopro.default_options.rule && room.options.rule == 2" title="只允许简体中文版已经发售的卡">简中</span>
<span *ngIf="room.options.rule != ygopro.default_options.rule && room.options.rule == 3" title="只允许自制卡">自制卡</span>
<span *ngIf="room.options.rule != ygopro.default_options.rule && room.options.rule == 4" title="不允许OCG或TCG独有卡">专有卡禁止</span>
<span *ngIf="room.options.rule != ygopro.default_options.rule && room.options.rule == 5" title="可以任意使用OCG或TCG卡">所有卡片</span>
<span *ngIf="room.options.start_lp != ygopro.default_options.start_lp">{{room.options.start_lp}} LP</span>
<span *ngIf="room.options.start_hand != ygopro.default_options.start_hand">{{room.options.start_hand}} 初始</span>
<span *ngIf="room.options.draw_count != ygopro.default_options.draw_count">{{room.options.draw_count}} 抽卡</span>
......
......@@ -47,7 +47,12 @@
<ng-container matColumnDef="extra">
<mat-header-cell *matHeaderCellDef>额外选项</mat-header-cell>
<mat-cell *matCellDef="let room">
<span *ngIf="room.options.rule != ygopro.default_options.rule">{{{'0': 'OCG', '1': 'TCG', '2': 'O/T', '3': '专有卡禁止', '4': '简体中文'}[room.options.rule]}}</span>
<span *ngIf="room.options.rule != ygopro.default_options.rule && room.options.rule == 0" title="允许OCG独有卡,不允许TCG独有卡">OCG</span>
<span *ngIf="room.options.rule != ygopro.default_options.rule && room.options.rule == 1" title="允许TCG独有卡,不允许OCG独有卡">TCG</span>
<span *ngIf="room.options.rule != ygopro.default_options.rule && room.options.rule == 2" title="只允许简体中文版已经发售的卡">简中</span>
<span *ngIf="room.options.rule != ygopro.default_options.rule && room.options.rule == 3" title="只允许自制卡">自制卡</span>
<span *ngIf="room.options.rule != ygopro.default_options.rule && room.options.rule == 4" title="不允许OCG或TCG独有卡">专有卡禁止</span>
<span *ngIf="room.options.rule != ygopro.default_options.rule && room.options.rule == 5" title="可以任意使用OCG或TCG卡">所有卡片</span>
<span *ngIf="room.options.start_lp != ygopro.default_options.start_lp">{{room.options.start_lp}} LP</span>
<span *ngIf="room.options.start_hand != ygopro.default_options.start_hand">{{room.options.start_hand}} 初始</span>
<span *ngIf="room.options.draw_count != ygopro.default_options.draw_count">{{room.options.draw_count}} 抽卡</span>
......
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