koishi-plugin-dicey-dungeons
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -47,3 +47,3 @@ "use strict"; | ||
"治愈水晶": { descriptions: "[1-3]回复□生命值", austerity: 1, dice: '1-3', quantities: 1, harm: '□', Category: ['回复'] }, | ||
"木质盾牌": { descriptions: "[1-4]获得□点护盾", austerity: 1, dice: '1-3', quantities: 1, harm: '□', Category: ['护盾'] }, | ||
"木质盾牌": { descriptions: "[1-4]获得□点护盾", austerity: 1, dice: '1-4', quantities: 1, harm: '□', Category: ['护盾'] }, | ||
"复制": { descriptions: "[4-6]复制1个骰子", austerity: 1, dice: '4-6', quantities: 1, harm: '□', Category: ['复制'] }, | ||
@@ -83,3 +83,3 @@ "铲": { descriptions: "颠倒1个骰子", austerity: 3, dice: '', quantities: 1, harm: '□', Category: ['颠倒'] }, | ||
const { userId, guildId, username } = session; | ||
return `══骰子地下城══\n加入对战 创建对战\n对战信息 销毁对战\n结束对战 结束回合\n状态说明 BUG反馈\n游戏介绍 关于作者\nTips:对战建议一个群聊一个对战`; | ||
return `══骰子地下城══\n加入对战 创建对战\n对战信息 销毁对战\n结束对战 结束回合\n状态说明 BUG反馈\n游戏介绍 关于游戏\nTips:对战建议一个群聊一个对战`; | ||
}); | ||
@@ -155,6 +155,6 @@ ctx.command('骰子地下城') | ||
const dice_group = await ctx.database.get('dice_group', { guildId }); | ||
await ctx.database.remove('dice_group', { guildId }); | ||
await ctx.database.remove('dice_player', { userId: dice_group?.[0]?.Play_1_userId }); | ||
await ctx.database.remove('dice_player', { userId: dice_group?.[0]?.Play_2_userId }); | ||
if (dice_group?.[0]?.Play_1_userId == userId || dice_group?.[0]?.Play_2_userId == userId) { | ||
await ctx.database.remove('dice_group', { guildId }); | ||
await ctx.database.remove('dice_player', { userId: dice_group?.[0]?.Play_1_userId }); | ||
await ctx.database.remove('dice_player', { userId: dice_group?.[0]?.Play_2_userId }); | ||
return `══骰子地下城══\n->重置对战成功`; | ||
@@ -161,0 +161,0 @@ } |
{ | ||
"name": "koishi-plugin-dicey-dungeons", | ||
"description": "中文名:骰子地下城 双人回合对战", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "typings": "lib/index.d.ts", |
34346