载入中...
搜索中...
未找到
掉落表里的一条掉落。 更多...
#include <LootSystem.h>
Public 属性 | |
| std::string | itemId |
| double | chance = 0.0 |
| [0,1],Independent 模式下 roll 值小于 chance 才掉落 | |
| int | minQty = 1 |
| int | maxQty = 1 |
| double | weight = 0.0 |
| Weighted 模式下的相对权重(必须 > 0 才参与) | |
| bool | unique = false |
详细描述
掉落表里的一条掉落。
在文件 LootSystem.h 第 33 行定义.
类成员变量说明
◆ chance
| double eve::rpg::LootEntry::chance = 0.0 |
[0,1],Independent 模式下 roll 值小于 chance 才掉落
在文件 LootSystem.h 第 35 行定义.
◆ itemId
| std::string eve::rpg::LootEntry::itemId |
在文件 LootSystem.h 第 34 行定义.
◆ maxQty
| int eve::rpg::LootEntry::maxQty = 1 |
在文件 LootSystem.h 第 37 行定义.
◆ minQty
| int eve::rpg::LootEntry::minQty = 1 |
在文件 LootSystem.h 第 36 行定义.
◆ unique
| bool eve::rpg::LootEntry::unique = false |
背包已有或本批已授予同 itemId 时跳过
在文件 LootSystem.h 第 39 行定义.
◆ weight
| double eve::rpg::LootEntry::weight = 0.0 |
Weighted 模式下的相对权重(必须 > 0 才参与)
在文件 LootSystem.h 第 38 行定义.
该结构体的文档由以下文件生成:
- src/modules/rpg/LootSystem.h