Skip to content
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

fixing the generator action strings #881

Merged
merged 2 commits into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/src/generators/boba.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import tracery from 'tracery-grammar'

export const actionString = (boba: string) => {
return `${boba}`
return `You drink ${boba}.`
}

export const generate = () => {
var grammar = tracery.createGrammar({
origin: [
"You drink #refreshing.a# #powerup# potion with #boba#."
"#refreshing.a# #powerup# potion with #boba#"
],
refreshing: [
'refreshing',
Expand Down
4 changes: 2 additions & 2 deletions server/src/generators/kebab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import tracery from 'tracery-grammar'

export const actionString = (kebabs: string) => {
return `${kebabs}`
return `You devour some ${kebabs}!`
}

export const generate = () => {
var grammar = tracery.createGrammar({
origin: [
"You devour some #monster# #bodyPart# skewers!"
"#monster# #bodyPart# skewers"
],
monster: [
'Ice Giant',
Expand Down
4 changes: 2 additions & 2 deletions server/src/generators/tacos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import tracery from 'tracery-grammar'

export const actionString = (tacos: string) => {
return `${tacos}`
return `You inhale a scrumptious taco with ${tacos}.`
}

export const generate = () => {
var grammar = tracery.createGrammar({
origin: [
"You inhale a scrumptious taco with #monster# meat and #bean#."
"#monster# meat and #bean#"
],
monster: [
'Ice Giant',
Expand Down
6 changes: 3 additions & 3 deletions server/src/generators/veganFood.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
import tracery from 'tracery-grammar'

export const actionString = (veganFood: string) => {
return `${veganFood}`
return `You eat a ${veganFood}.`
}

export const generate = () => {
var grammar = tracery.createGrammar({
origin: [
"You eat a delicious bowl of #fruit# and #plant# with #powerup# sauce.",
"You eat a bowl of #plant# and #protein#. Yum!"
"delicious bowl of #fruit# and #plant# with #powerup# sauce",
"bowl of #plant# and #protein#"
],
fruit: [
'apple',
Expand Down
Loading