aboutsummaryrefslogtreecommitdiff
path: root/plugins/loot/loot.h
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-06-14 21:37:10 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-06-14 21:37:10 +0200
commite1be7203f4c3366a9d278c9bb625a9c678c2ef24 (patch)
tree0753b9c68ffaada23f2602aebc613c3c7d1eaae2 /plugins/loot/loot.h
parent9d3ecc266d2e06f6cc8f2a310543b16edb8cbd56 (diff)
downloaddungeon_game-e1be7203f4c3366a9d278c9bb625a9c678c2ef24.tar.xz
Add loot boxes
Diffstat (limited to 'plugins/loot/loot.h')
-rw-r--r--plugins/loot/loot.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/loot/loot.h b/plugins/loot/loot.h
new file mode 100644
index 0000000..41fda44
--- /dev/null
+++ b/plugins/loot/loot.h
@@ -0,0 +1,16 @@
+#ifndef _LOOT_H_
+#define _LOOT_H_
+
+#include "../inventory/inventory.h"
+
+struct loot
+{
+ struct item *item;
+ int chance;
+ int min;
+ int max;
+};
+
+void register_loot(struct loot loot);
+
+#endif