Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

摩点抽卡求助 #11

Open
storm121377 opened this issue Apr 12, 2018 · 1 comment
Open

摩点抽卡求助 #11

storm121377 opened this issue Apr 12, 2018 · 1 comment

Comments

@storm121377
Copy link

不是很懂编程的麻瓜
研究了很久的抽卡服务端
环境数据库什么的也都配置的
不知道抽卡接口和抽卡查询接口应该写
或者想问下有更小白一点的教程吗
感恩

@chinshin
Copy link
Owner

...考虑一下简单的话可以randint(1,100)控制概率(卡的稀有度r,sr,ur什么的);然后把概率(稀有度)对应的卡编号,然后用choice随机选一个。

就每次查询到新订单的时候,判断金额,先抽选卡的稀有度,再抽选对应稀有度的卡片,写入数据库,然后拼接到集资订单消息的后面。

大概逻辑就这样

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants