mirror of
https://github.com/solero/houdini.git
synced 2024-11-21 21:17:21 +00:00
Support for TreasureHunt stamps
This commit is contained in:
parent
669ca4bbec
commit
e9ca348441
@ -182,6 +182,21 @@ async def handle_send_move(p, movie: str, direction: str, spade: int):
|
|||||||
p.table.logic.make_move(movie, direction, spade)
|
p.table.logic.make_move(movie, direction, spade)
|
||||||
await p.table.send_xt('zm', movie, direction, spade)
|
await p.table.send_xt('zm', movie, direction, spade)
|
||||||
opponent = p.table.penguins[1 if p.table.logic.current_player == 1 else 0]
|
opponent = p.table.penguins[1 if p.table.logic.current_player == 1 else 0]
|
||||||
|
if p.table.logic.turns >= 9 and p.table.logic.gems_found > 0:
|
||||||
|
await p.add_stamp(p.server.stamps[420])
|
||||||
|
await opponent.add_stamp(p.server.stamps[420])
|
||||||
|
if p.table.logic.turns >= 5 and p.table.logic.gems_found >= 2:
|
||||||
|
await p.add_stamp(p.server.stamps[422])
|
||||||
|
await opponent.add_stamp(p.server.stamps[422])
|
||||||
|
if p.table.logic.gems_found >= 2:
|
||||||
|
await p.add_stamp(p.server.stamps[414])
|
||||||
|
await opponent.add_stamp(p.server.stamps[414])
|
||||||
|
if p.table.logic.coins_found >= 8:
|
||||||
|
await p.add_stamp(p.server.stamps[416])
|
||||||
|
await opponent.add_stamp(p.server.stamps[416])
|
||||||
|
if p.table.logic.emerald_found:
|
||||||
|
await p.add_stamp(p.server.stamps[418])
|
||||||
|
await opponent.add_stamp(p.server.stamps[418])
|
||||||
if p.table.logic.turns == 0:
|
if p.table.logic.turns == 0:
|
||||||
winnings = p.table.logic.determine_winnings()
|
winnings = p.table.logic.determine_winnings()
|
||||||
await p.add_coins(winnings)
|
await p.add_coins(winnings)
|
||||||
|
Loading…
Reference in New Issue
Block a user