mod-slingshot/settings.lua

80 lines
1.8 KiB
Lua
Raw Permalink Normal View History

2017-08-16 17:42:48 -07:00
-- Slingshot settings
2017-08-18 12:08:00 -07:00
--- Slingshot mod settings.
--
2021-06-05 10:06:38 -07:00
-- @module settings
2017-08-18 12:08:00 -07:00
2017-08-16 17:42:48 -07:00
2021-06-05 10:50:01 -07:00
--- Slingshot specific settings.
2017-08-21 15:53:19 -07:00
--
-- Settings unique to this mod.
2017-08-21 15:53:19 -07:00
--
-- @section settings_specific
2017-08-21 15:53:19 -07:00
2021-06-05 12:27:20 -07:00
--- Use old 16x16 textures.
--
-- @setting slingshot.old_textures
-- @settype bool
-- @default false
slingshot.old_textures = core.settings:get_bool("slingshot.old_textures", false)
2021-06-10 12:35:44 -07:00
--- Value of these items will be added to slingshot attack when thrown.
--
-- @setting slingshot.ammos
-- @settype string
-- @default default:mese_crystal=5
slingshot.ammos = core.settings:get("slingshot.ammos") or "default:mese_crystal=5"
2017-08-21 15:53:19 -07:00
--- General settings.
--
-- Settings commom to core & other mods.
--
-- @section settings_general
--- Enables/Disables wear when used.
2017-08-21 15:53:19 -07:00
--
2021-06-05 10:06:38 -07:00
-- @setting enable_weapon_wear
-- @settype bool
-- @default true
slingshot.enable_wear = core.settings:get_bool("enable_weapon_wear", true)
2017-08-21 15:53:19 -07:00
--- Log extra messages.
--
-- @setting log_mods
-- @settype bool
-- @default false
slingshot.log_mods = core.settings:get_bool("log_mods", false)
2017-08-21 15:53:19 -07:00
--- Log extra debug messages.
2017-08-21 15:53:19 -07:00
--
-- @setting enable_debug_mods
-- @settype bool
-- @default false
slingshot.debug = core.settings:get_bool("enable_debug_mods", false)
--- Determines if game is being run in creative mode.
2017-08-21 15:53:19 -07:00
--
-- @setting creative_mode
-- @settype bool
-- @default false
slingshot.creative = core.settings:get_bool("creative_mode", false)
2017-08-21 15:53:19 -07:00
--- Time in seconds for item entity (dropped items) to live.
--
-- Setting it to -1 disables the feature.
--
-- @setting item_entity_ttl
-- @settype int
-- @default 890
slingshot.thrown_duration = tonumber(core.settings:get("item_entity_ttl")) or 890
2017-08-21 15:53:19 -07:00
--- Determines if PVP is enabled.
2017-08-16 18:09:13 -07:00
--
-- @setting enable_pvp
2021-06-05 10:06:38 -07:00
-- @settype bool
2021-06-05 13:02:08 -07:00
-- @default true
slingshot.enable_pvp = core.settings:get_bool("enable_pvp", true)