Skip to content

Commit

Permalink
feat:更新1.4版本上半相关内容
Browse files Browse the repository at this point in the history
Co-Authored-By: 二枣子 <[email protected]>
Co-Authored-By: SLDHshenlindahuo <[email protected]>
  • Loading branch information
3 people committed Nov 14, 2024
1 parent 160e27f commit d21fc67
Show file tree
Hide file tree
Showing 13 changed files with 117 additions and 29 deletions.
2 changes: 1 addition & 1 deletion apps/Help.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class Help extends plugin {
priority: 1008,
rule: [
{
reg: "^(~|~|鸣潮)帮助$",
reg: "^(~|~|鸣潮)(帮助|菜单|功能)$",
fnc: "allHelp"
},
{
Expand Down
16 changes: 7 additions & 9 deletions apps/imgUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { randomUUID, createHash } from 'crypto';
import Config from '../components/Config.js';
import Wiki from '../components/Wiki.js';
import axios from 'axios';
import sharp from 'sharp';
import path from 'path';
import fs from 'fs';

Expand Down Expand Up @@ -228,17 +229,14 @@ export class ImgUploader extends plugin {
await fs.promises.mkdir(path.dirname(savePath), { recursive: true });

try {
const response = await axios.get(url, {
responseType: 'stream',
timeout,
});

const fileStream = fs.createWriteStream(savePath);
response.data.pipe(fileStream);
const response = await axios.get(url, { responseType: 'stream', timeout });

await new Promise((resolve, reject) => {
fileStream.on('finish', resolve);
fileStream.on('error', reject);
response.data
.pipe(sharp().webp())
.pipe(fs.createWriteStream(savePath))
.on('finish', resolve)
.on('error', reject);
});

return true;
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "waves-plugin",
"version": "1.5.11",
"version": "1.5.12",
"description": "基于 Yunzai 的鸣潮游戏数据查询插件",
"main": "index.js",
"scripts": {
Expand All @@ -10,7 +10,8 @@
"module": "index.js",
"dependencies": {
"axios": "^1.7.2",
"qs": "^6.12.1"
"qs": "^6.12.1",
"sharp": "^0.33.5"
},
"keywords": [
"Yunzai-Bot",
Expand Down
31 changes: 30 additions & 1 deletion resources/Alias/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,88 +3,117 @@
- 鸡眼
- 基岩
- 将军
- jy
鉴心:
- 剑心
- 小道士
- jx
卡卡罗:
- 卡卡萝
- 团长
- 牢卡
- kkl
安可:
- 安科
- 安克
- 羊咩
- ak
维里奈:
- 威力奶
- 维利奈
- 育种员
- wln
凌阳:
- 雪豹
- 狮子
- 羚羊
- 陵阳
- ly
漂泊者-女-湮灭:
- 暗主
- 湮灭主
- 漂泊者
- pbz
漂泊者-男-湮灭:
- 暗主
- 湮灭主
- 漂泊者
- pbz
漂泊者-女-衍射:
- 光主
- 衍射主
- 漂泊者
- pbz
漂泊者-男-衍射:
- 光主
- 衍射主
- 漂泊者
- pbz
秧秧:
- 泱泱
- 怏怏
- yy
白芷:
- 白纸
- 白止
- bz
炽霞:
- 赤霞
- 马小芳
- cx
散华:
- 散花
- sh
秋水:
- 邱水
- 情报商人
- qs
丹瑾:
- 丹堇
- 丹谨
- 游侠
- 小西王
- dj
莫特斐:
- 莫特非
- 莫特飞
- 墨菲特
- 红龙
- mtf
渊武:
- 原武
- 袁武
- 拳馆老板
- yw
桃祈:
- 桃祁
- tq
吟霖:
- 吟林
- yl
今汐:
- 今夕
- 令尹
- 龙女
- jx
长离:
- 长璃
- cl
折枝:
- 折纸
- zz
相里要:
- 里哥
- 鸡哥
- xly
守岸人:
- 守夜人
- sar
釉瑚:
- 雌小鬼
- 杂鱼
- 油壶
- 油壶
- yh
椿:
-
- c
4 changes: 3 additions & 1 deletion resources/Alias/weapon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@
诸方玄枢:
- 相里要专武
星序协响:
- 守岸人专武
- 守岸人专武
裁春:
- 椿专武
16 changes: 8 additions & 8 deletions resources/Simulator/role.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pool_name: 夜将寒色去
pool_name: 徘徊迷宫尽处
five_star:
up_pool:
- name: 忌炎
- name: 椿
other_pool:
- name: 维里奈
- name: 安可
Expand All @@ -13,16 +13,16 @@ five_star:
other: 0.5
four_star:
up_pool:
- name: 釉瑚
- name: 散华
- name: 莫特斐
- name: 丹瑾
- name: 秧秧
- name: 秋水
other_pool:
- name: 桃祈
- name: 渊武
- name: 秧秧
- name: 丹瑾
- name: 散华
- name: 釉瑚
- name: 炽霞
- name: 秋水
- name: 莫特斐
- name: 白芷
- name: 东落
- name: 西升
Expand Down
13 changes: 7 additions & 6 deletions resources/Simulator/weapon.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
pool_name: 「浮声沉兵」
five_star:
up_pool:
- name: 苍鳞千嶂
- name: 裁春
other_pool: []
basic: 0.008
increase: 0.0902
other: 0
four_star:
up_pool:
- name: 东落
- name: 奇幻变奏
- name: 尘云旋臂
- name: 核熔星盘
- name: 不归孤军
- name: 飞逝
other_pool:
- name: 西升
- name: 秧秧
Expand All @@ -22,8 +22,9 @@ four_star:
- name: 秋水
- name: 渊武
- name: 骇行
- name: 飞逝
- name: 尘云旋臂
- name: 异度
- name: 东落
- name: 莫特斐
- name: 永续坍缩
- name: 无眠烈火
Expand All @@ -32,7 +33,7 @@ four_star:
- name: 袍泽之固
- name: 行进序曲
- name: 华彩乐段
- name: 不归孤军
- name: 奇幻变奏
- name: 永夜长明
- name: 呼啸重音
basic: 0.06
Expand Down
Binary file added resources/Strategy/Linn/椿.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/Strategy/XMu/椿.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/Strategy/moealkyne/椿.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/Template/gacha/gacha.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#body {
transform-origin: top left;
display: inline-block;
font-family: "Guruwords";
}

#body>div {
Expand Down
56 changes: 56 additions & 0 deletions resources/Weight/1603.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
baseAttack: 1037
baseDefense: 1161
baseHP: 10325
subProps:
- name: 暴击伤害
weight: 1
- name: 暴击
weight: 1
- name: 攻击百分比
weight: 0.5
- name: 生命百分比
weight: 0
- name: 防御百分比
weight: 0
- name: 共鸣效率
weight: 0.1
- name: 普攻伤害加成
weight: 0.4
- name: 重击伤害加成
weight: 0
- name: 共鸣技能伤害加成
weight: 0
- name: 共鸣解放伤害加成
weight: 0.05
mainProps:
C4:
- name: 暴击伤害
weight: 0.5
- name: 暴击
weight: 0.5
- name: 治疗效果加成
weight: 0
- name: 生命百分比
weight: 0
- name: 攻击百分比
weight: 0.25
- name: 防御百分比
weight: 0
C3:
- name: 伤害加成
weight: 0.75
- name: 攻击百分比
weight: 0.75
- name: 生命百分比
weight: 0
- name: 防御百分比
weight: 0
- name: 共鸣效率
weight: 0.75
C1:
- name: 攻击百分比
weight: 1
- name: 防御百分比
weight: 0
- name: 生命百分比
weight: 0
2 changes: 1 addition & 1 deletion resources/server/login.html

Large diffs are not rendered by default.

0 comments on commit d21fc67

Please sign in to comment.