Giter VIP home page Giter VIP logo

Comments (5)

LYZhelloworld avatar LYZhelloworld commented on June 2, 2024 1

技术实现

战斗流程 JSON 改动

在战斗流程 JSON 中添加 difficulty 字段,取值如下:

  • 0 (0b00):默认值,难度信息未知(用于兼容以前的版本)
  • 1 (0b01):支持普通难度。
  • 2 (0b10):支持突袭难度。
  • 3 (0b11):支持普通和突袭难度。

其中 312 按位或得来。

数据库改动

@LiamSho 需要你的帮助。)

CopilotOperations 表添加新列 Difficulty。如果数据库实体能用枚举最好,不能的话用 int 也可。

之前没有难度信息的 CopilotOperationDifficulty 默认为 0。

业务逻辑改动

CreateCopilotOperationUpdateCopilotOperationGetCopilotOperationQueryCopilotOperations 相关部分加入新字段。

from maacopilotserver.

MistEO avatar MistEO commented on June 2, 2024

Alisa 说找你,嘻嘻(

from maacopilotserver.

LYZhelloworld avatar LYZhelloworld commented on June 2, 2024

为战斗流程 JSON 增加关卡难度字段

问题描述

目前战斗流程 JSON 文件中只有 stage_name 字段用于区分关卡,但无法区分关卡难度。

解决办法

添加新字段,用于存储难度信息。该信息不会被 MaaAssistantArknights 使用,仅供 MaaCopilotServer 用作信息展示。

一份作业可能有以下几种情况:

  • 仅支持普通难度
  • 仅支持突袭难度
  • 二者皆可

建议做成按位枚举以便将来扩展。

from maacopilotserver.

LYZhelloworld avatar LYZhelloworld commented on June 2, 2024

已完成。 @MistEO

等待前端对接:

作业 JSON 格式变化:

  • 新增 difficulty 字段,类型为 number,取值 03,含义见上。默认值为 0 即未知。

  • copilot/uploadcontent 中的 JSON 格式变化。

  • copilot/update:同上。

  • copilot/get:新增了 difficulty 字段,类型为 number,取值 03,含义见上。

  • copilot/query:同上。

from maacopilotserver.

MistEO avatar MistEO commented on June 2, 2024

cc @martinwang2002 @GalvinGao

from maacopilotserver.

Related Issues (20)

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.