drdplus/skills
Composer 安装命令:
composer require drdplus/skills
包简介
Skills for Drd+
README 文档
README
Can you swim? How long you will read that book? Can you hold on horse?
Warning about distinction from PPH rules
The reading and writing skill gives a "bonus" to reading speed, despite PPH rules where reading and writing is impossible.
This library gives -164 as a "bonus" to reading speed, which means 100 years. The reason is mostly technical - because returning something is easier and more clear than nothing (by null or exception), and partly because its logical - after ten years you have a chance to decode that strange symbols, especially when they mean something in a language you already know.
Structure
Skills are all the person skills on one pile. -> SameTypeSkills are skills of same type, like physical, on one pile -> Skill is specific learned "ability", like horse riding -> SkillRank is a "level" of the skill => SkillPoint is the only but required price of a SkillRank
SkillPoint is the currency unit for a SkillRank, composed from specific values, in specific combinations -> BackgroundSkillPoints are standard value given by first level -> ProfessionLevel is a level increment, cary-ing a property increment, which provides a skill point -> two SkillPoint(s) of type(s)-different-than-paid-one can be used for trade of new SkillPoint
Checks if payments haven't been used more times elsewhere: (that should check at least Skills as the final aggregator, or better every aggregator on the way)
SkillPoint
- BackgroundSkillPoints - check their total usage against their availability by \DrdPlus\Background\BackgroundSkillPoints::getSkillPoints
- ProfessionLevel - there is nothing to check, on every level can be obtained plenty of skill points
- cross-type SkillPoint as a payment - has to be unique, therefore no one else can use it, for payment nor as standard skill point
SkillRank
- SkillPoint has to be unique in whole universe, see SkillPoint cross-type payment check
Skill
- can be used just as an arbiter due its aggregating meaning
can check if BackgroundSkillPoints are not overusedshould not check it, its too tricky, let it to Skills- can check if SkillPoint and SkillRank are unique locally
- can check if cross-type SkillPoint(s) as a payment are unique and not used as a standard point locally
SameTypeSkills (can sum all the first and next levels skill ranks)
- can be used just as an arbiter due its aggregating meaning
CombinedSkills + PhysicalSkills + PsychicalSkills (has ability to find out unused skill point values of same-type skills)
- all the same-type skills it aggregate have to be unique in whole universe
Skills
- CombinedSkills + PhysicalSkills + PsychicalSkills has to be unique in whole universe
- should be the final arbiter,
recommended way is to re-use existing checks of sub-aggregates
drdplus/skills 适用场景与选型建议
drdplus/skills 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 167 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 08 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 drdplus/skills 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 drdplus/skills 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 167
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 8
- 依赖项目数: 8
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-21