From e1be7203f4c3366a9d278c9bb625a9c678c2ef24 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Mon, 14 Jun 2021 21:37:10 +0200 Subject: Add loot boxes --- plugins/fireball/fireball.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/fireball/fireball.c') diff --git a/plugins/fireball/fireball.c b/plugins/fireball/fireball.c index a0e9a13..e771d08 100644 --- a/plugins/fireball/fireball.c +++ b/plugins/fireball/fireball.c @@ -3,6 +3,7 @@ #include "../game/game.h" #include "../movement/movement.h" #include "../inventory/inventory.h" +#include "../loot/loot.h" struct fireball_data { @@ -113,4 +114,11 @@ __attribute__((constructor)) static void init() .count = 7, .meta = NULL, }); + + register_loot((struct loot) { + .item = &fireball_item, + .chance = 3, + .min = 4, + .max = 7, + }); } -- cgit v1.2.3