Skip to content

Commit 970363b

Browse files
authored
Merge pull request #13 from mstop4/more-data
More data
2 parents b383539 + ec9b281 commit 970363b

File tree

7 files changed

+529
-86
lines changed

7 files changed

+529
-86
lines changed

src/components/objects/gui.config.ts

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ export const allLabelFilters: Record<string, string> = {
3333
igloo: 'Igloos',
3434
mineshaft: 'Mineshafts',
3535
oceanMonument: 'Ocean Monuments',
36+
desertTemple: 'Desert Temples',
3637
dogs: 'Tamed Wolves',
3738
cats: 'Tamed Cats',
39+
foxes: 'Tamed Foxes',
40+
happyGhasts: 'Happy Ghasts',
3841
};
3942

4043
export const allCameraPositionsKeys: Record<string, string> = {
@@ -48,28 +51,7 @@ export const allCameraPositionsKeys: Record<string, string> = {
4851
export const colourModesAvailable = ['default', 'cbf', 'ext', 'nat'];
4952
const labelFiltersAvailable: Record<string, string[]> = {
5053
bunnySnek: ['none', 'enderChest', 'cherryTree'],
51-
chocolateBnuuy: [
52-
'none',
53-
'bed',
54-
'basicWorkstation',
55-
'storage',
56-
'food',
57-
'lava',
58-
'smithing',
59-
'enchantingTable',
60-
'brewingStand',
61-
'enderChest',
62-
'cherryTree',
63-
'village',
64-
'ancientCity',
65-
'trialChamber',
66-
'stronghold',
67-
'igloo',
68-
'mineshaft',
69-
'oceanMonument',
70-
'dogs',
71-
'cats',
72-
],
54+
chocolateBnuuy: Object.keys(allLabelFilters),
7355
};
7456

7557
export const activeColourModes = colourModesAvailable.reduce(

src/components/objects/mapObjects.ts

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -255,25 +255,13 @@ export function createPortal(
255255
const {
256256
label,
257257
location,
258-
hasEnderChest,
259-
hasCherryTree,
260-
hasBed,
261-
hasBasicWorkstation,
262-
hasStorage,
263-
hasSmithing,
264-
hasBrewingStand,
265-
hasEnchantingTable,
266-
hasFood,
267-
hasLava,
268-
village,
269-
ancientCity,
270-
trialChamber,
271-
stronghold,
272-
igloo,
273-
mineshaft,
274-
oceanMonument,
258+
// eslint-disable-next-line
259+
rating, // not used yet
275260
dogs,
276261
cats,
262+
foxes,
263+
happyGhasts,
264+
...userData
277265
} = portalData;
278266

279267
// Create portal marker
@@ -289,25 +277,11 @@ export function createPortal(
289277

290278
const portalLabel = new CSS2DObject(portalDiv);
291279
portalLabel.center.set(0.5, 1.5);
292-
portalLabel.userData.bed = hasBed;
293-
portalLabel.userData.basicWorkstation = hasBasicWorkstation;
294-
portalLabel.userData.storage = hasStorage;
295-
portalLabel.userData.brewingStand = hasBrewingStand;
296-
portalLabel.userData.smithing = hasSmithing;
297-
portalLabel.userData.enchantingTable = hasEnchantingTable;
298-
portalLabel.userData.food = hasFood;
299-
portalLabel.userData.lava = hasLava;
300-
portalLabel.userData.enderChest = hasEnderChest;
301-
portalLabel.userData.cherryTree = hasCherryTree;
302-
portalLabel.userData.village = village;
303-
portalLabel.userData.ancientCity = ancientCity;
304-
portalLabel.userData.trialChamber = trialChamber;
305-
portalLabel.userData.stronghold = stronghold;
306-
portalLabel.userData.igloo = igloo;
307-
portalLabel.userData.mineshaft = mineshaft;
308-
portalLabel.userData.oceanMonument = oceanMonument;
280+
portalLabel.userData = userData;
309281
portalLabel.userData.dogs = dogs > 0;
310282
portalLabel.userData.cats = cats > 0;
283+
portalLabel.userData.foxes = foxes > 0;
284+
portalLabel.userData.happyGhasts = happyGhasts > 0;
311285

312286
world.portalLabels.push(portalLabel);
313287

0 commit comments

Comments
 (0)