Git Product home page Git Product logo

dnd_economy's Introduction

A historically authentic dynamic price generator for Dungeons & Dragons in-game purchases. Implemented with agent-based trade simulation where local events impact market prices.

In Dungeons & Dragons, the price list is set in the back of the Player's Handbook. This seems wildly unrealistic since the players will influence local prices based on their actions. In order to properly simulate the local economy, we have chosen to begin with grain prices, which in a pre-modern economy are a good proxy for labor cost which in turn dictates other prices. We're using historical reference material relating to the ~16th Century in Western Europe (chosen for similarity to most D&D settings) such as acoup.blog and Fernand Braudel's work on historical markets to provide some authenticity to the results.

An example use case -

You're running a D&D game and the party stumbles upon a town which is hungry. Your cleric casts Create Food and Water a few times to feed the villagers. You continue on with your travels.

Later, you are called to battle a large dragon at a village near the town. It turns out that the lord of the nearby village usually sells grain to the townspeople. Since, however, they had excess food thanks to the party, the lord didn't make enough money to outfit the guards with armor and weapons fit to fight a dragon.

This is the sort of deeper, more meaningful interaction with the world that we're simulating

Road Map

  • Add more detail to farming
  • Add trading and merchants
  • Add unit tests
  • Add a nice GUI, and add screenshots from that to this readme

Using JDK 15.0.1 and Intellij IDEA 2020.3.1

Open questions (please contact me if you know anything about this)

  • If there's an insufficient amount of labor to complete the sowing in one week, what is the likely outcome? Would they take help from other households or just sow later?
  • How best to model the inefficiency in trade? Merchants visited infrequently and markets were small
  • What were large landowners likely to be farming. What population did the manor usually contain?
  • How did the process of plowing actually work? What downsides were there to plowing off peak? What if you plowed without a plow team?
  • Would 3 field crop rotation fields be equivalent size?
  • How much food would a lord have on hand vs wealth? How much would his household consume?

dnd_economy's People

Contributors

fredkozlowski avatar srahim457 avatar

Stargazers

Anton Palikhov avatar apexpromgt avatar Tim Benning avatar Jacob F. Grant avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.