@@ -189,18 +189,16 @@ def __repr__(self) -> str:
189189
190190
191191class TrapType (_Enum ):
192- RAT_TRAP = (30 , 50 , 20 , 25 , 15 , 0 , 25 , 2 )
193- CAT_TRAP = (10 , 100 , 20 , 5 , 10 , 0 , 10 , 2 )
194- NONE = (0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 )
192+ RAT_TRAP = (30 , 50 , 20 , 15 , 25 , 2 )
193+ CAT_TRAP = (10 , 100 , 20 , 10 , 10 , 2 )
194+ NONE = (0 , 0 , 0 , 0 , 0 , 0 )
195195
196- def __init__ (self , build_cost : int , damage : int , stun_time : int , trap_limit : int ,
197- action_cooldown : int , spawn_cheese_amount : int , max_count : int , trigger_radius_squared : int ):
196+ def __init__ (self , build_cost : int , damage : int , stun_time : int ,
197+ action_cooldown : int , max_count : int , trigger_radius_squared : int ):
198198 self .build_cost = build_cost
199199 self .damage = damage
200200 self .stun_time = stun_time
201- self .trap_limit = trap_limit
202201 self .action_cooldown = action_cooldown
203- self .spawn_cheese_amount = spawn_cheese_amount
204202 self .max_count = max_count
205203 self .trigger_radius_squared = trigger_radius_squared
206204
@@ -281,6 +279,8 @@ class GameConstants:
281279 EXCEPTION_BYTECODE_PENALTY = 500
282280 INITIAL_TEAM_CHEESE = 2500
283281 MAX_NUMBER_OF_RAT_KINGS = 5
282+ MAX_NUMBER_OF_RAT_KINGS_AFTER_CUTOFF = 2
283+ RAT_KING_CUTOFF_ROUND = 1200
284284 MAX_TEAM_EXECUTION_TIME = 1200000000000
285285 MOVE_STRAFE_COOLDOWN = 18
286286 CHEESE_COOLDOWN_PENALTY = 0.01
@@ -297,6 +297,8 @@ class GameConstants:
297297 BUILD_ROBOT_COST_INCREASE = 10
298298 NUM_ROBOTS_FOR_COST_INCREASE = 4
299299 BUILD_DISTANCE_SQUARED = 2
300+ RAT_KING_BUILD_DISTANCE_SQUARED = 8
301+ ATTACK_DISTANCE_SQUARED = 2
300302 RAT_KING_ATTACK_DISTANCE_SQUARED = 8
301303 MESSAGE_ROUND_DURATION = 5
302304 MAX_MESSAGES_SENT_ROBOT = 1
@@ -309,8 +311,8 @@ class GameConstants:
309311 CAT_DIG_ADDITIONAL_COOLDOWN = 5
310312 HEALTH_GRAB_THRESHOLD = 0
311313 RAT_KING_UPGRADE_CHEESE_COST = 50
312- DIG_DIRT_CHEESE_COST = 10
313- PLACE_DIRT_CHEESE_COST = 10
314+ DIG_DIRT_CHEESE_COST = 5
315+ PLACE_DIRT_CHEESE_COST = 3
314316 SHARED_ARRAY_SIZE = 64
315317 COMM_ARRAY_MAX_VALUE = 1023
316318 COOLDOWN_LIMIT = 10
@@ -322,6 +324,7 @@ class GameConstants:
322324 CARRY_COOLDOWN_MULTIPLIER = 1.5
323325 MAX_CARRY_TOWER_HEIGHT = 2
324326 MAX_CARRY_DURATION = 10
327+ SAME_ROBOT_CARRY_COOLDOWN_TURNS = 2
325328 THROW_DURATION = 4
326329 HIT_GROUND_COOLDOWN = 10
327330 HIT_TARGET_COOLDOWN = 30
0 commit comments