Skip to content

Commit 5a9545d

Browse files
committed
LRS tweaks ...
1 parent 186aecd commit 5a9545d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

AbsShip.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def damage(self, game, item):
9999

100100
def repair(self, game):
101101
'''
102-
Rapair damage to the Enterprise.
102+
Repair damage to the Enterprise.
103103
'''
104104
if self.navigation_damage > 0:
105105
self.navigation_damage -= 1
@@ -162,17 +162,17 @@ def long_range_scan(self, game):
162162
sb = ""
163163
pw_sector = game.game_map.sector
164164
if pw_sector < 5:
165-
pw_sector = 5
165+
pw_sector = 6
166166
elif pw_sector > 59:
167167
pw_sector = 59
168168
dots = None
169169
for peek in range(pw_sector-5, pw_sector + 6):
170170
quad = game.game_map.scan_quad(peek)
171171
lines = \
172-
(f"Sector: {quad.number:>02}",
173-
f"Enemies:{quad.klingons:>02}",
174-
f"Bases:{quad.starbases:>02}",
175-
f"Stars: {quad.stars:>03}")
172+
(f"| Sector: {quad.number:>02}",
173+
f"Enemies: {quad.klingons:>02}",
174+
f"Bases: {quad.starbases:>02}",
175+
f"Stars: {quad.stars:>03} |")
176176
str_ = ' | '.join(lines)
177177
dots = '-' * len(str_) + "\n"
178178
sb += dots

MapGame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def game_id(self, piece):
173173
'''
174174
area = self.area()
175175
num = (area.number * 100) + (piece.ypos * 8) + piece.xpos
176-
return f"{piece.glyph[0]}x{num}"
176+
return f"{piece.glyph[1]}x{num}"
177177

178178
def get_all(self, glyph):
179179
'''

0 commit comments

Comments
 (0)