Skip to content

Commit

Permalink
Merge pull request #811 from nextlevelbanana/main
Browse files Browse the repository at this point in the history
Content Update
  • Loading branch information
nextlevelbanana authored Oct 11, 2023
2 parents 0386c10 + 0b7a797 commit 062bff2
Show file tree
Hide file tree
Showing 14 changed files with 269 additions and 9 deletions.
10 changes: 10 additions & 0 deletions server/src/badges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,16 @@ export const UnlockableBadges: Badge[] = [
emoji: '🔑',
description: 'Employees ONLY?',
category: BadgeCategories.Year2023
},
{
emoji: '🌭',
description: 'A much better food than a color scheme',
category: BadgeCategories.Year2023
},
{
emoji: '🎃',
description: 'Happy Crawloween!',
category: BadgeCategories.Year2023
}
]

Expand Down
25 changes: 25 additions & 0 deletions server/src/generators/bodyWorksCharacter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* eslint-disable quotes */

import tracery from 'tracery-grammar'

export const actionString = (bodyWorksCharacter: string) => {
return `${bodyWorksCharacter}`
}

export const generate = () => {
const grammar = tracery.createGrammar({
origin: [
'They look at you with a mischievous grin as they mix two smoking fluids together.',
'The sudden smell of perfume slams into your senses, temporarily blinding you.',
'A flash of light comes from the cauldron in front of them as they add some mysterious powder into a bubbling concoction of some kind.',
'They stir a cauldron and you hear muttered words in some language you don't understand.',
'You notice a new growth of mushrooms pop up from the ground in the wake of their footsteps.',
'Their hand flashes out and snatches a bottle off a shelf, adding its contents to the cauldron.'
]
})

grammar.addModifiers(tracery.baseEngModifiers)

return grammar.flatten('#origin#')
}
/* eslint-enable quotes */
26 changes: 26 additions & 0 deletions server/src/generators/hotDogGuy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/* eslint-disable quotes */

import tracery from 'tracery-grammar'

export const actionString = (hotDogGuy: string) => {
return `${hotDogGuy}`
}

export const generate = () => {
const grammar = tracery.createGrammar({
origin: [
'A young man stares at you, wearing a floppy, multicolored hat, his eyes pleading for your mercy.',
'He glances at you as he dips a battered hotdog into hot oil.',
'His outfit's bright colors seem to leap out at you, no matter where you turn.',
'He looks out into the food court at all the trays left haphazardly about, and sighs.',
'A beeping sound rings out from behind him, but he does not move.',
'You catch him maliciously slapping the side of an ice cream machine, cursing loudly.',
'You notice a small notepad on the side of the cash register, filled with sketches.'
]
})

grammar.addModifiers(tracery.baseEngModifiers)

return grammar.flatten('#origin#')
}
/* eslint-enable quotes */
15 changes: 14 additions & 1 deletion server/src/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ import * as drinkSkeletons from './drinkSkeletons'
import * as drinkVessels from './drinkVessels'
import * as drinkContents from './drinkContents'
import * as drinkNames from './drinkNames'
// begin 2023
import * as craneGame from './craneGame'
import * as bodyWorksCharacter from './bodyWorksCharacter'
import * as seersCatalog from './seersCatalog'
import * as zara from './zara'
import * as hotDogGuy from './hotDogGuy'
import * as ray from './ray'
import * as loudRobert from './loudRobert'

