Skip to content

Instantly share code, notes, and snippets.

@tedivm
Created February 9, 2021 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tedivm/80183c9da1e979d1ced255ee265b52b2 to your computer and use it in GitHub Desktop.
Save tedivm/80183c9da1e979d1ced255ee265b52b2 to your computer and use it in GitHub Desktop.
Emprise Data
Roberts-MacBook-Pro-3:emprise robert$ node server/cli.js dump |
Compilation WARNING (equipment "basic_healing" from "/Users/robert/Repositories/emprise/game/items/potions.yaml"): Missing recommended parameter "description".
Compilation WARNING (equipment "advanced_healing" from "/Users/robert/Repositories/emprise/game/items/potions.yaml"): Missing recommended parameter "description".
Compilation WARNING (equipment "druid_staff" from "/Users/robert/Repositories/emprise/game/items/weapons.yaml"): Missing recommended parameter "description".
Compilation WARNING (equipment "crappy_sword" from "/Users/robert/Repositories/emprise/game/items/weapons.yaml"): Missing recommended parameter "description".
Compilation WARNING (adventure "cabin_hidden_map" from "/Users/robert/Repositories/emprise/game/locations/forest/cabin/adventures/hidden_map.yaml"): Missing recommended parameter "description".
Compilation WARNING (equipment "map_to_grove" from "/Users/robert/Repositories/emprise/game/locations/forest/cabin/adventures/hidden_map.yaml"): Missing recommended parameter "description".
Compilation WARNING (adventure "empty_campsite" from "/Users/robert/Repositories/emprise/game/locations/forest/grove/adventures/empty_campsite.yaml"): Missing recommended parameter "description".
Compilation WARNING (adventure "feral_hogs" from "/Users/robert/Repositories/emprise/game/locations/forest/grove/adventures/feral_hogs.yaml"): Missing recommended parameter "description".
Compilation WARNING (adventure "winding_path" from "/Users/robert/Repositories/emprise/game/locations/forest/grove/adventures/winding_path.yaml"): Missing recommended parameter "description".
objectIndex:
basic_healing:
name: Potion of Healing
type: equipment
consumption:
actions:
- effect:
name: heal
min: 12
max: 24
source: /Users/robert/Repositories/emprise/game/items/potions.yaml
children: []
validationFields:
- visible
- accessible
advanced_healing:
name: Potion of Advanced Healing
type: equipment
consumption:
actions:
- action: heal
min: 24
max: 48
source: /Users/robert/Repositories/emprise/game/items/potions.yaml
children: []
validationFields:
- visible
- accessible
druid_staff:
name: Druid Staff
type: equipment
equipable: true
attributes:
attack: 2
hands: -2
source: /Users/robert/Repositories/emprise/game/items/weapons.yaml
children: []
validationFields:
- visible
- accessible
crappy_sword:
name: Crappy Sword
type: equipment
equipable: true
attributes:
attack: 1
hands: -1
source: /Users/robert/Repositories/emprise/game/items/weapons.yaml
children: []
validationFields:
- visible
- accessible
cabin_hidden_map:
name: A Hidden Map
type: adventure
location: hidden_cabin
steps:
start:
type: story
text: >-
While looking through the cabin you notice something odd about the
floorboards. After prying them up you find a hidden map.
drops:
- map_to_grove
source: >-
/Users/robert/Repositories/emprise/game/locations/forest/cabin/adventures/hidden_map.yaml
priority: 10
weight: 50
children: []
validationFields:
- visible
- accessible
map_to_grove:
name: A Map to the Forest Grove
type: equipment
quest: true
source: >-
/Users/robert/Repositories/emprise/game/locations/forest/cabin/adventures/hidden_map.yaml
children: []
validationFields:
- visible
- accessible
forest_cabin:
name: The Abandoned Cabin
type: locus
parent: forest
description: An abandoned cabin in the forest.
source: /Users/robert/Repositories/emprise/game/locations/forest/cabin/cabin.yaml
children: []
validationFields:
- visible
- accessible
forest:
name: The Forest
type: location
description: The forest has always been here.
source: /Users/robert/Repositories/emprise/game/locations/forest/forest.yaml
children:
- forest_cabin
- forest_grove
validationFields:
- visible
- accessible
empty_campsite:
name: An Empty Campsite
type: adventure
location: forest_grove
steps:
start:
title: An empty campsite
text: You stumble onto an empty campsite.
drops:
- basic_healing
- items:
- advanced_healing
probability: 0.1
source: >-
/Users/robert/Repositories/emprise/game/locations/forest/grove/adventures/empty_campsite.yaml
priority: 10
weight: 50
children: []
validationFields:
- visible
- accessible
feral_hogs:
name: 20 to 30 Feral Hogs
type: adventure
location: forest_grove
steps:
start:
title: 20 to 30 Feral Hogs
text: You encounter some feral hogs
source: >-
/Users/robert/Repositories/emprise/game/locations/forest/grove/adventures/feral_hogs.yaml
priority: 10
weight: 50
children: []
validationFields:
- visible
- accessible
winding_path:
name: A path in the forest.
type: adventure
location: forest_grove
steps:
start:
type: story
text: You begin wondering down a forest path.
next:
step: darker
darker:
text: >-
It grows darker as the forest grows thicker. You come across a fork in
the path.
next:
choice:
battle:
text: Go to the left.
step: battle
clearing:
text: Go to the right.
step: clearing
battle:
text: As you walk down the path you are jumped by a bandit.
enemies:
- name: Bandit
hp: 10
defense: 1
attacks:
- text: He swings his axe
damage:
min: 2
max: 5
agility: 1
- text: He throws dirt in your face!
probability: uncommon
damage:
value: 1
effects:
- blind:
ticks: 3
drops:
- basic_healing
clearing:
text: You enter a clearing with a mysterious fountain.
next:
choice:
drink:
text: Drink from the fountain.
step: drink
exit:
text: Continue on your way.
step: exit
drink:
text: 'The fountain rejuvenates you, refreshing you both body and soul'
effects:
- inc_attribute:
attribute: character.lifetime.health
min: 10
max: 20
- inc_attribute:
attribute: character.lifetime.mana
min: 8
max: 15
exit:
text: 'The walk through the forest, coming out the other site.'
effects:
- inc_attribute:
attribute: fortitude
min: 10
max: 14
source: >-
/Users/robert/Repositories/emprise/game/locations/forest/grove/adventures/winding_path.yaml
priority: 10
weight: 50
children: []
validationFields:
- visible
- accessible
forest_grove:
name: The Forest Grove
type: locus
parent: forest
description: The grove in the forest.
visible:
type: match_all
rules:
- !<tag:yaml.org,2002:js/function> >-
function anonymous(characterOriginal
) {
const character = JSON.parse(JSON.stringify(characterOriginal));
return character.inventory['map_to_grove'] &&
character.inventory['map_to_grove']['quantity'] > 0
}
accessible:
type: match_all
rules:
- !<tag:yaml.org,2002:js/function> >-
function anonymous(characterOriginal
) {
const character = JSON.parse(JSON.stringify(characterOriginal));
return character.inventory['map_to_grove'] &&
character.inventory['map_to_grove']['quantity'] > 0
}
source: /Users/robert/Repositories/emprise/game/locations/forest/grove/grove.yaml
children: []
validationFields:
- visible
- accessible
objectClasses:
location: Location
locus: Locus
equipment: Equipment
adventure: Adventure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment