Skip to content

Commit

Permalink
Merge pull request #1309 from playmint/istanbul-fixes
Browse files Browse the repository at this point in the history
Istanbul quest fixes
  • Loading branch information
ldunnplaymint authored Apr 15, 2024
2 parents 495ad2c + 9e0b76b commit 88e71da
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion contracts/src/maps/quest-map/RegistrationOffice.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default function update({ selected, world, player }) {
{
id: 'default',
type: 'inline',
html: "Give me goo and I'll register you. Collect some from other islands if you don't have enough",
html: "Give me goo and I'll register you. If you have already spent yours, you will just have to go find some.",
buttons: [{ text: 'Register', type: 'action', action: craft, disabled: !canCraft }]
},
],
Expand Down
6 changes: 3 additions & 3 deletions contracts/src/maps/quest-map/quests/03_Orientation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ spec:
name: Orientation
description: "Before the important work begins, all users need to prove their aptitude at the basics."
tasks:
- kind: questComplete
name: Complete Goo Harvesting quest
quest: Goo Harvesting
- kind: questComplete
name: Complete Deletion Preparation quest
quest: Deletion Preparation
- kind: questComplete
name: Complete Deletion Duty quest
quest: Deletion Duty
- kind: questComplete
name: Complete Goo Harvesting quest
quest: Goo Harvesting
next: ["Calling All Users"]
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ spec:
description: "This world was created from the gooey remains of the last. You need to learn how to extract this goo."
tasks:
- kind: construct
name: Construct a Red Goo Extractor. It works better on a tile with a high red goo-per-hour value.
name: Construct a Red Goo Extractor. It should work on any old tile these days.
buildingKind: Red Goo Extractor
18 changes: 11 additions & 7 deletions frontend/src/components/panels/tile-info-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import {
} from '@app/../../core/src';
import { PluginContent } from '@app/components/organisms/tile-action';
import {
GOO_BIG_THRESH,
//GOO_BIG_THRESH,
GOO_BLUE,
GOO_GREEN,
GOO_RED,
GOO_SMALL_THRESH,
//GOO_SMALL_THRESH,
getCoords,
getGooRates,
getTileDistance,
Expand Down Expand Up @@ -288,20 +288,24 @@ const TileAvailable: FunctionComponent<TileAvailableProps> = ({ player, mobileUn
const { q, r, s } = getCoords(lastTile);
const gooRates = getGooRates(lastTile);
// const topGooRate = gooRates.length > 0 ? Math.floor(gooRates[0].gooPerSec * 100) / 100 : 0;
const topGooWeight = gooRates.length > 0 ? gooRates[0].weight : 0;
const topGooName = gooRates.length > 0 ? gooRates[0].name : '';
const hasSomeGoo = topGooWeight >= GOO_SMALL_THRESH;
const hasLotsGoo = topGooWeight >= GOO_BIG_THRESH;
//const topGooWeight = gooRates.length > 0 ? gooRates[0].weight : 0;
//const topGooName = gooRates.length > 0 ? gooRates[0].name : '';
//const hasSomeGoo = topGooWeight >= GOO_SMALL_THRESH;
//const hasLotsGoo = topGooWeight >= GOO_BIG_THRESH;
const gooRatesInNameOrder = [GOO_RED, GOO_GREEN, GOO_BLUE]
.map((idx) => gooRates.find((goo) => goo.index === idx))
.filter((goo) => !!goo);

const tileName = hasSomeGoo ? `${topGooName.toUpperCase()} GOO TILE` : `TILE`;
/*const tileName = hasSomeGoo ? `${topGooName.toUpperCase()} GOO TILE` : `TILE`;
const tileDescription = hasLotsGoo
? `A tile rich in ${topGooName} goo! ${topGooName} goo extractors will be very effective here`
: hasSomeGoo
? `The tile has some ${topGooName} goo, extractors that need ${topGooName} goo will work well here`
: undefined;
*/

const tileName = 'TILE';
const tileDescription = ' ';

return (
<StyledTileInfoPanel>
Expand Down

0 comments on commit 88e71da

Please sign in to comment.