P08-03: 配置の通常操作受入

This commit is contained in:
Agent Control Runner
2026-10-14 20:45:46 +09:00
parent 7297a4c050
commit fd643f55a2
9 changed files with 138 additions and 9 deletions
+1 -1
View File
@@ -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'):
+1
View File
@@ -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,