diff --git a/map_gen/Diggy/Config.lua b/map_gen/Diggy/Config.lua index bf149853..65359385 100644 --- a/map_gen/Diggy/Config.lua +++ b/map_gen/Diggy/Config.lua @@ -25,6 +25,7 @@ local Config = { }, cheats = { manual_mining_speed_modifier = 1000, + character_inventory_slots_bonus = 1000, }, }, DiggyHole = { diff --git a/map_gen/Diggy/Debug.lua b/map_gen/Diggy/Debug.lua index 375883e2..7cf9323a 100644 --- a/map_gen/Diggy/Debug.lua +++ b/map_gen/Diggy/Debug.lua @@ -78,9 +78,9 @@ end @param position Position {x, y} ]] function Debug.print_grid_value(value, surface, position) - local r = max(1, value) - local g = 1 - abs(value) - local b = min(1, value) + local r = max(1, value) / 4 + local g = 1 - abs(value) / 4 + local b = min(1, value) / 4 if (r > 0) then r = 0 diff --git a/map_gen/Diggy/Feature/DiggyCaveCollapse.lua b/map_gen/Diggy/Feature/DiggyCaveCollapse.lua index 47513321..bc909bda 100644 --- a/map_gen/Diggy/Feature/DiggyCaveCollapse.lua +++ b/map_gen/Diggy/Feature/DiggyCaveCollapse.lua @@ -43,7 +43,7 @@ local stress_map_check_stress_in_threshold local support_beam_entities local on_surface_created -local stress_threshold_causing_collapse = 0.91 +local stress_threshold_causing_collapse = 3.64 local deconstruction_alert_message_shown = {} local stress_map_storage = {} @@ -402,6 +402,8 @@ end @return number sum of old fraction + new fraction ]] function add_fraction(stress_map, x, y, fraction) + x = 2 * floor(x / 2) + y = 2 * floor(y / 2) local quadrant = 1 if x < 0 then quadrant = quadrant + 1 @@ -455,6 +457,8 @@ function add_fraction(stress_map, x, y, fraction) end function add_fraction_by_quadrant(stress_map, x, y, fraction, quadrant) + x = 2 * floor(x / 2) + y = 2 * floor(y / 2) local x_t = quadrant[x] if not x_t then x_t = {} diff --git a/map_gen/Diggy/Feature/SetupPlayer.lua b/map_gen/Diggy/Feature/SetupPlayer.lua index 96ce99c0..0545635f 100644 --- a/map_gen/Diggy/Feature/SetupPlayer.lua +++ b/map_gen/Diggy/Feature/SetupPlayer.lua @@ -25,6 +25,7 @@ function SetupPlayer.register(config) Debug.cheat(function() player.force.manual_mining_speed_modifier = config.cheats.manual_mining_speed_modifier + player.force.character_inventory_slots_bonus = config.cheats.character_inventory_slots_bonus end) end) end