https://github.com/brahmlower/loot-generator
A random loot generator! 📦🏅
https://github.com/brahmlower/loot-generator
Last synced: over 1 year ago
JSON representation
A random loot generator! 📦🏅
- Host: GitHub
- URL: https://github.com/brahmlower/loot-generator
- Owner: brahmlower
- Created: 2021-05-20T06:17:35.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-20T06:18:05.000Z (about 5 years ago)
- Last Synced: 2025-02-05T17:17:20.278Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Project Goals
Need to be able to generate items.
Given base item type, create some varient, specifying rarity and approximate rarities
```js
items.generate('book', {})
```
Item --|> Property
Item --|> State
Item --|> Attribute (derived from state & properties)
:Item { name: 'book' } -[:WHEN { noteworthy: false }]-> :State { name: 'dry'}
:Item { name: 'book' } -[:WHEN { noteworthy: true }]-> :State { name: 'wet'}
Goal item name: "lost tome of enchanting, vol 1"
"lost" - describes ownership, classified as noteworthy
"tome" - synonym, with tag like "mysterious"
"of" - purpose prefix
"enchanting" - purpose, with tag like "mysterious", "magical", "action"
"vol x" - optional property, part of a set
## Development
Setup is just `npm install`
### Run the neo4j server
There are two npm targets for the neo4j: `setup` and `server`.
Run the setup script during first time setup:
```shell
npm run neo4j:setup
```
Then start the service:
```shell
npm run neo4j:server
```
Then open the neo4j web browser at: http://localhost:7474/browser/