+1
entrypoints/places.content/index.ts
+1
entrypoints/places.content/index.ts
+50
-1
entrypoints/places.content/view.ts
+50
-1
entrypoints/places.content/view.ts
······+* Displays the approximated amount of revenue generated from a certain place, based off the unique visits & any gamepass sales (taking into account the creator's current membership tax)+const round = (number: number) => Math.round(number / config.economy.visitorPayouts.visitors) * config.economy.visitorPayouts.visitors;+const place: apiTypes.placeApiSchema = (await (await fetch(config.api.urls.public + 'places/' + placeID)).json());+const store: apiTypes.gamepassesApiSchema = (await (await fetch(config.api.urls.public + 'places/' + placeID + '/gamepasses')).json());+const creator: apiTypes.userApiSchema = (await (await fetch(config.api.urls.public + 'users/' + place.creator.id)).json());+const price = Math.floor(gamepass.asset.price - (gamepass.asset.price * config.economy.membershipTax[creator.membershipType]))
+1
-1
entrypoints/store.content/index.ts
+1
-1
entrypoints/store.content/index.ts
···
+24
-3
utils/api/types.ts
+24
-3
utils/api/types.ts
············
+11
utils/config.json
+11
utils/config.json
+4
-2
utils/storage.ts
+4
-2
utils/storage.ts
······