-
Notifications
You must be signed in to change notification settings - Fork 3
Bulk Silver Withdraw #43
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
base: devcon
Are you sure you want to change the base?
Conversation
| <StyledShowPercent> | ||
| <span>{value}%</span> | ||
| <span> | ||
| {/* <span>{value}%</span> */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| {/* <span>{value}%</span> */} |
| throw new Error('game has ended'); | ||
| } | ||
| const planet = this.entityStore.getPlanetWithId(locationId); | ||
| console.log(`basic withdraw planet`, planet); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| console.log(`basic withdraw planet`, planet); |
| locationIds: planets.map((p) => p.locationId), | ||
| }; | ||
|
|
||
| console.log(`clean args`, Promise.resolve([[...ids]])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| console.log(`clean args`, Promise.resolve([[...ids]])); |
|
|
||
| let upgradeRow = null; | ||
| if (!p?.destroyed && owned) { | ||
| if (!p?.destroyed && owned && p?.planetType == PlanetType.PLANET) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (!p?.destroyed && owned && p?.planetType == PlanetType.PLANET) { | |
| if (!p?.destroyed && owned && p?.planetType === PlanetType.PLANET) { |
| await conquerUnownedPlanet(world, world.user1Core, SPAWN_PLANET_1, LVL1_ASTEROID_NEBULA); | ||
| await conquerUnownedPlanet(world, world.user1Core, SPAWN_PLANET_1, LVL1_ASTEROID_DEEP_SPACE); | ||
|
|
||
| // await feedSilverToCap(world, world.user1Core, LVL1_ASTEROID_1, LVL3_SPACETIME_2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // await feedSilverToCap(world, world.user1Core, LVL1_ASTEROID_1, LVL3_SPACETIME_2); |
| claimedShips: rawPlayer.claimedShips, | ||
| finalRank: rawPlayer.finalRank.toNumber(), | ||
| claimedReward: rawPlayer.claimedReward, | ||
| silver: silver, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Silver is a synthetic field on the Player type in client, maybe we should change that
| lastClaimTimestamp: number; | ||
| score: number; | ||
|
|
||
| silver: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should silver be added on client but not contracts as a property of player?
| disabled={planet.isHomePlanet || disabled} | ||
| > | ||
| {/* <TooltipTrigger name={TooltipName.Abandon}> */} | ||
| {extracting ? 'Extracting' : `Extract all (${Math.floor(silver)}) silver`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| {extracting ? 'Extracting' : `Extract all (${Math.floor(silver)}) silver`} | |
| {extracting ? 'Extracting' : `Extract (${Math.floor(silver)}) silver`} |
I think we should change this so Extract All can refer to extracting silver from multiple planets.
Features: