fix weapon description
This commit is contained in:
2 files changed
+11
-3
No files matched your search
@@ -1,7 +1,7 @@
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const Inventory = require('../structures/inventory');
|
||||
|
||||
const actions = ['ditch', 'drop', 'forget', 'throw out', 'leave', 'set down', 'let go of'];
|
||||
const action = ['ditch', 'drop', 'forget', 'throw out', 'leave', 'set down', 'let go of'];
|
||||
|
||||
module.exports = {
|
||||
name: "inventory",
|
||||
@@ -133,7 +133,8 @@ module.exports = {
|
||||
|
||||
let description = `To see detials on an Item use \`/inventory item [item number]\`\n\n\`\`\``
|
||||
for (let i = 0; i < inventory.items.length; i++) {
|
||||
description += `${i+1}. ${inventory.items[i].name} - ${inventory.items[i].description}\n`
|
||||
if (inventory.items[i].type == 'firearm') description += `${i+1}. ${inventory.items[i].weaponType} - ${inventory.items[i].description}\n`;
|
||||
else description += `${i+1}. ${inventory.items[i].name} - ${inventory.items[i].description}\n`
|
||||
}
|
||||
description += "```"
|
||||
|
||||
|
||||
Reference in new issue
Block a user