基础部分 · The Basics of CD2

CD2 基础知识

CD2 界面 · The CD2 GUI

CD2 提供了一个简单的操作界面,兼容 ModHub 和 UUI(Unified UI)。

英文原文

CD2 features a simple GUI compatible with both ModHub and UUI:

CD2modhub
Main CD2 screen in Modhub.

Modhub 中的 CD2 主界面。

你的难度可以在文本框中粘贴或编辑。点击 Save 后,该难度会根据顶层字段 Name 后面的部分命名保存。如果同名难度已存在,则会覆写旧难度。你保存的难度均存于模组配置中,可以通过下拉菜单查看。

英文原文

The files for your difficulties can be pasted and edited in the text box. After clicking Save, the file will be saved based on the name in the Name top level field; if the file already existed, it will be overwritten. Difficulties get saved inside your mod config. You can check all your difficulties by clicking on the drop-down menu.

Reset 会将当前难度设为游戏启动时的默认难度。

英文原文

The Reset button sets a difficulty as a default upon starting the game.

CD2 难度文件要求 · The CD2 files

json
{
    "Caps": {
        "MaxActiveEnemies": [90, 120, 180, 180]
    }
}

例如上面这个例子,MaxActiveEnemies 会随着玩家人数(1~4 人)变化,依次使用数组中的数值。你也可以拓展这个数组,以适应 4 人以上的情况:

英文原文

which means that MaxActiveEnemies scales with the number of players, 1 to 4, with the values specified inside. The arrays can be as large as desired to accomodate for 4+ player lobbies:

json
{
    "Caps": {
        "MaxActiveEnemies": [90, 120, 180, 180, 210, 210, 240, 240]
    }
}

如果玩家人数超过数组长度,则会使用数组的最后一个值。

英文原文

If the lobby has more players than indices in the array, the last value is used.

下面是一个 Hazard 5x2 难度的实例,即在 5 级难度的基础上,让敌人数量翻倍,且补给消耗为 60 硝石:

英文原文

The following is a very simple file for Hazard 5x2, that is, vanilla Hazard 5 with double enemies and a 60 nitra resupply cost:

json
{
  "Name": "Hazard 5x2",
  "Caps": {
    "MaxActiveSwarmers": [ 90, 120, 180 ],
    "MaxActiveEnemies": [ 90, 120, 180 ]
  },
  "Resupply": {
    "Cost": 60
  },
  "DifficultySetting": {
    "BaseHazard": "Hazard 5",
    "EnemyCountModifier": [ 1.7, 1.7, 2.5, 3 ]
  }
}