Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Jameskmonger committed Nov 10, 2022
1 parent 1bcf9de commit ec5dd46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 87 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
import { getAllPieces } from "../../player/pieceSelectors";
import { CardDeck } from "../cardDeck";

export const playerGameDeckSagaFactory = function*(deck: CardDeck) {
export const playerGameDeckSagaFactory = function* (deck: CardDeck) {
const boardSlice = yield* getBoardSlice();
const benchSlice = yield* getBenchSlice();

Expand All @@ -42,7 +42,7 @@ export const playerGameDeckSagaFactory = function*(deck: CardDeck) {
};

yield all([
takeEvery<PlayerDeathEvent>(playerDeathEvent.toString(), function*() {
takeEvery<PlayerDeathEvent>(playerDeathEvent.toString(), function* () {
const cards = yield* select(getPlayerCards);
const pieces = yield* select(getAllPieces);

Expand All @@ -68,7 +68,7 @@ export const playerGameDeckSagaFactory = function*(deck: CardDeck) {
}),
takeEvery<AfterRerollCardsEvent>(
afterRerollCardsEvent.toString(),
function*() {
function* () {
const state = yield* select((s: PlayerState) => s);

if (!isPlayerAlive(state)) {
Expand All @@ -93,7 +93,7 @@ export const playerGameDeckSagaFactory = function*(deck: CardDeck) {
),
takeEvery<AfterSellPieceEvent>(
afterSellPieceEvent.toString(),
function*({ payload: { piece } }) {
function* ({ payload: { piece } }) {
// when a player sells a piece, add it back to the deck
deck.addPiece(piece);
deck.shuffleAllDecks();
Expand Down
78 changes: 0 additions & 78 deletions modules/@shoki/card-deck/index.js

This file was deleted.

6 changes: 1 addition & 5 deletions modules/@shoki/card-deck/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,5 @@
"declaration": true
},
"extends": "../../../tsconfig.json",
"include": [
"./src/**/*",
"./src/*",
"./index.ts"
]
"include": ["./src/**/*", "./src/*", "./index.ts"]
}

0 comments on commit ec5dd46

Please sign in to comment.