-
Notifications
You must be signed in to change notification settings - Fork 3
/
control.lua
60 lines (57 loc) · 1.7 KB
/
control.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
require 'utils.data_stages'
_LIFECYCLE = _STAGE.control -- Control stage
local Event = require 'utils.event'
require 'utils.utils'
require 'rpg.core'
local RPG = require 'rpg.main'
require 'utils.player_modifiers'
Event.on_init(
function()
RPG.reset_table()
RPG.rpg_reset_all_players()
end
)
if settings.startup.comfy_disable_cooldown.value then
RPG.disable_cooldowns_on_spells()
end
Event.on_nth_tick(
60,
function()
if settings.global.rpg_mod_gui_top_frame.value then
RPG.enable_mod_gui(true)
else
RPG.enable_mod_gui(false)
end
if settings.global.comfy_enable_health_and_mana_bars.value then
RPG.enable_health_and_mana_bars(true)
else
RPG.enable_health_and_mana_bars(false)
end
if settings.global.comfy_enable_mana.value then
RPG.enable_mana(true)
else
RPG.enable_mana(false)
end
if settings.global.comfy_enable_explosive_bullets.value then
RPG.enable_explosive_bullets_globally(true)
else
RPG.enable_explosive_bullets_globally(false)
end
if settings.global.comfy_enable_stone_path.value then
RPG.enable_stone_path(true)
else
RPG.enable_stone_path(false)
end
if settings.global.comfy_personal_tax_rate.value then
local value = settings.global.comfy_personal_tax_rate.value
RPG.personal_tax_rate(value)
else
RPG.personal_tax_rate(0.3)
end
if settings.global.comfy_enable_debug.value then
RPG.toggle_debug(true)
else
RPG.toggle_debug(false)
end
end
)