Skip to content

Commit a218e91

Browse files
committed
0.5.2.1 release
1 parent 7e37389 commit a218e91

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

CHANGELOG.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,20 @@ All notable changes to this project will be documented in this file. The format
33

44
## [Unreleased]
55

6+
7+
8+
## Overmind [0.5.2.1] - 2019.2.8
9+
10+
This patch fixes a critical bug with the `RoomIntel` module.
11+
12+
### Fixed
13+
- Fixed an unprotected access error with `RoomIntel.getSafetyData()`
14+
15+
16+
617
## Overmind [0.5.2] - 2019.2.1
718

8-
This patch adds improvements to Overmind's performance at lower RCL, fixes boosting logic to account for the removal of pre-boosting, and improves road planning, room intel, and swarms. This release is the version running in botarena 202.
19+
This release adds improvements to Overmind's performance at lower RCL, fixes boosting logic to account for the removal of pre-boosting, and improves road planning, room intel, and swarms. This release is the version running in botarena 202.
920

1021
### Added
1122
- Visualizer improvements:
@@ -440,7 +451,8 @@ release of the Task system)
440451
- Initial pre-release of Overmind after 190 commits and about 80,000 additions.
441452

442453

443-
[Unreleased]: https://github.com/bencbartlett/Overmind/compare/v0.5.2...HEAD
454+
[Unreleased]: https://github.com/bencbartlett/Overmind/compare/v0.5.2.1...HEAD
455+
[0.5.2.1]: https://github.com/bencbartlett/Overmind/compare/v0.5.2...v0.5.2.1
444456
[0.5.1]: https://github.com/bencbartlett/Overmind/compare/v0.5.1...v0.5.2
445457
[0.5.1]: https://github.com/bencbartlett/Overmind/compare/v0.5.0...v0.5.1
446458
[0.5.0]: https://github.com/bencbartlett/Overmind/compare/v0.4.1...v0.5.0

src/Overseer.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,13 @@ export class Overseer implements IOverseer {
205205
invader => invader.boosts.length > 0 ? 2 : 1));
206206
let needsDefending = effectiveInvaderCount >= 3 || colony.room.dangerousPlayerHostiles.length > 0;
207207

208-
// Place defensive directive after hostiles have been present for a long enough time
209-
let safetyData = RoomIntel.getSafetyData(colony.room.name);
210-
let invasionIsPersistent = safetyData.unsafeFor > 20;
211-
212-
if (needsDefending && invasionIsPersistent) {
213-
DirectiveInvasionDefense.createIfNotPresent(colony.controller.pos, 'room');
208+
if (needsDefending) {
209+
// Place defensive directive after hostiles have been present for a long enough time
210+
let safetyData = RoomIntel.getSafetyData(colony.room.name);
211+
let invasionIsPersistent = safetyData.unsafeFor > 20;
212+
if (invasionIsPersistent) {
213+
DirectiveInvasionDefense.createIfNotPresent(colony.controller.pos, 'room');
214+
}
214215
}
215216
}
216217
}

0 commit comments

Comments
 (0)