lol
This commit is contained in:
parent
7b2a4520b5
commit
1625579254
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ const Card: React.FC<CardProps> = ({ card, setCard, setMoney, setGubblePoints })
|
|||
className={`w-16 h-16 flex items-center justify-center rounded-lg border-2 text-2xl font-bold transition
|
||||
${field.scratched ? (field.won ? 'bg-green-200 border-green-500 text-green-700' : 'bg-gray-200 border-gray-400 text-gray-500') : 'bg-yellow-100 border-yellow-400 text-yellow-700 hover:bg-yellow-200'}`}
|
||||
disabled={field.scratched}
|
||||
onMouseEnter={() => {
|
||||
onClick={() => {
|
||||
if (field.scratched) return;
|
||||
if (Math.random() < (card.tier?.gubblePointChance ?? 0)) {
|
||||
setGubblePoints((g) => g + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue