diff options
Diffstat (limited to 'plugins/sword/sword.c')
-rw-r--r-- | plugins/sword/sword.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/sword/sword.c b/plugins/sword/sword.c index bac963f..31bb87a 100644 --- a/plugins/sword/sword.c +++ b/plugins/sword/sword.c @@ -4,6 +4,7 @@ #include "../movement/movement.h" #include "../inventory/inventory.h" #include "../recharge/recharge.h" +#include "../loot/loot.h" static bool use_broken_sword(struct itemstack *stack) { @@ -73,4 +74,11 @@ __attribute__((constructor)) static void init() .run_if_dead = false, .callback = &handle_e, }); + + register_loot((struct loot) { + .chance = 7, + .item = &sword, + .min = 1, + .max = 1, + }); } |