Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mege feat mvp to main #2

Open
wants to merge 772 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
772 commits
Select commit Hold shift + click to select a range
48f9f09
add some rpc address
LidamaoHub Nov 17, 2023
92d439a
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 17, 2023
3954dc8
Update readme.md
echooooz Nov 19, 2023
133871e
fix: conflicts
Vivomo Nov 19, 2023
ce58d76
Merge pull request #1 from Mississippi-Labs/feat-hero
LidamaoHub Nov 19, 2023
1968566
update: update userinfo & battle style
TiyoSheng Nov 19, 2023
b302890
update: update isOpen
TiyoSheng Nov 19, 2023
56065c7
update: chainid
TiyoSheng Nov 19, 2023
eb23ad7
world
LidamaoHub Nov 19, 2023
a5d6af4
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 19, 2023
e90171f
re-add mult build contract
LidamaoHub Nov 19, 2023
9099b9a
fix: fix bug
TiyoSheng Nov 20, 2023
6234c24
rebuild new contract
LidamaoHub Nov 20, 2023
796b9d3
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Nov 20, 2023
69f1294
fix: fix bug
TiyoSheng Nov 20, 2023
28851a0
add Foundry
TiyoSheng Nov 20, 2023
15c5a68
fix: fix bug
TiyoSheng Nov 20, 2023
0187216
feat: use dynamic time to move
Vivomo Nov 20, 2023
54b1852
fix: preview path bug
Vivomo Nov 21, 2023
498d401
add new contract
LidamaoHub Nov 21, 2023
d0c1e8c
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 21, 2023
1700bf3
fix: fix bug
TiyoSheng Nov 22, 2023
f479309
update blockTime
TiyoSheng Nov 22, 2023
f68ba3a
Hide players in battle
TiyoSheng Nov 22, 2023
ef65586
update chainname
TiyoSheng Nov 22, 2023
843a21a
add chain
TiyoSheng Nov 22, 2023
3ebc52b
update style
TiyoSheng Nov 22, 2023
a8c60d5
update contract
LidamaoHub Nov 22, 2023
d009460
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 22, 2023
200d60b
add TRANSFER_GAS
TiyoSheng Nov 22, 2023
31820d9
conflicts
TiyoSheng Nov 22, 2023
9236dde
add env
TiyoSheng Nov 22, 2023
6661437
fix bug
TiyoSheng Nov 22, 2023
6804b15
update env value
TiyoSheng Nov 22, 2023
e67ad9e
add CreateBox notify
TiyoSheng Nov 22, 2023
94146f5
add CreateBox notify
TiyoSheng Nov 22, 2023
577fa1d
add discord
TiyoSheng Nov 22, 2023
bb52bdb
fix: the map offset
Vivomo Nov 23, 2023
4543c5a
fix: fix bug
TiyoSheng Nov 23, 2023
122afef
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Nov 23, 2023
9c31851
airdrop
TiyoSheng Nov 23, 2023
8a178fc
feat: format player's bigint field to number
Vivomo Nov 24, 2023
8b85395
feat: add hp bar
Vivomo Nov 24, 2023
1e71386
fix: remove unused constant
Vivomo Nov 24, 2023
d0abe4d
fix: Increase the visibility of foggy areas
Vivomo Nov 24, 2023
61ea7b3
feat: hunt player
Vivomo Nov 24, 2023
fe50590
feat: calc move time
Vivomo Nov 24, 2023
7995454
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Nov 24, 2023
25990ec
feat: hunt style
Vivomo Nov 24, 2023
7f78b38
feat: hunt style
Vivomo Nov 24, 2023
1401966
fix bugs of collection box and rebuild
LidamaoHub Nov 24, 2023
c5e0b7f
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 24, 2023
7f93be6
merge
LidamaoHub Nov 24, 2023
328b9bb
update airdrop
TiyoSheng Nov 24, 2023
ac78c57
update: add log
TiyoSheng Nov 24, 2023
cb6ae92
fix: fix bug
TiyoSheng Nov 24, 2023
77514ba
feat: open Chests's distance update
Vivomo Nov 24, 2023
1fd072f
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
Vivomo Nov 26, 2023
709db25
update: update player hp
TiyoSheng Nov 26, 2023
1fdc301
fix: fix bug
TiyoSheng Nov 26, 2023
b6a1e4b
deploy new contract
LidamaoHub Nov 26, 2023
64a0887
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 26, 2023
eb36e8b
fix: fix bug
TiyoSheng Nov 26, 2023
9f496f1
feat: user info
Vivomo Nov 26, 2023
4e680af
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Nov 26, 2023
8d268d0
feat: hide loot
Vivomo Nov 26, 2023
c7e51ee
fix: fix bug
TiyoSheng Nov 26, 2023
c6dbe87
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Nov 26, 2023
b3c1826
fix: fix bug
TiyoSheng Nov 26, 2023
234fb89
fix: fix bug
TiyoSheng Nov 26, 2023
4e8d75f
update text
TiyoSheng Nov 27, 2023
1a3c70c
fix: fix bug
TiyoSheng Nov 27, 2023
df43d43
fix: fix bug
TiyoSheng Nov 27, 2023
d746326
fix: fix bug
TiyoSheng Nov 27, 2023
6cb416e
fix: fix bug
TiyoSheng Nov 27, 2023
b18ac6a
update init user funciton
LidamaoHub Nov 27, 2023
403fe30
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Nov 27, 2023
fa8141c
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Nov 27, 2023
be094c0
add talk
TiyoSheng Nov 28, 2023
95c9559
add talk step
TiyoSheng Nov 28, 2023
ceba16a
image compression
TiyoSheng Nov 28, 2023
a5d0be9
update: getCollectionsFun
TiyoSheng Nov 28, 2023
e14697a
feat: add attack effect
Vivomo Nov 29, 2023
7c6f5cd
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
Vivomo Nov 29, 2023
d9a6ab9
update: waiting percentage
TiyoSheng Nov 29, 2023
6661406
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Nov 29, 2023
57ef5ae
rebuild contract
LidamaoHub Nov 30, 2023
f7f0cd9
Update readme.md
echooooz Dec 1, 2023
6a1227c
Update readme.md
echooooz Dec 1, 2023
e3838cb
Update readme.md
Vivomo Dec 1, 2023
f311bb0
update: 合并战斗动画 & fix bug
TiyoSheng Dec 1, 2023
f8165db
reset code
TiyoSheng Dec 1, 2023
ec1329f
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Dec 1, 2023
4a6c77d
feat: add reset state
Vivomo Dec 1, 2023
7be974a
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Dec 1, 2023
988550b
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Dec 1, 2023
d0e403d
fix: fix bug
TiyoSheng Dec 1, 2023
6fef9c9
update: add resetUser
TiyoSheng Dec 1, 2023
bb57a85
talk add skip
TiyoSheng Dec 1, 2023
7a1c8ed
fix: fix bug
TiyoSheng Dec 1, 2023
acdc563
fix: fix bug
TiyoSheng Dec 3, 2023
833c434
redeploy
LidamaoHub Dec 4, 2023
2580f9d
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Dec 4, 2023
66659a3
fix: fix bug
TiyoSheng Dec 4, 2023
796b57e
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Dec 4, 2023
3e7cf9a
fix: fix bug
TiyoSheng Dec 4, 2023
7e73b56
fix: fix bug
TiyoSheng Dec 4, 2023
46b81a2
fix: fix bug
TiyoSheng Dec 4, 2023
9d6a805
feat: add default equip
Vivomo Dec 5, 2023
f84590f
fix: conflict
Vivomo Dec 5, 2023
6a952e1
feat: add default equip
Vivomo Dec 5, 2023
846fdd7
fix: player move bug
Vivomo Dec 5, 2023
ae3dd53
rebuild
LidamaoHub Dec 6, 2023
c4a7ac3
Upgrade MUD
TiyoSheng Dec 6, 2023
2edc6f1
Upgrade MUD
TiyoSheng Dec 6, 2023
8cbd68e
add indexer
TiyoSheng Dec 6, 2023
a4add8a
rebuild
TiyoSheng Dec 7, 2023
17c965a
update:new workflow
LidamaoHub Dec 7, 2023
9e5adc7
add commit
TiyoSheng Dec 7, 2023
72b1486
add callback
TiyoSheng Dec 7, 2023
131f17c
add open DevTools
TiyoSheng Dec 7, 2023
d739956
fix: fix bug
TiyoSheng Dec 7, 2023
5a949f2
rebuild
TiyoSheng Dec 7, 2023
6a76aab
edit github action
TiyoSheng Dec 7, 2023
ed6bc00
fix: fix bug
TiyoSheng Dec 7, 2023
46cc405
fix: fix bug
TiyoSheng Dec 7, 2023
23ce1dc
fix: fix bug
TiyoSheng Dec 7, 2023
30f4e3e
new contract
LidamaoHub Dec 7, 2023
d027db2
fix: fix bug
TiyoSheng Dec 7, 2023
c8b019b
rebuild
TiyoSheng Dec 8, 2023
9da0ae2
fix: fix bug
TiyoSheng Dec 8, 2023
e71d41b
feat: official code move
Vivomo Dec 8, 2023
2611c68
fix: conflicts
Vivomo Dec 8, 2023
dec9f30
feat: default equips add load check
Vivomo Dec 8, 2023
ff986d6
feat: remove global contextmenu event
Vivomo Dec 8, 2023
e554ef9
feat: update font & img style
Vivomo Dec 8, 2023
727ba29
fix player move bug & add default equip
TiyoSheng Dec 9, 2023
bf77fea
update page name
TiyoSheng Dec 9, 2023
8b44843
fix player move bug
TiyoSheng Dec 9, 2023
77b7c19
default off mud dev tools
TiyoSheng Dec 9, 2023
4bfd081
feat: add back by
Vivomo Dec 9, 2023
1adc66a
feat: default equip style
Vivomo Dec 9, 2023
1cb74a2
feat: add video demo
Vivomo Dec 9, 2023
fe96402
reset
TiyoSheng Dec 10, 2023
51f6ff2
merge mud-v2
TiyoSheng Dec 10, 2023
e869041
update workflow
LidamaoHub Dec 10, 2023
f14f36c
reset lockfile
LidamaoHub Dec 10, 2023
3cd85f4
update contract
LidamaoHub Dec 10, 2023
a61a278
feat: update ignore
Vivomo Dec 10, 2023
ebbf657
fix: roll back
Vivomo Dec 10, 2023
b2c7ca6
feat: contracts update
Vivomo Dec 10, 2023
e841cb4
feat: remove log
Vivomo Dec 10, 2023
4ee0273
fix: player's display bug
Vivomo Dec 10, 2023
7bb33e8
fix: player's move bug: if the preview path's last coordinate is deli…
Vivomo Dec 10, 2023
b6bc678
fix: clean code
Vivomo Dec 11, 2023
e75fd7f
fix: move animate bug
Vivomo Dec 11, 2023
c527517
feat: ffa page
Vivomo Dec 11, 2023
1081b38
add delay
TiyoSheng Dec 11, 2023
aa03a57
fix: clean code
Vivomo Dec 11, 2023
bcdc49d
add 17001 address
TiyoSheng Dec 11, 2023
a8ddb1f
add location detection of user to submit gem,redeploy contract
LidamaoHub Dec 11, 2023
130f5db
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Dec 11, 2023
d57a2db
feat: update home page's style && clean code
Vivomo Dec 11, 2023
83e7216
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Dec 11, 2023
f19a0c1
feat: update text
Vivomo Dec 11, 2023
3e85363
feat: add point
Vivomo Dec 11, 2023
8833ca6
conflicts
TiyoSheng Dec 12, 2023
97faf26
deployed arbitrum version
LidamaoHub Dec 12, 2023
81f9702
feat: ffa html
Vivomo Dec 12, 2023
b8671d8
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Dec 12, 2023
388d292
update submitGem
TiyoSheng Dec 13, 2023
36dc0ba
conflicts
TiyoSheng Dec 13, 2023
f72dbe7
feat: update home page style
Vivomo Dec 14, 2023
fa00cce
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Dec 14, 2023
5cf05e8
feat: update home page style
Vivomo Dec 14, 2023
bdfab77
feat: update home page style
Vivomo Dec 14, 2023
60ac60e
add arb
TiyoSheng Dec 14, 2023
9535cc4
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Dec 14, 2023
d918bf6
update contract
LidamaoHub Dec 14, 2023
7ded1b9
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Dec 14, 2023
b61ce66
arb
LidamaoHub Dec 14, 2023
9e6446a
add arb indexerUrl
TiyoSheng Dec 14, 2023
7508696
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Dec 14, 2023
8cf1e87
add web3mq
TiyoSheng Dec 15, 2023
288705b
fix: PlayersData undefined
TiyoSheng Dec 15, 2023
095a39c
add box.svg
TiyoSheng Dec 15, 2023
09c7c21
feat: player msg
Vivomo Dec 15, 2023
693c520
update web3mq
TiyoSheng Dec 15, 2023
c3860d2
send & show message
TiyoSheng Dec 15, 2023
104b876
update style
TiyoSheng Dec 15, 2023
1bc9673
meme use pprite
TiyoSheng Dec 16, 2023
d1eb0e3
meme use sprite
TiyoSheng Dec 16, 2023
f7063da
meme use sprite
TiyoSheng Dec 16, 2023
7143461
del some console
TiyoSheng Dec 16, 2023
e4dfeb3
feat: add mini map
Vivomo Dec 17, 2023
e981270
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Dec 17, 2023
7fb2273
deploy new contract
LidamaoHub Dec 18, 2023
d7c33c0
fix: the move performance issues
Vivomo Dec 18, 2023
01727ae
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
Vivomo Dec 18, 2023
ca0d329
fix: the move performance issues
Vivomo Dec 18, 2023
21576f8
feat: mock data
Vivomo Dec 20, 2023
ecaecae
feat: ffa static style
Vivomo Dec 20, 2023
c0f07f7
deploy new conrtact
LidamaoHub Dec 26, 2023
73987d1
redeploy
LidamaoHub Jan 1, 2024
5cda0df
redeploy
LidamaoHub Jan 8, 2024
91180ee
redeploy
LidamaoHub Jan 13, 2024
12b20ab
fix
TiyoSheng Jan 14, 2024
f8bd8fb
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Jan 14, 2024
6de1a75
feat: home
TiyoSheng Jan 14, 2024
9a76a15
update animation
TiyoSheng Jan 14, 2024
9838777
deploy redstone
LidamaoHub Jan 15, 2024
2aca033
change redstone rpc
LidamaoHub Jan 17, 2024
1227a41
update
LidamaoHub Jan 17, 2024
4b6471a
redeploy
LidamaoHub Jan 21, 2024
b32623d
redeploy
LidamaoHub Jan 21, 2024
8d4aae3
fix: performance optimization
Vivomo Jan 21, 2024
89b6178
fix: performance optimization
Vivomo Jan 21, 2024
0ed6613
fix: performance optimization
Vivomo Jan 21, 2024
ff28b56
deploy
LidamaoHub Jan 25, 2024
5350061
fix: player's equip bug fixed
Vivomo Jan 25, 2024
a8374ea
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Jan 25, 2024
48fa8f8
fix: style
TiyoSheng Jan 25, 2024
585bf82
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
TiyoSheng Jan 25, 2024
c869c7a
fix: style
TiyoSheng Jan 25, 2024
b5d225d
feat: fight points
Vivomo Jan 26, 2024
e042915
Merge remote-tracking branch 'origin/feat-mvp' into feat-mvp
Vivomo Jan 26, 2024
5feb8ab
Update worlds.json
LidamaoHub Feb 7, 2024
775f9e8
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Feb 7, 2024
84cedee
fix some bugs
LidamaoHub Feb 13, 2024
fb43fbd
add opbnb
LidamaoHub Feb 19, 2024
588157d
add opbnb
TiyoSheng Feb 19, 2024
f874231
update analytics
LidamaoHub Feb 27, 2024
e8e1e3e
Optimized code for better performance and maintainability
TiyoSheng Apr 10, 2024
122a2fe
fix bug
TiyoSheng Apr 12, 2024
dcca29a
del indexer
TiyoSheng Jun 27, 2024
0202464
update:
LidamaoHub Aug 7, 2024
56588bb
Merge branch 'feat-mvp' of github.com:Mississippi-Labs/mississippi in…
LidamaoHub Aug 7, 2024
294b2a0
deploy arb
LidamaoHub Aug 7, 2024
bc8db3f
Updat
LidamaoHub Aug 8, 2024
65e2390
Update mud version
TiyoSheng Aug 9, 2024
4deadbb
Update:add for upgrade
LidamaoHub Aug 9, 2024
a13696f
fix: bug
TiyoSheng Aug 9, 2024
db9ea86
deployed
LidamaoHub Aug 9, 2024
2fc0fc3
update network
TiyoSheng Aug 9, 2024
abd1144
add readme
TiyoSheng Aug 9, 2024
7c11fdd
fix bug
TiyoSheng Aug 9, 2024
05cf7d1
update rpcurl
TiyoSheng Aug 9, 2024
460fc6e
fix bug
TiyoSheng Aug 9, 2024
80a473a
fix bug
TiyoSheng Aug 9, 2024
6a1d468
fix bug
TiyoSheng Aug 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add delay
  • Loading branch information
