Skip to content
This repository was archived by the owner on Nov 21, 2017. It is now read-only.

Commit b160c46

Browse files
committed
Fix new saves
1 parent d1565d7 commit b160c46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

libs/biter/base.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ BiterBase.plans = {
204204
idle = { passive = true, cost = 1, update_frequency = 60 * 60 },
205205
identify_targets = { passive = true, cost = 600, update_frequency = 120, class = require 'libs/biter/ai/identify_targets' },
206206
attack_area = { passive = false, cost = 3000, update_frequency = 300, class = require 'libs/biter/ai/attack_area'},
207-
harrassment = { passive = false, cost = 5000, update_frequency = 173, class = require 'libs/biter/ai/harrassment'},
207+
harrassment = { passive = false, cost = 7000, update_frequency = 173, class = require 'libs/biter/ai/harrassment'},
208208
attacked_recently = { passive = false, cost = 240, update_frequency = 120, class = require 'libs/biter/ai/attacked_recently' },
209209
alert = { passive = false, cost = 120, update_frequency = 180, class = require 'libs/biter/ai/alert' },
210210
grow_hive = { passive = true, cost = 2000, update_frequency = 300, class = require 'libs/biter/ai/grow_hive' },
@@ -266,7 +266,7 @@ function BiterBase.create_plan(base)
266266
end
267267
end
268268

269-
if base:can_afford('attack_area') and base.targets then
269+
if math.random(100) > (game.evolution_factor * 100) and base:can_afford('attack_area') and base.targets then
270270
local active_chunk = BiterBase.is_in_active_chunk(base)
271271
if active_chunk then LogAI("Is in an active chunk: true", base) else LogAI("Is in an active chunk: false", base) end
272272

libs/world.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function World.setup()
1414
-- goodbye fair world
1515
local old_global = global
1616
global = {}
17-
global.mod_version = World.version
17+
global.mod_version = 0
1818

1919
Harpa.migrate(old_global)
2020
World.recalculate_chunk_values()

0 commit comments

Comments
 (0)