mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
MultiServer: make !hint prefer non-local
This commit is contained in:
@@ -1308,6 +1308,8 @@ class ClientMessageProcessor(CommonCommandProcessor):
|
|||||||
can_pay = 1000
|
can_pay = 1000
|
||||||
|
|
||||||
self.ctx.random.shuffle(not_found_hints)
|
self.ctx.random.shuffle(not_found_hints)
|
||||||
|
# By popular vote, make hints prefer non-local placements
|
||||||
|
not_found_hints.sort(key=lambda hint: int(hint.receiving_player != hint.finding_player))
|
||||||
|
|
||||||
hints = found_hints
|
hints = found_hints
|
||||||
while can_pay > 0:
|
while can_pay > 0:
|
||||||
|
Reference in New Issue
Block a user