koishi-plugin-dicey-dungeons
Advanced tools
Comparing version 1.1.4 to 1.1.6
@@ -86,3 +86,3 @@ "use strict"; | ||
const { userId, guildId, username } = session; | ||
return `══骰子地下城══\n加入对战 创建对战\n对战信息 销毁对战\n结束对战 结束回合\n状态说明 BUG反馈\n游戏介绍 关于游戏\nTips:对战建议一个群聊一个对战`; | ||
return `══骰子地下城══\n加入对战 创建对战\n对战信息 重置对战\n结束对战 结束回合\n状态说明 BUG反馈\n游戏介绍 关于游戏\nTips:对战建议一个群聊一个对战`; | ||
}); | ||
@@ -104,4 +104,3 @@ ctx.command('骰子地下城') | ||
⚄【结束回合】结束当前回合 | ||
⚅【骰子点数(空格)装备序号】使用对应骰子和装备 | ||
`; | ||
⚅【骰子点数(空格)装备序号】使用对应骰子和装备`; | ||
}); | ||
@@ -113,3 +112,3 @@ ctx.command('骰子地下城') | ||
状态: | ||
⚀燃烧:按燃烧层数,燃烧骰子,即不可使用 | ||
⚀燃烧:按燃烧层数,燃烧骰子,使用会-2血量 | ||
⚁冰冻:按顺序冰冻骰子,点数变成1 | ||
@@ -129,2 +128,4 @@ ⚂诅咒:骰子有50%概率失效 | ||
const { userId, guildId, username } = session; | ||
const at = koishi_1.h.select(session.elements, 'at'); | ||
const play = at?.[0]?.attrs.id; | ||
const game_status = ['游戏结束', '游戏准备', '游戏开始']; | ||
@@ -239,2 +240,3 @@ const read = await ctx.database.get('dice_group', { guildId }); | ||
.subcommand('点数 <dice> <props>') | ||
// .middleware(/^[0-9] [0-9]/, { args: ['$1'] }) | ||
.action(async ({ session }, dice, props) => { | ||
@@ -255,8 +257,8 @@ const { userId, guildId, username } = session; | ||
} | ||
else if (dice_player?.[0]?.dice.length == 0) { | ||
return `══骰子地下城══\n你没有骰子了,输入【结束回合】`; | ||
} | ||
else if (!dice_player?.[0]?.dice.includes(dice)) { | ||
return `══骰子地下城══\n你没有这个骰子`; | ||
} | ||
else if (dice_player?.[0]?.dice.length == 0) { | ||
return `══骰子地下城══\n你没有骰子了,输入【结束回合】`; | ||
} | ||
else if (await Dice_Decision(Introduction[prop].austerity, dice, Introduction[prop].dice) == false) { | ||
@@ -266,2 +268,7 @@ return `══骰子地下城══\n骰子不符合装备,无法使用`; | ||
else if (await 诅咒判定(ctx, userId) == true) { | ||
const skill = dice_player?.[0]?.skill; | ||
const dices = dice_player?.[0]?.dice; | ||
dices.splice(dices.indexOf(dice), 1); //减少骰子 | ||
skill[prop] -= 1; //减少装备次数 | ||
await ctx.database.set('dice_player', { userId }, { skill, dice: dices }); | ||
return `诅咒生效!骰子使用失败`; | ||
@@ -360,3 +367,3 @@ } | ||
await ctx.database.set('dice_player', { userId }, { HP: dice_player?.[0]?.HP - (harm - dice_player?.[0]?.shield), shield: 0 }); | ||
return `护盾抵挡${dice_player?.[0]?.shield}伤害,承受了${dice_player?.[0]?.HP - (harm - dice_player?.[0]?.shield)}`; | ||
return `护盾抵挡${dice_player?.[0]?.shield}伤害,承受了${(harm - dice_player?.[0]?.shield)}`; | ||
} | ||
@@ -363,0 +370,0 @@ } |
{ | ||
"name": "koishi-plugin-dicey-dungeons", | ||
"description": "中文名:骰子地下城 双人回合对战", | ||
"version": "1.1.4", | ||
"version": "1.1.6", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "typings": "lib/index.d.ts", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35317
626