update/configure killfeed to show weapon thumbnail

This commit is contained in:
SowinskiBraeden committed 2024-01-04 08:55:25 -08:00
1 parent 46c4a55fac
commit a53efbd4f2
5 files changed
+115 -32

No files matched your search

+4 -2
View File
@@ -18,6 +18,7 @@ module.exports = {
serverID: GuildId,
autoRestart: guild.server.autoRestart,
showKillfeedCoords: guild.server.showKillfeedCoords,
showKillfeedWeapon: guild.server.showKillfeedWeapon,
purchaseUAV: guild.server.purchaseUAV,
purchaseEMP: guild.server.purchaseEMP,
allowedChannels: guild.server.allowedChannels,
@@ -56,8 +57,9 @@ module.exports = {
getDefaultSettings(GuildId) {
return {
serverID: GuildId,
autoRestart: 0, //
showKillfeedCoords: 0,
autoRestart: 0,
showKillfeedCoords: 0,
showKillfeedWeapon: 0,
purchaseUAV: 1, // Allow/Disallow purchase of UAVs
purchaseEMP: 1, // Allow/Disallow purchase of EMPs
allowedChannels: [],
+3 -1
View File
@@ -69,4 +69,6 @@ module.exports = {
"M79": "https://static.wikia.nocookie.net/dayz_gamepedia/images/b/b7/M79.png/revision/latest/scale-to-width-down/256?cb=20220521184052",
},
},
}
weaponClassOf: (weapon) => Object.keys(module.exports.weapons).filter(v => module.exports.weapons[v].hasOwnProperty(weapon))[0],
}