Comments (5)
技术实现
战斗流程 JSON 改动
在战斗流程 JSON 中添加 difficulty
字段,取值如下:
0 (0b00)
:默认值,难度信息未知(用于兼容以前的版本)1 (0b01)
:支持普通难度。2 (0b10)
:支持突袭难度。3 (0b11)
:支持普通和突袭难度。
其中 3
为 1
和 2
按位或得来。
数据库改动
(@LiamSho 需要你的帮助。)
在 CopilotOperations
表添加新列 Difficulty
。如果数据库实体能用枚举最好,不能的话用 int
也可。
之前没有难度信息的 CopilotOperation
的 Difficulty
默认为 0。
业务逻辑改动
CreateCopilotOperation
、UpdateCopilotOperation
、GetCopilotOperation
、QueryCopilotOperations
相关部分加入新字段。
from maacopilotserver.
Alisa 说找你,嘻嘻(
from maacopilotserver.
为战斗流程 JSON 增加关卡难度字段
问题描述
目前战斗流程 JSON 文件中只有 stage_name
字段用于区分关卡,但无法区分关卡难度。
解决办法
添加新字段,用于存储难度信息。该信息不会被 MaaAssistantArknights
使用,仅供 MaaCopilotServer
用作信息展示。
一份作业可能有以下几种情况:
- 仅支持普通难度
- 仅支持突袭难度
- 二者皆可
建议做成按位枚举以便将来扩展。
from maacopilotserver.
已完成。 @MistEO
等待前端对接:
作业 JSON 格式变化:
-
新增
difficulty
字段,类型为number
,取值0
到3
,含义见上。默认值为0
即未知。 -
copilot/upload
:content
中的 JSON 格式变化。 -
copilot/update
:同上。 -
copilot/get
:新增了difficulty
字段,类型为number
,取值0
到3
,含义见上。 -
copilot/query
:同上。
from maacopilotserver.
from maacopilotserver.
Related Issues (20)
- 修改热度计算公式 HOT 6
- 建议把浏览量改为使用次数
- “包含干员”选择某些干员时不生效 HOT 2
- 缺少高难关卡
- 适配 Kubernetes
- 作业站什么时候支持H11!
- 希望后端放宽关卡 ID 的校验,或者不校验 HOT 1
- 支持 core 新字段 "costs", "BulletTime"
- 关卡重复
- 拆分 levels.json 为多个 JSON HOT 1
- 我们不要用 `dev` 分支了吧 HOT 1
- 模拟悖论关卡能支持吗?
- Replace `NJsonSchema` with `JsonSchema.NET` HOT 1
- 搜索功能不 work HOT 1
- 优化激活邮件内容
- 不支持上传危机合约关卡的作业
- 自定义关卡(危机合约),获取到的关卡名错误 HOT 2
- 新增支持 `cooling` 字段 HOT 1
- 根据活动关卡开放时间,自动降低活动关卡作业排序优先级(或热度)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maacopilotserver.