Update magic.js

This commit is contained in:
Nick Walton 2020-06-01 20:23:02 -06:00 committed by GitHub
parent 9c472a870a
commit 9a64f71ba5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
// Here's a fun scripting example where players have to learn these magic spells to have cool effects. // Here's a fun scripting example where players have to learn these magic spells to have cool effects.
// The world info has entries that should hopefully lead people to these spells and so that they can find and cast them. // The world info has entries that should hopefully lead people to these spells and so that they can find and cast them.
// Can find the scenario at https://play.aidungeon.io/scenario/e982a8f0-a473-11ea-af38-d1932fa9d9e0 // Can find the scenario at https://play.aidungeon.io/scenario/e982a8f0-a473-11ea-af38-d1932fa9d9e0
// I changed the spell names so it doesn't ruin the discovery if you play the adventure.
const modifier = (text) => { const modifier = (text) => {
@ -12,9 +13,9 @@ const modifier = (text) => {
} }
const spells = { const spells = {
'bazinga': 'a deathly fire ball spell that', 'SPELL1': 'a deathly fire ball spell that',
'eleno': 'turning yourself into a cloud allowing you to move at will', 'SPELL2': 'turning yourself into a cloud allowing you to move at will',
'demonia': 'a dark spell that summons an evil demon. You hear a dark rumbling and see a cloud of black smoke appear. Out of it appears a large horned demon' 'SPELL3': 'a dark spell that summons an evil demon. You hear a dark rumbling and see a cloud of black smoke appear. Out of it appears a large horned demon'
} }
const lowered = text.toLowerCase() const lowered = text.toLowerCase()