Giter VIP home page Giter VIP logo

Comments (8)

monsterxcn avatar monsterxcn commented on June 1, 2024

限定五星相关处理需要卡池信息,采用由 @DGP-Studio 提供的文件:

https://github.com/DGP-Studio/Snap.Metadata/blob/main/Output/GachaEvent.json

from nonebot-plugin-gachalogs.

monsterxcn avatar monsterxcn commented on June 1, 2024

卡池运势标记的判断条件、显示配色均采用了 @vikiboss/genshin-helper 的设计 :

https://github.com/vikiboss/genshin-helper/blob/8454048c202fec57637b568ece1abeeb586b6754/src/render/pages/gacha/components/Overview/index.tsx#L26-L33

https://github.com/vikiboss/genshin-helper/blob/bf4ec86873362359f172d8221fcc767b6afce7da/src/render/utils/colors.less#L24-L35

from nonebot-plugin-gachalogs.

liuzj288 avatar liuzj288 commented on June 1, 2024

https://genshin.voderl.cn/的这两个图怎么接入呢,我觉得挺有意思
image
image

from nonebot-plugin-gachalogs.

monsterxcn avatar monsterxcn commented on June 1, 2024

@liuzj288 抽取数目展示图暂时不打算做,抽卡成就有机会可以尝试做一下。

不过目前主要是限制于排版,有些东西已经没地方塞了,做这些东西前还要先琢磨一下排版

from nonebot-plugin-gachalogs.

monsterxcn avatar monsterxcn commented on June 1, 2024

抽卡成就及其达成条件采用了 @voderl/genshin-gacha-analyzer 的设计:

https://github.com/voderl/genshin-gacha-analyzer/blob/main/src/pages/ShowPage/Achievements/achievements.ts

from nonebot-plugin-gachalogs.

liuzj288 avatar liuzj288 commented on June 1, 2024

抽卡成就及其达成条件采用了 @voderl/genshin-gacha-analyzer 的设计:

https://github.com/voderl/genshin-gacha-analyzer/blob/main/src/pages/ShowPage/Achievements/achievements.ts

抽卡记录现在只能绑定cookie获取吗?能不能手动导入json数据?

from nonebot-plugin-gachalogs.

monsterxcn avatar monsterxcn commented on June 1, 2024

抽卡记录现在只能绑定cookie获取吗?能不能手动导入json数据?

@liuzj288 还没想好抽卡记录导入怎么做,一直是 TODO 状态,暂时还不支持手动导入。

from nonebot-plugin-gachalogs.

monsterxcn avatar monsterxcn commented on June 1, 2024

抽卡记录导入采用如下设计:

  1. 支持两种 JSON 数据格式导入:

    • 内部格式:导入前发送本地记录给用户留作备份;接收到此文件时强制恢复本地记录
    • UIGF v2.2 格式:插件导出本地记录时使用的 JSON 格式;接收到此文件时尝试合并到本地记录
  2. 普通用户和超级用户具有不同权限:

    • 普通用户:如果有本地记录,导入的记录 UID 必须与本地相同,不同则阻止导入;如果没有本地记录则正常执行恢复或合并(新增)
    • 超级用户:如果导入的记录 UID 与本地相同,则正常为超级用户执行恢复或合并;如果导入的记录 UID 与本地不同,则先查找在 Bot 上是否有某用户本地记录与导入的记录 UID 相同,存在则为该用户执行恢复或合并,不存在则阻止导入;如果没有本地记录则正常为超级用户执行恢复或合并(新增)
  3. 记录合并的基本原则:

    • 所有非官方生成的记录数据的 "id" 均不被信任(表现为 "1000" 开头)
    • 一份文件中由记录数据的 "id" 确定的抽卡记录的相对顺序被信任
    • 导入记录与本地记录在某时刻只会对应唯一确定的单抽(1 条数据)或十连(10 条数据)
    • 一次十连中的 10 条数据在合并时当作一个整体,不改变其相对顺序

更新:部分真实数据表明,单次十连的 10 条数据有小概率会对应连续的两秒。

因此,上述假设的记录合并基本原则第 3 条应为:导入记录与本地记录在某时刻一般情况下对应唯一确定的单抽(1 条数据)或十连(10 条数据),某时刻对应的数据条数既非 1 也非 10 时,应当与紧邻的前一秒或后一秒对应数据组成一次十连。

from nonebot-plugin-gachalogs.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.