加入自产夹具美术(samples/fixtures,492 KB)

这些文件全部由仓库内脚本生成,无第三方版权问题:
  node scripts/make-fixtures.ts samples/fixtures      # DC6/调色板/文本表/期望网格
  node scripts/make-map-fixtures.ts samples/fixtures  # DT1/DS1/夹具 MPQ

入库后 clone 即可跑夹具相关的校验与页面(verify:all、map.html?data=samples/fixtures),
不必先拿到原版 MPQ。

.gitignore 相应调整:用 `samples/*` 而不是 `samples/`(git 不允许反选被整体排除的目录),
并单独放行 samples/fixtures/*.mpq(那个 MPQ 是我们自己生成的)。原版 MPQ、烘焙图集包
与第三方参考源码仍然不入库。
This commit is contained in:
troytt 2026-09-13 18:27:16 +08:00
parent 897b3735d6
commit 7a24a3f806
20 changed files with 240 additions and 1 deletions

7
.gitignore vendored
View File

@ -6,8 +6,13 @@ dist-acts/
*.log
# 用户自备的游戏数据与本机参考源码:体积大 / 无再分发许可,绝不入库
samples/
# 注意用 `samples/*` 而不是 `samples/`:只有父目录本身没被整体排除,才可能反选回
# `samples/fixtures/`(git 不允许反选被排除目录里的内容)。
samples/*
!samples/fixtures/
*.mpq
# 夹具里的 fixture.mpq 是我们自己生成的(make-map-fixtures.ts),要入库
!samples/fixtures/*.mpq
reference/
# 临时调试产物

BIN
samples/fixtures/actor.dc6 Normal file

Binary file not shown.

View File

@ -0,0 +1,4 @@
Id Name Type InvWidth InvHeight Defense Value Level MaxStack
buc Buckler armo 2 2 4 25 1 1
cap Cap armo 2 2 6 40 2 1
plt Plate Mail armo 2 3 30 400 12 1

View File

@ -0,0 +1,6 @@
Level XP
1 0
2 20
3 60
4 140
5 280

View File

@ -0,0 +1,4 @@
Id Name Level itype1 itype2 mod1code mod1min mod1max mod2code mod2min mod2max
cruel Cruel 12 weap maxdamage 30 40
sturdy Sturdy 3 armo defense 5 9
fine Fine 5 weap armo maxdamage 2 4 defense 1 3

View File

@ -0,0 +1,4 @@
Id Name Level itype1 mod1code mod1min mod1max
of_might of Might 5 weap strength 2 5
of_the_fox of the Fox 3 dexterity 1 3
of_health of Health 4 maxhp 10 20

View File

@ -0,0 +1,4 @@
Id Name Type InvWidth InvHeight MaxStack Value
hp1 Minor Healing Potion misc 1 1 5 20
mp1 Minor Mana Potion misc 1 1 5 25
key Key misc 1 1 12 10

View File

@ -0,0 +1,4 @@
Id Name HP Damage CooldownTicks Reach AggroRadius Speed XP
fallen Fallen 12 3 24 36 220 80 8
zombie Zombie 30 6 32 40 170 50 15
skeleton Skeleton 18 4 28 38 260 70 12

View File

@ -0,0 +1,2 @@
Id Name Quest Offer Progress Done
cain 3 den 6 7 8

View File

@ -0,0 +1,2 @@
Id Name Description MonsterId KillCount RewardXP RewardGold
den 4 5 * 3 60 120

View File

@ -0,0 +1,4 @@
Id Name ManaCost CooldownTicks Range Speed MinDam MaxDam PerLevel Radius
attack Basic Attack 0 10 48 0 4 6 1 20
firebolt 1 6 20 260 320 7 10 3 20
frostnova 2 14 50 70 0 12 16 4 90

View File

@ -0,0 +1,4 @@
Id Name Type InvWidth InvHeight Damage Value Level MaxStack
swd Short Sword weap 1 3 5 30 1 1
axe Hand Axe weap 2 3 8 60 3 1
gsw Great Sword weap 2 4 18 200 10 1

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,195 @@
{
"directions": 2,
"framesPerDirection": 2,
"palette": "palette.pal",
"frames": [
[
{
"width": 8,
"height": 4,
"rows": [
[
2,
3,
4,
5,
6,
7,
8,
9
],
[
10,
11,
12,
0,
0,
13,
14,
15
],
[
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
16,
17,
18,
19,
20,
21,
22
]
]
},
{
"width": 8,
"height": 4,
"rows": [
[
24,
25,
26,
27,
28,
29,
30,
31
],
[
32,
33,
34,
0,
0,
35,
36,
37
],
[
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
38,
39,
40,
41,
42,
43,
44
]
]
}
],
[
{
"width": 8,
"height": 4,
"rows": [
[
6,
7,
8,
9,
10,
11,
12,
13
],
[
14,
15,
16,
0,
0,
17,
18,
19
],
[
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
20,
21,
22,
23,
24,
25,
26
]
]
},
{
"width": 8,
"height": 4,
"rows": [
[
28,
29,
30,
31,
32,
33,
34,
35
],
[
36,
37,
38,
0,
0,
39,
40,
41
],
[
0,
0,
0,
0,
0,
0,
0,
0
],
[
0,
42,
43,
44,
45,
46,
47,
48
]
]
}
]
]
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.