Skip to content

Commit

Permalink
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
Browse files Browse the repository at this point in the history
…to feat-mvp
  • Loading branch information
TiyoSheng committed Nov 7, 2023
2 parents 368ba1f + 1681af0 commit 6aad843
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/client/src/components/MapCell/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const MapCell = (props: IProps) => {
}

{
players.map((player) => <Player key={player.addr} {...player}/>)
!isDelivery && players.map((player) => <Player key={player.addr} {...player}/>)
}
{
menuVisible && (
Expand Down
3 changes: 1 addition & 2 deletions packages/client/src/components/UserInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ export interface IUserInfo {
head: string;
clothes: string;
handheld: string;
gem?: number;
userUrl?: string;
lootUrl?: string;
player?: any;
}

const UserInfo = (props: IUserInfo) => {

const { handheld, head, clothes, gem = 0, userUrl, lootUrl, player } = props;
const { handheld, head, clothes, userUrl, lootUrl, player } = props;
const lootHasLoaded = (handheld && head && clothes) || (player?.equip?.handheld && player?.equip?.head && player?.equip?.clothes);

return (
Expand Down
23 changes: 11 additions & 12 deletions packages/client/src/pages/game/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,10 @@ const Game = () => {
const result = await move(merkelData);
txFinished = true;
curPlayer.waiting = false;
if (renderPreviewPaths.length > 0) {
const lastPreviewPath = renderPreviewPaths[renderPreviewPaths.length - 1];
previewPath(lastPreviewPath.x, lastPreviewPath.y);
}
if (result?.type === 'error') {
message.error(result.message);
}
Expand Down Expand Up @@ -494,18 +498,13 @@ const Game = () => {
{
startBattleData ? <Battle curPlayer={battleCurPlayer} targetPlayer={targetPlayer} finishBattle={finishBattle} /> : null
}
{
userInfoVisible && (
<UserInfoDialog
visible={userInfoVisible}
onClose={() => {
setUserInfoVisible(false);
}}
gem={userInfoPlayer.gem}
{...userInfoPlayer}
/>
)
}
<UserInfoDialog
visible={userInfoVisible}
onClose={() => {
setUserInfoVisible(false);
}}
{...userInfoPlayer}
/>

<Modal />
<Leaderboard boxesCount={boxs.length} leaderboard={PlayerSeasonData} />
Expand Down

0 comments on commit 6aad843

Please sign in to comment.