interface Generator {
generate(): string
Expand All @@ -42,7 +49,13 @@ const generators: {[name: string]: Generator} = {
drinkVessels,
drinkContents,
drinkNames,
craneGame
craneGame,
bodyWorksCharacter,
seersCatalog,
zara,
hotDogGuy,
ray,
loudRobert
}

export default generators
23 changes: 23 additions & 0 deletions server/src/generators/loudRobert.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* eslint-disable quotes */

import tracery from 'tracery-grammar'

export const actionString = (loudRobert: string) => {
return `${loudRobert}`
}

export const generate = () => {
const grammar = tracery.createGrammar({
origin: [
'His short, bulky frame is supporting an enormous green coat that hangs down to his feet.',
'On his head rests a backwards baseball cap which no longer seems to serve any purpose.',
'The two men stand facing each other and all you hear are expletives, but somehow they seem to understand each other.',
'He stares at you intensely, but doesn’t say anything.'
]
})

grammar.addModifiers(tracery.baseEngModifiers)

return grammar.flatten('#origin#')
}
/* eslint-enable quotes */
24 changes: 24 additions & 0 deletions server/src/generators/ray.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* eslint-disable quotes */

import tracery from 'tracery-grammar'

export const actionString = (ray: string) => {
return `${ray}`
}

export const generate = () => {
const grammar = tracery.createGrammar({
origin: [
'His tall, lanky frame is wrapped in a bright yellow jacket 2 sizes too large.',
'A grey beanie sits atop his long mane of dirty blond hair, and all of it is haphazardly put together with little concern for fashion.',
'You get a whiff of a strange plant smell any time you so much as glance at him.',
'The two men stand facing each other and all you hear are expletives, but somehow they seem to understand each other.',
'As you look at him, he breaks into an impromptu fit of rap.'
]
})

grammar.addModifiers(tracery.baseEngModifiers)

return grammar.flatten('#origin#')
}
/* eslint-enable quotes */
57 changes: 57 additions & 0 deletions server/src/generators/seersCatalog.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import tracery from 'tracery-grammar'

export const actionString = (item: string) => {
return `You make the mistake of reading the catalog out loud. Coins vanish from your purse, and ${item} appears at your feet as ominous laughter echoes in the distance.`
}

export const generate = () => {
var grammar = tracery.createGrammar({
origin: [
'#pillType# Pills for #malady#',
'#person#'s #cureType# Cure',
'#cureType# cure for #malady#',
'System Builder and Lung Restorer',
'Giant Power Electric Belt',
'Griffons' Plush Cape',
'Maternity Outfit For Mother',
'Seer' Motor Buggy',
'Saving Plan For Upper Planes Home Buyer',
'A Chicken',
'Wide Cuffed Pants +1',
'#person#' #item#'
],
person: [
'Syzygyrior',
'Dr Mandelbrot',
'Brown',
'Xanthar',
'Tasha'
],
pillType: [
'Goblin',
'Wizard',
'Cursed',
'Blessed',
'Definitely Not Cursed'
],
cureType: [
'Consumption',
'Quick',
'Vegetable'
],
malady: [
'Weak Goblins',
'Low T (Treasure)',
'Collapsed Wave Functions',
'Kobold Weakness',
'Persistent Undeath'
],
item: [
'Guide to Everything in the Mall',
'Hideous Sweater'
]
})

grammar.addModifiers(tracery.baseEngModifiers)
return grammar.flatten('#origin#')
}
25 changes: 25 additions & 0 deletions server/src/generators/zara.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* eslint-disable quotes */

import tracery from 'tracery-grammar'

export const actionString = (zara: string) => {
return `${zara}`
}

export const generate = () => {
const grammar = tracery.createGrammar({
origin: [
'She flashes you a charming smile around her two enormous fangs and braided muttonchops.',
'She stands only three and a half feet tall, but it's the most imposing, muscular three feet you've ever seen.',
'Zara looks at you with a mischievous grin. The twinkle in her eye says she would bench press you, if given a chance.',
'You catch her eye for an instant before she runs off to break up a pair of feral teens arguing about obscure funk bands.',
'She stands looking over the food court with absolute authority, a twisted orc axe’s handle extending far over her left shoulder.',
'You notice a slight gleam in her immaculate, braided muttonchops. A feature she clearly devotes much of her time towards.'
]
})

grammar.addModifiers(tracery.baseEngModifiers)

return grammar.flatten('#origin#')
}
/* eslint-enable quotes */
4 changes: 3 additions & 1 deletion server/src/moveToRoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ function awardBadges (user: User, roomId: string) {
['procedural', 'nega_ticket'],
['underlab', 'undermuffin'],
// begin 2023
['lockedDoor', '🔑']
['lockedDoor', '🔑'],
['hotDogStand', '🌭'],
['emptyStore', '🎃']
]

const unlockedEmoji: Badge[] = []
Expand Down
1 change: 1 addition & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ const App = () => {
<SettingsView
keepCameraWhenMoving={state.keepCameraWhenMoving}
captionsEnabled={state.captionsEnabled}
unlockedBadges={state.profileData?.unlockedBadges}
/>
)
break
Expand Down
10 changes: 5 additions & 5 deletions src/components/MapView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ const mapText = `
|..................................#..........| \\,,......♦....Food.♦....♦..|................|
|.........Arcade (13).............|..........| \\,.......♦...Court.♦....♦.#...Pretzel......|
|..................................|..........| \\,___..♦....(10)...♦....♦|...Place (08)...|
|..................................|..Map.....| | |♦....♦....♦....♦...|................|
|..................................|..Obelisk.| empty | |.♦....♦....♦....♦..|................|
|........................Anime.....|.....(12).# store | |..♦....♦....♦....♦.|================|
|........................Racing....|..........| (11) | |.♦....♦....♦....♦..|................|
|..Retro Corner..........Game......|..........|---------|♦....♦....♦....♦...|...Hot Dog......|
|..................................|..Map.....| Spirit ||♦....♦....♦....♦...|................|
|..................................|..Obelisk.| Crawloween ||.♦....♦....♦....♦..|................|
|........................Anime.....|.....(12).# (11) ||..♦....♦....♦....♦.|================|
|........................Racing....|..........| ||.♦....♦....♦....♦..|................|
|..Retro Corner..........Game......|..........|------------┘|♦....♦....♦....♦...|...Hot Dog......|
|.........(16).............(17)....|..........| |.♦....♦....♦....♦..#...Stand (09)...|
|..................................|..........| |..♦....♦....♦....♦.|................|
└----------------------------------└---╔╦╗----┘ └------------------------------------┘
Expand Down
14 changes: 14 additions & 0 deletions src/components/SettingsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ import React, { useContext, useEffect } from 'react'
import '../../style/profileEditView.css'
import { SetUseSimpleNamesAction, SetCaptionsEnabledAction } from '../Actions'
import { DispatchContext, SettingsContext } from '../App'
import { Badge } from '../../server/src/badges'

import { currentTheme, setTheme } from '../storage'
import VideoAudioSettingsView from './VideoAudioSettingsView'

interface Props {
keepCameraWhenMoving: boolean;
captionsEnabled: boolean;
unlockedBadges: Badge[];
}

export default function SettingsView (props: Props) {
Expand Down Expand Up @@ -113,6 +115,18 @@ export default function SettingsView (props: Props) {
/>
<label htmlFor="vaporwave">Vaporwave</label>
</div>
{props.unlockedBadges?.some(p => p.emoji === '🌭') &&
<div className="radio">
<input
type="radio"
id="hotdogstand"
value="hotdogstand"
checked={selectedTheme === 'hotdogstand'}
onChange={handleThemeSelection}
/>
<label htmlFor="hotdogstand">HotDog Stand</label>
</div>
}
</div>
<div className="form" id="simpleNamesSelectionForm">
<label htmlFor="simpleNamesSelectionForm" className='form-header'>Username Display Mode:</label>
Expand Down
18 changes: 18 additions & 0 deletions src/linkActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,24 @@ export const linkActions = {
},
spinAround: () => {
spinTheRoom()
},
talkToBodyWorksCharacter: () => {
displayMessageFromList('bodyWorksCharacter')
},
readCatalog: () => {
pickUpRandomItemFromList('seersCatalog')
},
talkToZara: () => {
displayMessageFromList('zara')
},
talkToHotDogGuy: () => {
displayMessageFromList('hotDogGuy')
},
talkToRay: () => {
displayMessageFromList('ray')
},
talkToLoudRobert: () => {
displayMessageFromList('loudRobert')
}
}

Expand Down
26 changes: 24 additions & 2 deletions style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@
--link: #66FF66;
}

/* vaporwave light bg: #e7eef4;, good puprel: #6b3097*/
.vaporwave {
.vaporwave {
--main-background: #302c7b;
--main-font:#B1ECE5; ;
--gray-text:#3c88cc;
Expand All @@ -142,6 +141,29 @@
--link: #ee82ee;
}

.hotdogstand {
--main-background: #ff0000 ;
--main-font:#000000;
--gray-text:#888888;
--alternate-background: #ffff00;
--alternate-translucent: rgba(255, 255, 0, 0.8);
--green:#00ff00;
--highlight-line: #ffffff;
--highlighted-line-font: #ff0000;
--pink: hotpink;
--blue: #0000ff;
--cyan: #00ffff;
--magenta: #ff00ff;
--orange: #ffa500;
--red: #ff0000;
--violet: #ee82ee;
--yellow: #ffff00;
--link-decoration: underline;
--link-style: dashed;
--active: #ffff00;
--link: #ffffff;
}

body {
background-color: var(--main-background);
color: var(--main-font);
Expand Down

0 comments on commit 062bff2

Please sign in to comment.