mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +09:00
Bonus GUI (#300)
* Update _file_loader.lua * Update roles.lua * Update bonus.lua * Update bonus.lua * Create bonus.lua * Update commands.cfg * Update commands.cfg * Update commands.cfg * Update gui.cfg * Update gui.cfg * Update gui.cfg * Update bonus.lua * Update roles.lua * Update roles.lua * Update gui.cfg * Update gui.cfg * Update bonus.lua * Update bonus.lua * Update bonus.lua * Update gui.cfg * Update gui.cfg * Update bonus.lua * Update bonus.lua * Update gui.cfg * Update gui.cfg * Update gui.cfg * Update bonus.lua * Update bonus.lua * Update bonus.lua * Update bonus.lua * Update bonus.lua * Update bonus.lua * Update bonus.lua * Update bonus.lua * Update bonus.lua * Update bonus.lua * Update bonus.lua * Update bonus.lua * Update gui.cfg * Update commands.cfg * Update bonus.lua * Update bonus.lua
This commit is contained in:
@@ -63,9 +63,9 @@ return {
|
||||
'modules.addons.afk-kick',
|
||||
'modules.addons.report-jail',
|
||||
'modules.addons.protection-jail',
|
||||
'modules.addons.deconlog',
|
||||
'modules.addons.nukeprotect',
|
||||
'modules.addons.inserter',
|
||||
'modules.addons.deconlog',
|
||||
'modules.addons.nukeprotect',
|
||||
'modules.addons.inserter',
|
||||
'modules.addons.miner',
|
||||
|
||||
-- Control
|
||||
@@ -78,7 +78,7 @@ return {
|
||||
'modules.data.quickbar',
|
||||
'modules.data.alt-view',
|
||||
'modules.data.tag',
|
||||
'modules.data.bonus',
|
||||
-- 'modules.data.bonus',
|
||||
'modules.data.personal-logistic',
|
||||
'modules.data.language',
|
||||
|
||||
@@ -91,12 +91,13 @@ return {
|
||||
'modules.gui.task-list',
|
||||
'modules.gui.player-list',
|
||||
'modules.gui.server-ups',
|
||||
'modules.gui.bonus',
|
||||
'modules.gui.vlayer',
|
||||
'modules.gui.research',
|
||||
'modules.gui.module',
|
||||
'modules.gui.playerdata',
|
||||
'modules.gui.surveillance',
|
||||
'modules.graftorio.require', -- graftorio
|
||||
'modules.graftorio.require', -- graftorio
|
||||
'modules.gui.toolbar', -- must be loaded last to register toolbar handlers
|
||||
|
||||
--- Config Files
|
||||
|
||||
450
config/bonus.lua
450
config/bonus.lua
@@ -2,222 +2,308 @@
|
||||
-- @config Bonuses
|
||||
|
||||
return {
|
||||
-- level of player bonus for lower roles, 1 level is 10 %
|
||||
player_bonus_level = 1,
|
||||
--[[
|
||||
TODO
|
||||
force bonus
|
||||
vlayer battery recharge (auto)
|
||||
quick health regeneration
|
||||
|
||||
Base point is equal to the amount of standard value in each parameter.
|
||||
|
||||
CMMS CRS CCS CISB CHB CRDB
|
||||
STD 30 90 32 20 16 12
|
||||
= 200
|
||||
|
||||
MAX 60 180 64 40 32 24
|
||||
= 400
|
||||
]]
|
||||
pts = {
|
||||
base = 200
|
||||
},
|
||||
gui_display_width = {
|
||||
half = 180,
|
||||
label = 80,
|
||||
slider = 200,
|
||||
count = 80
|
||||
},
|
||||
conversion = {
|
||||
['cmms'] = 'character_mining_speed_modifier',
|
||||
['crs'] = 'character_running_speed_modifier',
|
||||
['ccs'] = 'character_crafting_speed_modifier',
|
||||
['cisb'] = 'character_inventory_slots_bonus',
|
||||
['chb'] = 'character_health_bonus',
|
||||
['crdb'] = 'character_reach_distance_bonus'
|
||||
--[[
|
||||
['cpdb'] = 'character_item_pickup_distance_bonus'
|
||||
]]
|
||||
},
|
||||
player_bonus = {
|
||||
{
|
||||
name = 'character_mining_speed_modifier',
|
||||
enabled = true,
|
||||
min = 0,
|
||||
max = 2
|
||||
['character_mining_speed_modifier'] = {
|
||||
value = 3,
|
||||
max = 6,
|
||||
scale = 0.5,
|
||||
cost_scale = 1,
|
||||
cost = 10,
|
||||
is_percentage = true
|
||||
},
|
||||
{
|
||||
name = 'character_running_speed_modifier',
|
||||
enabled = true,
|
||||
min = 0,
|
||||
max = 1.5
|
||||
['character_running_speed_modifier'] = {
|
||||
value = 1.5,
|
||||
max = 3,
|
||||
scale = 0.25,
|
||||
cost_scale = 1,
|
||||
cost = 60,
|
||||
is_percentage = true
|
||||
},
|
||||
{
|
||||
name = 'character_crafting_speed_modifier',
|
||||
enabled = true,
|
||||
min = 0,
|
||||
max = 5
|
||||
['character_crafting_speed_modifier'] = {
|
||||
value = 8,
|
||||
max = 16,
|
||||
scale = 1,
|
||||
cost_scale = 1,
|
||||
cost = 4,
|
||||
is_percentage = true
|
||||
},
|
||||
{
|
||||
name = 'character_reach_distance_bonus',
|
||||
enabled = true,
|
||||
min = 0,
|
||||
max = 10
|
||||
['character_inventory_slots_bonus'] = {
|
||||
value = 100,
|
||||
max = 200,
|
||||
scale = 10,
|
||||
cost_scale = 10,
|
||||
cost = 2,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'character_resource_reach_distance_bonus',
|
||||
enabled = true,
|
||||
min = 0,
|
||||
max = 10
|
||||
['character_health_bonus'] = {
|
||||
value = 200,
|
||||
max = 400,
|
||||
scale = 50,
|
||||
cost_scale = 50,
|
||||
cost = 4,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'character_build_distance_bonus',
|
||||
enabled = true,
|
||||
min = 0,
|
||||
max = 10
|
||||
['character_reach_distance_bonus'] = {
|
||||
value = 12,
|
||||
max = 24,
|
||||
scale = 2,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false,
|
||||
combined_bonus = {
|
||||
'character_resource_reach_distance_bonus',
|
||||
'character_build_distance_bonus'
|
||||
}
|
||||
},
|
||||
{
|
||||
name = 'character_item_pickup_distance_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 0
|
||||
--[[
|
||||
['character_item_pickup_distance_bonus'] = {
|
||||
value = 0,
|
||||
max = 20,
|
||||
scale = 1,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'character_loot_pickup_distance_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 0
|
||||
['character_loot_pickup_distance_bonus'] = {
|
||||
value = 0,
|
||||
max = 20,
|
||||
scale = 1,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'character_item_drop_distance_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 5
|
||||
},
|
||||
{
|
||||
name = 'character_inventory_slots_bonus',
|
||||
enabled = true,
|
||||
min = 0,
|
||||
max = 100
|
||||
},
|
||||
{
|
||||
name = 'character_health_bonus',
|
||||
enabled = true,
|
||||
min = 0,
|
||||
max = 200
|
||||
['character_item_drop_distance_bonus'] = {
|
||||
value = 0,
|
||||
max = 20,
|
||||
scale = 1,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
}
|
||||
]]
|
||||
},
|
||||
force_bonus = {
|
||||
{
|
||||
name = 'manual_mining_speed_modifier',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 2
|
||||
--[[
|
||||
['character_mining_speed_modifier'] = {
|
||||
value = 0,
|
||||
max = 6,
|
||||
scale = 0.5,
|
||||
cost_scale = 1,
|
||||
cost = 10,
|
||||
is_percentage = true
|
||||
},
|
||||
{
|
||||
name = 'character_running_speed_modifier',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 1
|
||||
['character_running_speed_modifier'] = {
|
||||
value = 0,
|
||||
max = 3,
|
||||
scale = 0.25,
|
||||
cost_scale = 1,
|
||||
cost = 40,
|
||||
is_percentage = true
|
||||
},
|
||||
{
|
||||
name = 'character_crafting_speed_modifier',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 5
|
||||
['character_crafting_speed_modifier'] = {
|
||||
value = 0,
|
||||
max = 16,
|
||||
scale = 1,
|
||||
cost_scale = 1,
|
||||
cost = 4,
|
||||
is_percentage = true
|
||||
},
|
||||
{
|
||||
name = 'character_reach_distance_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 10
|
||||
['character_inventory_slots_bonus'] = {
|
||||
value = 0,
|
||||
max = 200,
|
||||
scale = 10,
|
||||
cost_scale = 100,
|
||||
cost = 2,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'character_resource_reach_distance_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 10
|
||||
['character_health_bonus'] = {
|
||||
value = 0,
|
||||
max = 400,
|
||||
scale = 50,
|
||||
cost = 4,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'character_build_distance_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 10
|
||||
['character_reach_distance_bonus'] = {
|
||||
value = 0,
|
||||
max = 24,
|
||||
scale = 2,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false,
|
||||
combined_bonus = {
|
||||
'character_resource_reach_distance_bonus',
|
||||
'character_build_distance_bonus'
|
||||
}
|
||||
},
|
||||
{
|
||||
name = 'character_item_pickup_distance_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 0
|
||||
['worker_robots_speed_modifier'] = {
|
||||
value = 0,
|
||||
max = 0,
|
||||
scale = 0,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'character_loot_pickup_distance_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 0
|
||||
]]
|
||||
['worker_robots_battery_modifier'] = {
|
||||
value = 1,
|
||||
max = 1,
|
||||
scale = 1,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'character_item_drop_distance_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 5
|
||||
['worker_robots_storage_bonus'] = {
|
||||
value = 1,
|
||||
max = 1,
|
||||
scale = 1,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'character_inventory_slots_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 100
|
||||
['following_robots_lifetime_modifier'] = {
|
||||
value = 1,
|
||||
max = 1,
|
||||
scale = 1,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'character_health_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 200
|
||||
--[[
|
||||
['character_item_pickup_distance_bonus'] = {
|
||||
value = 0,
|
||||
max = 20,
|
||||
scale = 1,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'worker_robots_speed_modifier',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 1.3
|
||||
['character_loot_pickup_distance_bonus'] = {
|
||||
value = 0,
|
||||
max = 20,
|
||||
scale = 1,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'worker_robots_battery_modifier',
|
||||
enabled = true,
|
||||
min = 0,
|
||||
max = 1
|
||||
['character_item_drop_distance_bonus'] = {
|
||||
value = 0,
|
||||
max = 20,
|
||||
scale = 1,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'worker_robots_storage_bonus',
|
||||
enabled = true,
|
||||
min = 0,
|
||||
max = 1
|
||||
['character_trash_slot_count'] = {
|
||||
value = 0,
|
||||
max = 0,
|
||||
scale = 0,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'following_robots_lifetime_modifier',
|
||||
enabled = true,
|
||||
min = 0,
|
||||
max = 1
|
||||
['mining_drill_productivity_bonus'] = {
|
||||
value = 0,
|
||||
max = 0,
|
||||
scale = 0,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'character_trash_slot_count',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 20
|
||||
['train_braking_force_bonus'] = {
|
||||
value = 0,
|
||||
max = 0,
|
||||
scale = 0,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'mining_drill_productivity_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 0
|
||||
['laboratory_speed_modifier'] = {
|
||||
value = 0,
|
||||
max = 0,
|
||||
scale = 0,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'train_braking_force_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 0
|
||||
['laboratory_productivity_bonus'] = {
|
||||
value = 0,
|
||||
max = 0,
|
||||
scale = 0,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'laboratory_speed_modifier',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 0
|
||||
['inserter_stack_size_bonus'] = {
|
||||
value = 0,
|
||||
max = 0,
|
||||
scale = 0,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'laboratory_productivity_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 0
|
||||
['stack_inserter_capacity_bonus'] = {
|
||||
value = 0,
|
||||
max = 0,
|
||||
scale = 0,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
},
|
||||
{
|
||||
name = 'inserter_stack_size_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 0
|
||||
},
|
||||
{
|
||||
name = 'stack_inserter_capacity_bonus',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 0
|
||||
},
|
||||
{
|
||||
name = 'artillery_range_modifier',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 0
|
||||
['artillery_range_modifier'] = {
|
||||
value = 0,
|
||||
max = 0,
|
||||
scale = 0,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
}
|
||||
]]
|
||||
},
|
||||
surface_bonus = {
|
||||
{
|
||||
name = 'solar_power_multiplier',
|
||||
enabled = false,
|
||||
min = 0,
|
||||
max = 0
|
||||
--[[
|
||||
['solar_power_multiplier'] = {
|
||||
value = 1,
|
||||
max = 1000,
|
||||
scale = 1,
|
||||
cost_scale = 1,
|
||||
cost = 1,
|
||||
is_percentage = false
|
||||
}
|
||||
]]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ Roles.new_role('Administrator','Admin')
|
||||
'gui/warp-list/bypass-proximity',
|
||||
'gui/warp-list/bypass-cooldown',
|
||||
'command/connect-all',
|
||||
'command/collectdata'
|
||||
'command/collectdata'
|
||||
}
|
||||
|
||||
Roles.new_role('Moderator','Mod')
|
||||
@@ -75,8 +75,8 @@ Roles.new_role('Moderator','Mod')
|
||||
'command/clear-reports',
|
||||
'command/clear-warnings',
|
||||
'command/clear-inventory',
|
||||
'command/bonus',
|
||||
'command/bonus/2',
|
||||
-- 'command/bonus',
|
||||
'gui/bonus',
|
||||
'command/home',
|
||||
'command/home-set',
|
||||
'command/home-get',
|
||||
@@ -165,8 +165,8 @@ Roles.new_role('Sponsor','Spon')
|
||||
:allow{
|
||||
'gui/rocket-info/toggle-active',
|
||||
'gui/rocket-info/remote_launch',
|
||||
'command/bonus',
|
||||
'command/bonus/2',
|
||||
-- 'command/bonus',
|
||||
'gui/bonus',
|
||||
'command/home',
|
||||
'command/home-set',
|
||||
'command/home-get',
|
||||
|
||||
Reference in New Issue
Block a user