Files

57 lines
3.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 13 抽卡与保底:原作模块设计
## 功能定位
统一抽卡按钮、消费、候选奖励、权重和保底配置。
## 功能流程
选择抽卡池与按钮 → 按抽数及资源配置消费 → 从奖励池取得奖励 → 按对应池的保底配置处理保底。
以上按原作配置关系整理功能步骤,具体条件与数值见下文及规则说明。
## 子功能构成
| 子功能 | 设计内容 |
| --- | --- |
| 抽卡操作与成本 | 按type/buttonNum区分按钮,gachaCount为抽数;isFree/isAD与ADcooldown描述免费广告档,needItemID/needCount与替代资源字段描述消费。 |
| 抽卡候选奖励 | 同type下记录候选奖励、品质、权重、特殊标记和数量;rewardType必须与rewardID一起解释,-1按原注释指特定类型中的全池。 |
| 抽卡保底 | type关联抽卡池,ceilCount是保底次数,isResetBeforeCeil标记提前获得时的重置配置,ceilRewardString明确对应奖励行。 |
## 功能构成与规则关系
gachatype 按 type/buttonNum 定义 gachaCount、免费或广告、消耗和替代道具;gacha 同 type 行组成配置候选池;gachaceildata 按 type 配 ceilCount/isResetBeforeCeil/ceilRewardString。rewardID=-1 注释表示指定类型中的全池。
## 关键规则与数值
| 原作规则 | 数值 | 来源 |
| --- | --- | --- |
| shopGacha单抽:道具101消耗30,存在替代道具204 | gachaCount=1;needItemID=101;needCount=30;isAlterBtn=True;alterItemID=204;alterCount=30 | E-gachatype / StringId=shopGacha_1_1 / CSV记录5 |
| shopGacha十连:道具101消耗300;抵扣值并非已确认券消耗数 | gachaCount=10;needItemID=101;needCount=300;alterItemID=204;alterCount=30 | E-gachatype / StringId=shopGacha_2_10 / CSV记录6 |
| 高级装备保底次数及提前命中重置标记 | type=advancedEquipmentGacha;ceilCount=20;isResetBeforeCeil=False;ceilRewardString=advancedEquipmentGacha_EQUIPMENT_3_-1_FALSE_1 | E-gachaceildata / StringId=advancedEquipmentGacha20 / CSV记录4 |
| 增强装备保底次数及提前命中重置标记 | type=enhancedEquipmentGacha;ceilCount=50;isResetBeforeCeil=False;ceilRewardString=enhancedEquipmentGacha_EQUIPMENT_3_-1_TRUE_1 | E-gachaceildata / StringId=enhancedEquipmentGacha50 / CSV记录5 |
| 坐骑保底必须读取ceilCount=400;StringId尾部50不是实际次数 | type=mount_Gacha;ceilCount=400;isResetBeforeCeil=True;ceilRewardString=mount_Gacha_ITEM_0_169_FALSE_1 | E-gachaceildata / StringId=mount_00_Gacha50 / CSV记录6 |
## 完整数值表
| 配置表 | 记录数 | 完整数据 |
| --- | --- | --- |
| gachatype | 23 | [CSV](./03-表格/gachatype.csv) |
| gacha | 60 | [CSV](./03-表格/gacha.csv) |
| gachaceildata | 3 | [CSV](./03-表格/gachaceildata.csv) |
[规则说明](./02-规则说明.md) · [数值说明](./03-数值说明.md) · [字段字典](./03-表格/字段字典.csv) · [数组逐项明细](./03-表格/数组逐项明细.csv)
[返回总纲](../00-局外系统模块总纲.md)
## 相关功能模块
| 模块 | 关联内容 |
| --- | --- |
| [资源背包与体力](../02-资源背包与体力/01-模块设计文档.md) | 统一道具类型、礼包内容、资源来源以及大厅到局内的资源映射。 |
| [永久装备与合成](../03-永久装备与合成/01-模块设计文档.md) | 负责局外装备身份、装备位、品质星级、升级消耗和基础属性配置。 |
| [遗物与合成](../05-遗物与合成/01-模块设计文档.md) | 负责遗物目录、装备槽、属性技能和品质星级合成。 |
| [宠物与成长](../06-宠物与成长/01-模块设计文档.md) | 负责宠物获取、重复转化、碎片升级、技能开放与限时成长活动。 |
| [坐骑与觉醒](../07-坐骑与觉醒/01-模块设计文档.md) | 管理坐骑解锁、升级、觉醒、技能和活动材料兑换。 |