refactor(nukeprotect): better config setup

This commit is contained in:
oof2win2
2022-05-15 10:15:59 +02:00
parent 6a8a0ebb3e
commit f1268ddf9e
4 changed files with 42 additions and 62 deletions

View File

@@ -1,11 +1,12 @@
return {
ammo = {
[tostring(defines.inventory.character_ammo)] = {
["atomic-bomb"] = true
}, -- @setting ammo The items to not allow in the player's ammo inventory
armor = {}, -- @setting armor The items to not allow in the player's armor inventory
gun = {}, -- @setting gun The items to not allow in the player's gun inventory
main = {
[tostring(defines.inventory.character_armor)] = {}, -- @setting armor The items to not allow in the player's armor inventory
[tostring(defines.inventory.character_guns)] = {}, -- @setting gun The items to not allow in the player's gun inventory
[tostring(defines.inventory.character_main)] = {
["atomic-bomb"] = true
}, -- @setting main The items to not allow in the player's main inventory
ignore_permisison = "bypass-nukeprotect" -- @setting ignore_permisison The permission that nukeprotect will ignore
ignore_permisison = "bypass-nukeprotect", -- @setting ignore_permisison The permission that nukeprotect will ignore
ignore_admins = true, -- @setting ignore_admins Ignore admins, true by default. Allows usage outside of the roles module
}