From 3ab9eab9430f2e6cfd63f1efbb926a1c8fad18ee Mon Sep 17 00:00:00 2001 From: TobenderZephyr Date: Wed, 28 Apr 2021 19:30:19 +0200 Subject: [PATCH] (fix) more reference errors --- commands/Cast.js | 15 ++++++--------- commands/Chant.js | 15 ++++++--------- globals.js | 3 ++- 3 files changed, 14 insertions(+), 19 deletions(-) diff --git a/commands/Cast.js b/commands/Cast.js index 2373b58..c72d58b 100644 --- a/commands/Cast.js +++ b/commands/Cast.js @@ -21,8 +21,7 @@ module.exports = { if (docs.length === 0) { return message.reply(findMessage('NOENTRY')); } - if (!docs[0].character.hasOwnProperty('spells')) - return message.reply(findMessage('NO_SPELLS')); + if (!docs[0].character.hasOwnProperty('spells')) return message.reply(findMessage('NO_SPELLS')); if (!isNaN(args[0])) { return message.reply(findMessage('WRONG_ARGUMENTS')); } @@ -44,7 +43,7 @@ module.exports = { ); const Reply = new Discord.MessageEmbed(); Reply.addFields({ - name: `Du würfelst auf das Talent **${Spell.Name}** ( Stufe ${Spell.Level} ${ + name: `Du würfelst auf den Zauber **${Spell.Name}** ( Stufe ${Spell.Level} ${ Bonus ? `${f(Bonus)} ` : '' })`, value: CreateResultTable({ @@ -72,17 +71,15 @@ module.exports = { } else if (Passed < 3) { Reply.addFields({ name: findMessage('TITLE_FAILURE'), - value: `${ - Passed === 0 ? 'Keine Probe' : `nur ${Passed}/3 Proben` - } erfolgreich. 😪`, + value: `${Passed === 0 ? 'Keine Probe' : `nur ${Passed}/3 Proben`} erfolgreich. 😪`, inline: false, }); } else { Reply.addFields({ name: findMessage('TITLE_SUCCESS'), - value: `Dein verbleibender Bonus: ${PointsRemaining}/${ - Spell.Level - } (QS${CalculateQuality(PointsRemaining)})`, + value: `Dein verbleibender Bonus: ${PointsRemaining}/${Spell.Level} (QS${CalculateQuality( + PointsRemaining + )})`, inline: false, }); } diff --git a/commands/Chant.js b/commands/Chant.js index fb620c0..bca7ce3 100644 --- a/commands/Chant.js +++ b/commands/Chant.js @@ -21,8 +21,7 @@ module.exports = { if (docs.length === 0) { return message.reply(findMessage('NOENTRY')); } - if (!docs[0].character.hasOwnProperty('chants')) - return message.reply(findMessage('NO_CHANTS')); + if (!docs[0].character.hasOwnProperty('chants')) return message.reply(findMessage('NO_CHANTS')); if (!isNaN(args[0])) { return message.reply(findMessage('WRONG_ARGUMENTS')); } @@ -44,7 +43,7 @@ module.exports = { ); const Reply = new Discord.MessageEmbed(); Reply.addFields({ - name: `Du würfelst auf das Talent **${Chant.Name}** ( Stufe ${Chant.Level} ${ + name: `Du würfelst auf die Liturgie **${Chant.Name}** ( Stufe ${Chant.Level} ${ Bonus ? `${f(Bonus)} ` : '' })`, value: CreateResultTable({ @@ -72,17 +71,15 @@ module.exports = { } else if (Passed < 3) { Reply.addFields({ name: findMessage('TITLE_FAILURE'), - value: `${ - Passed === 0 ? 'Keine Probe' : `nur ${Passed}/3 Proben` - } erfolgreich. 😪`, + value: `${Passed === 0 ? 'Keine Probe' : `nur ${Passed}/3 Proben`} erfolgreich. 😪`, inline: false, }); } else { Reply.addFields({ name: findMessage('TITLE_SUCCESS'), - value: `Dein verbleibender Bonus: ${PointsRemaining}/${ - Chant.Level - } (QS${CalculateQuality(PointsRemaining)})`, + value: `Dein verbleibender Bonus: ${PointsRemaining}/${Chant.Level} (QS${CalculateQuality( + PointsRemaining + )})`, inline: false, }); } diff --git a/globals.js b/globals.js index 3986889..3011b5b 100644 --- a/globals.js +++ b/globals.js @@ -146,7 +146,8 @@ const Replies = [ { id: 'SPELLS_DESCRIPTION', string: 'Folgende Zaubersprüche beherrschst du:'}, { id: 'NO_CHANTS', string: 'Du kennst keine Liturgien.' }, { id: 'CHANTS_TITLE', string: 'Liturgien'}, - { id: 'CHANTS_DESCRIPTION', string: 'Folgende Liturgien beherrschst du:'}, + { id: 'CHANTS_DESCRIPTION', string: 'Folgende Liturgien beherrschst du:' }, + { id: 'CHANT_UNKNOWN', string: 'Diese Liturgie kenne ich nicht.'} ]; const Declination = ['dem', 'der', 'dem', '']; // Maskulinum, Feminimum, Neutrum, None const Articles = ['Der','Die','Das',''];