fix weapon description
This commit is contained in:
2 files changed
+11
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
|
||||
const actions = ['pick up', 'grab', 'get', 'aquire', 'obtain', 'gain', 'take possesssion of'];
|
||||
const action = ['pick up', 'grab', 'get', 'aquire', 'obtain', 'gain', 'take possesssion of'];
|
||||
|
||||
module.exports = {
|
||||
name: "inventory-add",
|
||||
@@ -44,6 +44,13 @@ module.exports = {
|
||||
type: 3,
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
name: "description",
|
||||
description: "firearm description",
|
||||
value: "description",
|
||||
type: 3,
|
||||
required: true,
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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