stack-the-deck #1

Merged
gavin merged 10 commits from stack-the-deck into trunk 2025-06-13 07:38:52 -04:00
2 changed files with 3 additions and 5 deletions
Showing only changes of commit bc32adbdfd - Show all commits

View File

@@ -55,7 +55,7 @@ export default function Card({ dm, card, position, settings, flipAction }: CardP
<img
src={getURL(cardBack as TarokkaGameCard, settings)}
alt="Card Back"
className={`absolute rounded-lg ${dm ? 'transition duration-500 hover:opacity-0' : ''} ${settings.cardStyle === 'grayscale' ? 'border border-yellow-500/25 hover:drop-shadow-[0_0_3px_#ffd700/50]' : ''}`}
className={`absolute rounded-lg ${dm ? 'transition duration-500 hover:opacity-40' : ''} ${settings.cardStyle === 'grayscale' ? 'border border-yellow-500/25 hover:drop-shadow-[0_0_3px_#ffd700/50]' : ''}`}
/>
</div>
<div className="absolute group inset-0 backface-hidden rotate-y-180">

View File

@@ -11,7 +11,7 @@ export default function getTooltip(
let text: string[] = [];
if (flipped) {
if (dm || flipped) {
if (dm || settings.positionFront) text.push(position.text);
if (dm) text.push(`${cardName}: ${description}`);
@@ -33,11 +33,9 @@ export default function getTooltip(
// Low deck: Tome, Ravenkind, or Sunsword
if (isLowCard(card)) {
if (dm) text.push(card.prophecy.dmText);
if (dm || settings.prophecy) text.push(card.prophecy.playerText);
if (dm) text.push(card.prophecy.dmText);
}
} else {
if (dm || settings.positionBack) text.push(position.text);
}
return text;