Skip to content

Commit

Permalink
Apply mirroring to tank convoys.
Browse files Browse the repository at this point in the history
  • Loading branch information
fragglet committed Feb 23, 2024
1 parent 560cd0e commit a66f294
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion maps/terrain.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from math import exp
from random import random

MIRROR = 6

territories = []
ground = []
objects = []
Expand Down Expand Up @@ -144,7 +146,7 @@ def convoy(width=200, max_tanks=3, type="TARGET", orient=3):
ground_max = max(ground_slice)
if ground_max - ground_min < 2:
add_object(type=type, x=x+16, orient=orient,
owner="PLAYER2")
owner="PLAYER2", transform=MIRROR)
# Flatten
for x2 in range(x + 8, x + 40):
ground[x2] = ground_max
Expand Down

0 comments on commit a66f294

Please sign in to comment.