P08-03: 配置の通常操作受入
This commit is contained in:
+1
-1
@@ -240,7 +240,7 @@ def make(base, source, checker):
|
||||
elif label == 'missing_connection':
|
||||
row['expected'] = 'STAIR_LANDING_MISSING'
|
||||
report.update(can_build=False, error_codes=[row['expected']], reasons=[{'code':row['expected'], 'message':'先に階段の一つ下の階に通路を作ってください。', 'cells':[], 'details':{'reason':row['expected']}}])
|
||||
row['status'] = report['reasons'][0]['message']
|
||||
row['status'] = '配置不可: '+report['reasons'][0]['message']
|
||||
elif label == 'cancel_demolition':
|
||||
row.update(kind='cancel', status='撤去を取り消しました。')
|
||||
elif label in ('demolition', 'refused_demolition'):
|
||||
|
||||
Vendored
+1
@@ -123,6 +123,7 @@ func build(id: StringName, cell: Vector3i, label: String, expected: String = "")
|
||||
expect(not results.is_empty() and results.back().code == "OK", label + " accepted")
|
||||
elif expected == "STAIR_LANDING_MISSING":
|
||||
expect(not report.can_build and expected in report.error_codes and results.is_empty(), label + " preview refusal")
|
||||
expect(status == "配置不可: " + String(report.reasons[0].message), label + " preview refusal status")
|
||||
else:
|
||||
expect(expected in report.error_codes and results.is_empty(), label + " preview refusal")
|
||||
var row := {"id": label, "kind": "build", "definition": String(id), "expected": expected,
|
||||
|
||||
Reference in New Issue
Block a user