1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-01-04 00:15:45 +02:00

actually use the new booster

This commit is contained in:
hanakocz 2021-03-09 03:11:14 +01:00
parent da93894188
commit aefd0c095f
2 changed files with 3 additions and 0 deletions

View File

@ -523,6 +523,7 @@ local function on_init()
local arena = game.permissions.create_group('Arena')
local arena_surface = game.create_surface('dungeons_floor_arena')
local map_gen_settings = arena_surface.map_gen_settings
BiterHealthBooster.set_surface_activity('dungeons_floor_arena', true)
map_gen_settings.height = 3
map_gen_settings.width = 3
arena_surface.map_gen_settings = map_gen_settings

View File

@ -591,6 +591,7 @@ local function on_surface_created(event)
dungeontable.enemy_forces[event.surface_index] = force
forceshp[force.index] = 1
dungeontable.depth[event.surface_index] = 100 * event.surface_index - (dungeontable.original_surface_index * 100)
BiterHealthBooster.set_surface_activity(game.surfaces[event.surface_index].name, true)
end
local function on_player_changed_surface(event)
@ -711,6 +712,7 @@ local function on_init()
dungeontable.enemy_forces[surface.index] = game.create_force("enemy" .. surface.index)
forceshp[game.forces.enemy.index] = 1
forceshp[dungeontable.enemy_forces[surface.index].index] = 1
BiterHealthBooster.set_surface_activity('dungeons_floor_0', true)
game.forces.player.technologies["land-mine"].enabled = false
game.forces.player.technologies["landfill"].enabled = false