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