mirror of
https://github.com/Vikeo/LifeTrinket.git
synced 2025-11-18 16:58:01 +00:00
default to normal 4 player
This commit is contained in:
@@ -6,10 +6,10 @@ import Play from './Components/Views/Play';
|
||||
import { GridTemplateAreas } from './Data/getGridTemplateAreas';
|
||||
|
||||
export const initialPlayerOptions = {
|
||||
numberOfPlayers: 3,
|
||||
numberOfPlayers: 4,
|
||||
startingLifeTotal: 40,
|
||||
useCommanderDamage: true,
|
||||
gridAreas: GridTemplateAreas.ThreePlayersSide,
|
||||
gridAreas: GridTemplateAreas.FourPlayers,
|
||||
};
|
||||
|
||||
const App = () => {
|
||||
|
||||
@@ -76,6 +76,19 @@ const getRotation = (index: number, gridAreas: GridTemplateAreas): Rotation => {
|
||||
}
|
||||
}
|
||||
|
||||
if (gridAreas === GridTemplateAreas.FourPlayers) {
|
||||
switch (index) {
|
||||
case 1:
|
||||
return Rotation.Flipped;
|
||||
case 2:
|
||||
return Rotation.Flipped;
|
||||
case 3:
|
||||
return Rotation.Normal;
|
||||
default:
|
||||
return Rotation.Normal;
|
||||
}
|
||||
}
|
||||
|
||||
return Rotation.Normal;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user