TiyoSheng committed Dec 11, 2023
commit 1081b3841920167131f9bae91b0ec9be46325b39
8 changes: 8 additions & 0 deletions packages/client/src/mud/createSystemCalls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import { SetupNetworkResult } from "./setupNetwork";
import eventEmitter from '../utils/eventEmitter';
import { message } from 'antd';

import { delay } from '../utils/delay';

export type SystemCalls = ReturnType<typeof createSystemCalls>;

let wait = false;
Expand Down Expand Up @@ -78,6 +80,7 @@ export function createSystemCalls(
try {
const tx = await worldContract.write.selectBothNFT([userTokenId, lootTokenId]);
await waitForTransaction(tx);
await delay(300)
return {
playerData: useStore.getState().getValue(tables.PlayerParams, { addr: address }),
lootData: useStore.getState().getValue(tables.LootList1, { addr: address })
Expand Down Expand Up @@ -176,6 +179,7 @@ export function createSystemCalls(
eventEmitter.emit('log', log)
console.log('revealBox success', new Date().getTime(), tx);
wait = false
await delay(300)
return useStore.getState().getValue(tables.BoxList, { boxId })
} catch (error) {
console.log(error)
Expand All @@ -201,6 +205,7 @@ export function createSystemCalls(
log.block = await getBlockNumber(tx)
eventEmitter.emit('log', log)
wait = false
await delay(300)
return {
type: 'success'
}
Expand Down Expand Up @@ -256,6 +261,7 @@ export function createSystemCalls(
log.block = await getBlockNumber(tx)
eventEmitter.emit('log', log)
wait = false
await delay(300)
return {
type: 'success',
data: useStore.getState().getValue(tables.BattleList, { battleId })
Expand Down Expand Up @@ -288,6 +294,7 @@ export function createSystemCalls(
log.block = await getBlockNumber(tx)
eventEmitter.emit('log', log)
wait = false
await delay(300)
return {
type: 'success',
data: useStore.getState().getValue(tables.BattleList, { battleId })
Expand Down Expand Up @@ -320,6 +327,7 @@ export function createSystemCalls(
log.block = await getBlockNumber(tx)
eventEmitter.emit('log', log)
wait = false
await delay(300)
return useStore.getState().getValue(tables.BattleList, { battleId })
} catch (error) {
log.type = 'error'
Expand Down
4 changes: 2 additions & 2 deletions packages/client/src/pages/game/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import Loading from '@/components/Loading';
import {BLOCK_TIME} from '@/config/chain';
import discordImg from '@/assets/img/discord.png';
import { TALK_MAIN } from '@/config/talk';
import { delay } from '../../utils/delay';

const toObject = (obj) => {
return JSON.parse(JSON.stringify(obj, (key, value) =>
Expand Down Expand Up @@ -91,6 +92,7 @@ const Game = () => {
let lootContractAddress = GlobalConfigData[0].lootContract
userContract = new ethers.Contract(userContractAddress, userAbi, wallet)
lootContract = new ethers.Contract(lootContractAddress, lootAbi, wallet)
percentage = 100
}

const LootList1Data = useStore((state: any) => {
Expand Down Expand Up @@ -156,8 +158,6 @@ const Game = () => {
})
});

if (PlayersData.length && PlayersData[0].hp) percentage = 100

const curPlayer = PlayersData.find((player: any) => player.addr.toLocaleLowerCase() == account.toLocaleLowerCase());
if (curPlayer && curPlayer.state == 0 && percentage == 100) {
navigate('/');
Expand Down
20 changes: 10 additions & 10 deletions packages/client/src/pages/test/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,11 @@ const Test = () => {
{
players.map((item, index) => (<div key={index}>
<h6>用户信息 {item.isMe ? '(自己)' : ''}</h6>
<div style={{ marginTop: '8px' }}>addr: {item.addr}</div>
<div style={{ marginTop: '8px' }}>hp: {item.hp.toString()}</div>
<div style={{ marginTop: '8px' }}>attack: {item.attack.toString()}</div>
<div style={{ marginTop: '8px' }}>oreBalance: {item.oreBalance.toString()}</div>
<div style={{ marginTop: '8px' }}>treasureBalance: {item.treasureBalance.toString()}</div>
<div style={{ marginTop: '8px' }}>addr: {item?.addr}</div>
<div style={{ marginTop: '8px' }}>hp: {item?.hp?.toString()}</div>
<div style={{ marginTop: '8px' }}>attack: {item?.attack?.toString()}</div>
<div style={{ marginTop: '8px' }}>oreBalance: {item?.oreBalance?.toString()}</div>
<div style={{ marginTop: '8px' }}>treasureBalance: {item?.treasureBalance?.toString()}</div>
<div style={{ marginTop: '8px' }}>state:{item?.state}</div>
<div style={{ marginTop: '8px' }}>坐标:{item?.x || 0},{item?.y || 0}</div>
</div>))
Expand All @@ -415,11 +415,11 @@ const Test = () => {
{
boxs.map((item, index) => (<div key={index} style={{marginBottom: '20px'}}>
<h6>宝箱信息</h6>
<div style={{ marginTop: '8px' }}>id: {item.id}</div>
<div style={{ marginTop: '8px' }}>opened: {item.opened.toString()}</div>
<div style={{ marginTop: '8px' }}>owner: {item.owner}</div>
<div style={{ marginTop: '8px' }}>oreBalance: {item.opened ? item.oreBalance : '--'}</div>
<div style={{ marginTop: '8px' }}>treasureBalance: {item.opened ? item.treasureBalance : '--'}</div>
<div style={{ marginTop: '8px' }}>id: {item?.id}</div>
<div style={{ marginTop: '8px' }}>opened: {item?.opened.toString()}</div>
<div style={{ marginTop: '8px' }}>owner: {item?.owner}</div>
<div style={{ marginTop: '8px' }}>oreBalance: {item?.opened ? item?.oreBalance : '--'}</div>
<div style={{ marginTop: '8px' }}>treasureBalance: {item?.opened ? item?.treasureBalance : '--'}</div>
<div style={{ marginTop: '8px' }}>坐标:{item?.x || 0},{item?.y || 0}</div>
</div>))
}
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/worlds.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"31337": {
"address": "0x6e9474e9c83676b9a71133ff96db43e7aa0a4342"
"address": "0xe233198863b75acc6e1af43daff3f5918e35875e"
},
"33784": {
"address": "0xe233198863b75acc6e1af43daff3f5918e35875e",
Expand Down
Loading