繁殖、遗传与每窝产仔数
首页 / 繁殖与遗传
🧬 遗传系统规格总结
| 参数 | 详细规范 |
|---|---|
| 最大每窝产仔数 | 最多 4 只幼崽 (bd_wolf_litter_max_size) |
| 额外幼崽概率 | 每只额外幼崽 20% (bd_wolf_litter_extra_chance) |
| 同亲本性状继承率 | 80% 概率精确继承相同个性 (bd_breed_same_chance) |
| 同亲本变异概率 | 10% 概率突变为其他个性变体 (bd_breed_same_other_chance) |
| 混合显性普通率 | 40% 普通型继承概率 (bd_breed_mixed_dominant_chance) |
| 混合隐性变体率 | 40% 变体个性继承概率 (bd_breed_mixed_recessive_chance) |
| 稀释回归普通率 | 50% 极性繁殖回归普通型概率 (bd_breed_diluted_normal_chance) |
| 物理体型缩放区间 | 70% (bd_wolf_min_scale_percent) 至 145% (bd_wolf_max_scale_percent) |
| 近亲繁殖治愈物 | 金苹果 (minecraft:golden_apple) (bd_enable_inbred_curing) |
🎲 1. 遗传继承概率
当两只已驯服的狼通过肉类繁殖时,幼崽的个性由动态加权随机算法决定:
$$\text{Offspring Personality} = \begin{cases} \text{Parent Trait} & \text{Prob} = 80% \quad (\text{Matching Parents}) \ \text{Variant Mutation} & \text{Prob} = 10% \quad (\text{Matching Parents}) \ \text{Dominant Normal} & \text{Prob} = 40% \quad (\text{Normal + Variant}) \ \text{Recessive Variant} & \text{Prob} = 40% \quad (\text{Normal + Variant}) \ \text{Diluted Reversion} & \text{Prob} = 50% \quad (\text{Aggressive + Pacifist}) \end{cases}$$
🐕 2. 动态每窝产仔数
与原版繁殖(必定只产生 1 只幼崽)不同,Better Dogs 会动态计算 1 到 4 只幼崽:
第一只幼崽:100% 必定产生。 第二只幼崽:20% 概率触发判定(解锁 litter_two 进度)。 第三只幼崽:20% 概率触发判定(解锁 litter_three 进度)。 第四只幼崽:20% 概率触发判定(解锁 litter_four 进度)。
🧬 3. 近亲繁殖与血统恢复
- 近亲侏儒惩罚:近亲繁殖(同窝兄弟姐妹或父母/子女交配)会将幼崽标记为
is_inbred: 1b。近亲侏儒幼崽的最大体型上限被严格限制在 80%,并散发微弱的腐肉粒子 (bd_show_runt_particles)。 - 金苹果治愈:向近亲侏儒喂食金苹果可治愈惩罚,获得 重新开始 (A Fresh Start) 成就(+100 经验),并将
is_inbred标签清除为0b。 - 杂交复原:将近亲侏儒与无血缘关系的健康狼交配,可以产下完全健康的幼崽(解锁
outcross_runt进度)。
