iter51-卡3
This commit is contained in:
1 parent
372b4fdc31
commit
f9f2cb2d27
4 files changed
+79
-2
No files matched your search
@@ -7,7 +7,6 @@
|
||||
class_name NodeMapGenerator
|
||||
extends RefCounted
|
||||
|
||||
const NODE_TYPES := ["battle", "boss", "reward", "rest", "shop"]
|
||||
const FILLER_TYPES := ["battle", "reward", "rest"]
|
||||
# 多终点图的支路互斥段必须各有独有类型(契约 5③),而商店与 Boss 是每条支路共有件,
|
||||
# 独有类型只能来自 battle/reward/rest 三件 ⇒ 归属大岔口各区域的填充节点取互斥签名类型。
|
||||
@@ -133,7 +132,7 @@ func _vo_node_fields(nodes: Array, errs: Array, by_id: Dictionary, indeg: Dictio
|
||||
if by_id.has(id):
|
||||
errs.append({"category": "dup_key", "message": "节点句柄重复: %d" % id})
|
||||
by_id[id] = n
|
||||
if not NODE_TYPES.has(String(n["type"])):
|
||||
if not LevelTable.NODE_TYPES.has(String(n["type"])):
|
||||
errs.append({"category": "enum", "message": "节点类型出域: %s" % n["type"]})
|
||||
if int(n["depth"]) < 0:
|
||||
errs.append({"category": "domain", "message": "节点深度为负: %d" % n["depth"]})
|
||||
|
||||
Reference in new issue
Block a user