card info for DM before flip
This commit is contained in:
@@ -55,7 +55,7 @@ export default function Card({ dm, card, position, settings, flipAction }: CardP
|
|||||||
<img
|
<img
|
||||||
src={getURL(cardBack as TarokkaGameCard, settings)}
|
src={getURL(cardBack as TarokkaGameCard, settings)}
|
||||||
alt="Card Back"
|
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>
|
||||||
<div className="absolute group inset-0 backface-hidden rotate-y-180">
|
<div className="absolute group inset-0 backface-hidden rotate-y-180">
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export default function getTooltip(
|
|||||||
|
|
||||||
let text: string[] = [];
|
let text: string[] = [];
|
||||||
|
|
||||||
if (flipped) {
|
if (dm || flipped) {
|
||||||
if (dm || settings.positionFront) text.push(position.text);
|
if (dm || settings.positionFront) text.push(position.text);
|
||||||
|
|
||||||
if (dm) text.push(`${cardName}: ${description}`);
|
if (dm) text.push(`${cardName}: ${description}`);
|
||||||
@@ -33,11 +33,9 @@ export default function getTooltip(
|
|||||||
|
|
||||||
// Low deck: Tome, Ravenkind, or Sunsword
|
// Low deck: Tome, Ravenkind, or Sunsword
|
||||||
if (isLowCard(card)) {
|
if (isLowCard(card)) {
|
||||||
if (dm) text.push(card.prophecy.dmText);
|
|
||||||
if (dm || settings.prophecy) text.push(card.prophecy.playerText);
|
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;
|
return text;
|
||||||
|
|||||||
Reference in New Issue
Block a user