Skip to main content

适用于nonebot的三角洲鼠鼠偷吃模拟器(开容器模拟器)机器人插件

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-deltaforce-simulator

介绍

  • nonebot平台的三角洲行动鼠鼠偷吃模拟器(开容器模拟器)
  • 本项目思路源于该网站的思路,物品信息图片资源json来源于该项目的整理,图片资源文件来源于三角洲官网。
  • 本插件为受群友之托开发的插件,作者不是三角洲玩家,因此插件各容器的白、绿、蓝、紫、金、红物品爆率,以及可能摸到的物品类别均由AI根据网上的资料整理生成生成
  • 支持添加修改自定义容器,支持修改容器内各品质物品爆率、容器大小以及可能摸出的物品数量范围和种类

插件效果

安装

  • 手动安装

    git clone https://github.com/Alpaca4610/nonebot_plugin_deltaforce_simulator.git
    

    下载完成后在bot项目的pyproject.toml文件手动添加插件:

    plugin_dirs = ["xxxxxx","xxxxxx",......,"下载完成的插件路径/nonebot-plugin-deltaforce-simulator]
    

修改容器配置文

修改容器配置json文件container_configs.json,实现自定义容器以及爆率,示例如下:

"small_safe": {
        "grid_size": 3, // 容器大小, N x N
        "allow_types": ["collection","armor"],  //该容器能开出的物品类型,按需填入,armor为护甲,bag为背包,chest为胸挂,collection为收集品,helmet为头盔
        "grade_weights": {"1": 15, "2": 20, "3": 25, "4": 20, "5": 15, "6": 5},  // 该容器内各品质物品的爆率,1~6,数字越大越稀有,分别对应白、绿、蓝、紫、金、红
        "min_items": 1,  // 该容器内物品数量范围最小值(至少会开到多少个物品)
        "max_items": 2,  // 该容器内物品数量范围,最大值(最多会开到多少个物品)
        "name": "小保险箱",  // 容器名称
        "icon": "resource/xbxx.png",  // 容器图标图片的相对路径,图片可以从三角洲官网获取
        "rarity": 3  // 容器稀有度,1~5,数字越大越稀有
    },

然后在.env文件中添加自定义的json文件的绝对路径:

deltaforce_sim_config = "xxxxxxx"

使用方法

  • 发送“开始跑刀”开始,如有命令前缀需要添加
  • 跑刀结果出来后,发送“还要吃”继续开容器,不需要添加命令前缀
  • 跑刀结果出来后,发送其他任意信息撤离

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_deltaforce_simulator-1.0.0.tar.gz (9.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file nonebot_plugin_deltaforce_simulator-1.0.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_deltaforce_simulator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 22b869fce428b5343a47a627c44737937bab0b13bbc6fcfb88d75ac189c54ecb
MD5 7be3ad73b8993e16c98cce3acccb0539
BLAKE2b-256 68c22c16e1d66b583250edc71ce5c134b06fbb668506da8d5eca0c4decab0f43

See more details on using hashes here.

File details

Details for the file nonebot_plugin_deltaforce_simulator-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_deltaforce_simulator-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4b34717b68c9486e0f4f2fcc1b90404b6071e9e1a97a868443899d0bfe33304
MD5 356e0f259250425ea05f4c0fb1029c3d
BLAKE2b-256 704e1a478e5f6031c36cdc7d6577b71831375076d424ca7a8aece32837fcb4e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page