“模组:怪物数据”的版本间的差异

来自Stardew Valley Wiki
跳到导航 跳到搜索
标签移动版编辑 移动网页编辑
标签移动版编辑 移动网页编辑
第3行: 第3行:
 
==原始数据==
 
==原始数据==
 
 怪物数据存储在<samp>Content\Data\Monsters.xnb</samp>中
 
 怪物数据存储在<samp>Content\Data\Monsters.xnb</samp>中
 +
 +
==格式==
 +
{| class="wikitable"
 +
|-
 +
! 下标
 +
! 字段
 +
! 样例值
 +
|-
 +
| 0
 +
| health (hit points)
 +
| ''24''
 +
|-
 +
| 1
 +
| damage (attack)
 +
| ''5''
 +
|-
 +
| 2
 +
| minimum coins to drop ''(unimplemented)''
 +
| ''0''
 +
|-
 +
| 3
 +
| maximum coins to drop ''(unimplemented)''
 +
| ''0''
 +
|-
 +
| 4
 +
| whether a "glider" (flying)
 +
| ''false''
 +
|-
 +
| 5
 +
| duration of random movements
 +
| ''1000''
 +
|-
 +
| 6
 +
| objects to drop
 +
| ''766 .75 766 .05 153 .1 66 .015 92 .15 96 .005 99 .001''
 +
|-
 +
| 7
 +
| resilience (defense)
 +
| ''1''
 +
|-
 +
| 8
 +
| jitteriness
 +
| ''.01''
 +
|-
 +
| 9
 +
| distance threshold for moving towards player
 +
| ''4''
 +
|-
 +
| 10
 +
| speed
 +
| ''2''
 +
|-
 +
| 11
 +
| chance of attacks missing
 +
| ''.00''
 +
|-
 +
| 12
 +
| whether a "mine monster"
 +
| ''true''
 +
|-
 +
| 13
 +
| experience gained
 +
| ''3''
 +
|-
 +
| 14
 +
| display name
 +
| ''Green Slime''
 +
|-
 +
|}

2024年9月10日 (二) 13:14的版本

此页面解释游戏是如何存储、解析怪物数据。

原始数据

怪物数据存储在Content\Data\Monsters.xnb

格式

下标 字段 样例值
0 health (hit points) 24
1 damage (attack) 5
2 minimum coins to drop (unimplemented) 0
3 maximum coins to drop (unimplemented) 0
4 whether a "glider" (flying) false
5 duration of random movements 1000
6 objects to drop 766 .75 766 .05 153 .1 66 .015 92 .15 96 .005 99 .001
7 resilience (defense) 1
8 jitteriness .01
9 distance threshold for moving towards player 4
10 speed 2
11 chance of attacks missing .00
12 whether a "mine monster" true
13 experience gained 3
14 display name Green Slime