From 8455dc7924beb85ee70a7259aa457ec83953b34c Mon Sep 17 00:00:00 2001 From: Tiger Date: Thu, 22 Jan 2026 11:59:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E5=96=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=BB=93=E6=9E=84=EF=BC=8C=E6=96=B9=E4=BE=BF=E6=B8=B8=E6=88=8F?= =?UTF-8?q?=E6=9C=AC=E4=BD=93=E8=AF=BB=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++++- resources/cards/NonMetal/Carbon.json | 1 + resources/cards/NonMetal/Oxygen.json | 1 + resources/conditions/Ignite.json | 6 ------ resources/conditions/list.json | 3 --- resources/matters/Compound/Carbon_Dioxide.json | 1 + resources/matters/NonMetal/Carbon.json | 1 + resources/matters/NonMetal/Oxygen.json | 1 + 8 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 resources/conditions/Ignite.json delete mode 100644 resources/conditions/list.json diff --git a/README.md b/README.md index ec3764e..8e49d70 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,10 @@ backend/ ## 最佳实践 -对于路径和 ID,均应当使用英文字母、下划线和数字,不应当使用包括中文和短横杠在内的其他字符。由此引发的问题后果自负。 +不遵守此部分内容引发的问题后果自负。 + +对于同一物质/卡牌,其在各处的 ID 应该相同,即在 `cards` `matters` `reactions` `assets` 中的 ID 都应该相同,否则游戏本体将无法读取。 + +对于路径和 ID,均应当使用英文字母、下划线和数字,不应当使用包括中文和短横杠在内的其他字符。 所有 JSON 文件中的缩进均应当使用 2 个或 4 个空格,而非制表符(`\t`)。 diff --git a/resources/cards/NonMetal/Carbon.json b/resources/cards/NonMetal/Carbon.json index 116e77f..51c43ca 100644 --- a/resources/cards/NonMetal/Carbon.json +++ b/resources/cards/NonMetal/Carbon.json @@ -3,6 +3,7 @@ "en-US": "Carbon", "zh-CN": "碳" }, + "type": "Element/Solid", "number": 6, "mass": 12 } \ No newline at end of file diff --git a/resources/cards/NonMetal/Oxygen.json b/resources/cards/NonMetal/Oxygen.json index 0ac441c..f3bd5c1 100644 --- a/resources/cards/NonMetal/Oxygen.json +++ b/resources/cards/NonMetal/Oxygen.json @@ -3,6 +3,7 @@ "en-US": "Oxygen", "zh-CN": "氧" }, + "type": "Element/Solid", "number": 8, "mass": 16 } \ No newline at end of file diff --git a/resources/conditions/Ignite.json b/resources/conditions/Ignite.json deleted file mode 100644 index 6cdc519..0000000 --- a/resources/conditions/Ignite.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": { - "en-US": "Ignite", - "zh-CN": "点燃" - } -} \ No newline at end of file diff --git a/resources/conditions/list.json b/resources/conditions/list.json deleted file mode 100644 index f61b33b..0000000 --- a/resources/conditions/list.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "Ignite": "Ignite" -} \ No newline at end of file diff --git a/resources/matters/Compound/Carbon_Dioxide.json b/resources/matters/Compound/Carbon_Dioxide.json index b430ccb..47dfee2 100644 --- a/resources/matters/Compound/Carbon_Dioxide.json +++ b/resources/matters/Compound/Carbon_Dioxide.json @@ -3,5 +3,6 @@ "en-US": "Carbon Dioxide", "zh-CN": "二氧化碳" }, + "type": "Compound/Gas", "mass": 44 } \ No newline at end of file diff --git a/resources/matters/NonMetal/Carbon.json b/resources/matters/NonMetal/Carbon.json index 116e77f..51c43ca 100644 --- a/resources/matters/NonMetal/Carbon.json +++ b/resources/matters/NonMetal/Carbon.json @@ -3,6 +3,7 @@ "en-US": "Carbon", "zh-CN": "碳" }, + "type": "Element/Solid", "number": 6, "mass": 12 } \ No newline at end of file diff --git a/resources/matters/NonMetal/Oxygen.json b/resources/matters/NonMetal/Oxygen.json index 0ac441c..f3bd5c1 100644 --- a/resources/matters/NonMetal/Oxygen.json +++ b/resources/matters/NonMetal/Oxygen.json @@ -3,6 +3,7 @@ "en-US": "Oxygen", "zh-CN": "氧" }, + "type": "Element/Solid", "number": 8, "mass": 16 } \ No newline at end of file