This commit is contained in:
2026-03-18 21:00:28 +01:00
parent 20de591cb6
commit 46b7a12d30
3 changed files with 17 additions and 3 deletions

View File

@@ -262,6 +262,7 @@ WIKIDATA_INSTANCE_TYPE_MAP = {
"Q47913": CardType.organization, # intelligence agency "Q47913": CardType.organization, # intelligence agency
"Q35535": CardType.organization, # police "Q35535": CardType.organization, # police
"Q4830453": CardType.organization, # business "Q4830453": CardType.organization, # business
"Q4671277": CardType.organization, # academic institution
} }
import asyncio import asyncio

View File

@@ -456,9 +456,18 @@ async def run_ai_turn(game_id: str):
for slot in range(BOARD_SIZE): for slot in range(BOARD_SIZE):
slot_card = player.board[slot] slot_card = player.board[slot]
if slot_card is not None and player.energy + slot_card.cost <= most_expensive_in_hand: if slot_card is not None and player.energy + slot_card.cost <= most_expensive_in_hand:
if ws:
try:
await ws.send_json({
"type": "sacrifice_animation",
"instance_id": slot_card.instance_id,
})
except Exception:
pass
await asyncio.sleep(0.65)
action_sacrifice(state, slot) action_sacrifice(state, slot)
await send_state(state) await send_state(state)
await asyncio.sleep(1) await asyncio.sleep(0.35)
play_order = list(range(BOARD_SIZE)) play_order = list(range(BOARD_SIZE))
random.shuffle(play_order) random.shuffle(play_order)

View File

@@ -809,11 +809,15 @@
transition: transform 0.15s, filter 0.15s; transition: transform 0.15s, filter 0.15s;
} }
.board-card-wrap:hover { .my-board .board-card-wrap:hover {
transform: scale(1.5); transform: scale(1.5);
z-index: 25; z-index: 25;
} }
.opponent-board .board-card-wrap:hover {
transform: scale(1.5) translateY(20px);
}
.board-card-wrap.destroying { .board-card-wrap.destroying {
animation: crumble 0.6s ease-in forwards; animation: crumble 0.6s ease-in forwards;
z-index: 20; z-index: 20;
@@ -1014,7 +1018,7 @@
} }
.hand-card:hover:not(:disabled) :global(.card) { .hand-card:hover:not(:disabled) :global(.card) {
transform: scale(1.1) translate(-30px, calc(var(--peek-y) - 80px)) !important; transform: scale(1.1) translate(-50px, calc(var(--peek-y) - 80px)) !important;
transform-origin: top left !important; transform-origin: top left !important;
z-index: 50 !important; z-index: 50 !important;
} }