Skip to content

Commit e8b9374

Browse files
author
REME
committed
2026-03-27 0.100
1 parent dcba58f commit e8b9374

7 files changed

Lines changed: 164 additions & 121 deletions

_config.kira.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,18 @@ docsTree:
3737
},
3838
{ title: 03 BaseLib, path: /docs/03-baselib/ },
3939
{ title: 04 添加新人物, path: /docs/04-add-new-character/ },
40-
{ title: 05 变量与描述, path: /docs/05-variable-and-description/ },
40+
{
41+
title: 05 变量与描述,
42+
path: /docs/05-variable-and-description/,
43+
},
4144
],
4245
},
46+
{
47+
title: 迁移,
48+
open: true,
49+
children:
50+
[{ title: 07 0.99 至 0.100, path: /docs/07-migration-99-100/ }],
51+
},
4352
{
4453
title: 视觉,
4554
open: true,

source/_posts/00-home.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,20 @@ date: 2026-03-07 00:00:00
44
permalink: /
55
---
66

7+
支持版本:`public-beta`
8+
79
《杀戮尖塔2》原生支持模组,所以你可以直接制作模组并使用。
810

911
由于塔2刚发售暂时没有创意工坊,所以目前只能通过本地加载模组。下面介绍如何制作模组。
1012

1113
由于游戏目前处于抢先体验阶段,教程可能不是最优解,且代码更改频繁,如有错误请指正。
1214

13-
个人 mod 交流群:542370192
15+
个人mod交流群:542370192
1416

1517
以防你有网络问题下载工具:https://pan.baidu.com/s/1yuxPkDpCV8EVLkDubqiirg?pwd=apar
1618

1719
一些常用文档网址:
1820

19-
- Godot: https://docs.godotengine.org/zh-cn/4.x/
20-
- Harmony: https://harmony.pardeike.net/articles/intro.html
21+
Godot: https://docs.godotengine.org/zh-cn/4.x/
22+
23+
Harmony: https://harmony.pardeike.net/articles/intro.html

source/_posts/02-install-view-source-and-patch.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ https://github.com/GDRETools/gdsdecomp
3030

3131
![alt text](../../images/image7.png)
3232

33-
4. 等项目导出完,使用godot导入`project.godot`即可。
33+
4. 等项目导出完,使用godot导入`project.godot`即可。做mod并不需要能在godot里运行这个项目。
3434

3535
## ilspy或dnspy,仅反编译游戏代码
3636

37-
[ilspy](https://github.com/icsharpcode/ILSpy)[dnspy](https://github.com/dnSpy/dnSpy),按说明安装软件,然后打开游戏根目录的`data_sts2_windows_x86_64\sts2.dll`即可查看代码。
37+
按说明安装[ilspy](https://github.com/icsharpcode/ILSpy)[dnspy](https://github.com/dnSpy/dnSpy),然后打开游戏根目录的`data_sts2_windows_x86_64\sts2.dll`即可查看代码。
3838

3939
## 修改代码
4040

@@ -58,8 +58,8 @@ https://github.com/GDRETools/gdsdecomp
5858
尖塔根目录有许多`launch_xxx.bat`,选择一个合适的,右键记事本编辑,在其中加一个`--log`,例如`@echo off
5959
"%~dp0SlayTheSpire2.exe" --log --rendering-driver opengl3 %*`。
6060

61-
然后在根目录创建一个`steam_appid.txt`,里面写`2868840`,然后双击修改的bat文件运行即可以一个能输出log的命令行的方式打开游戏。或者添加`-force-steam=off`参数。
61+
然后在根目录创建一个`steam_appid.txt`,里面写`2868840`,然后双击修改的bat文件运行即可以一个能输出log的命令行的方式打开游戏。或者添加`--force-steam=off`参数。
6262

63-
## 本地&联机测试
63+
## 本地联机测试
6464

65-
复制出两个新的`bat`,其中一个添加`--fastmp=host`参数,作为主机,另一个添加`-fastmp=join -clientId=1001`参数,作为非主机玩家。当然你可以添加更多,记得修改`clientId`
65+
复制出两个新的`bat`,其中一个添加`--fastmp=host`参数,作为主机,另一个添加`--fastmp=join -clientId=1001`参数,作为非主机玩家。当然你可以添加更多,记得修改`clientId`

source/_posts/03-baselib.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ Test (你的项目文件夹)
197197
## 自定义模组配置
198198

199199
* 要使用此功能,需要先放一张图片到`{modId}\mod_image.png`作为mod图标,尺寸任意,否则会由于报错不显示配置。
200-
* 添加一个继承`SimpleModConfig`(或者是`ModConfig`如果你想要更复杂的设置)的类,在其中添加`public static bool`变量。支持`bool``double``enum`
200+
* 添加一个继承`SimpleModConfig`(或者是`ModConfig`如果你想要更复杂的设置)的类,在其中添加`public static bool`变量。支持`bool``double``enum``int``string`
201201
* 在初始化函数调用`ModConfigRegistry.Register`。字符串写你的`modId`
202202

203203
```csharp
@@ -382,6 +382,7 @@ public class TestRelic : CustomRelicModel
382382
[SavedProperty]
383383
public int Test_GameTurns { get; set; } = 0;
384384

385+
// 添加新的动态变量
385386
protected override IEnumerable<DynamicVar> CanonicalVars => [new CardsVar(1), new DynamicVar("GameTurns", Test_GameTurns)];
386387

387388
public override async Task AfterPlayerTurnStart(PlayerChoiceContext choiceContext, Player player)
@@ -435,7 +436,7 @@ public class TestPower : CustomPowerModel
435436
}
436437
```
437438

438-
然后使用`PowerCmd.Apply<TestPower>(...)`给予即可。
439+
然后使用`PowerCmd.Apply<TestPower>(...)`给予即可。或者使用控制台`power TEST-TEST_POWER 1 0`
439440

440441
![alt text](../../images/image25.png)
441442

0 commit comments

Comments
 (0)