openstellaris-vault/pages/metrics db.md
2023-05-20 02:26:34 -05:00

7 lines
652 B
Markdown

tags:: architecture
- everything that can possibly be a [[metric]] tracked in one place
- every [[metric]] also has “attributes”, the same way a db has columns, so we can do things like query for "all attack % of this particular empire"
- can uniformly apply [[modifiers]] like "all of these metrics queried take a 15% debuff"
- tracking metrics also gives us stats options, for example if ur [[energy credits]] are being combined from multiple sources each of them could be tracked separately
- every entry could also contain a closure along with the current amount, so the new value at any [[tick]] can just be determined by running the closure