]> git.lizzy.rs Git - dungeon_game.git/blobdiff - plugins/cherry/cherry.c
Add mapgen contexts
[dungeon_game.git] / plugins / cherry / cherry.c
index f9987704b93af46fb7d79e9e557f6a255f8360cf..1f96aca63986a9910e7b5866d98e24036165c645 100644 (file)
@@ -6,8 +6,6 @@
 
 static bool use_cherry(struct itemstack *stack)
 {
-       (void) stack;
-
        add_health(&player, 2);
        return true;
 }
@@ -56,7 +54,7 @@ static struct entity cherry_entity = {
        .on_damage = NULL,
 };
 
-static void spawn_cherry(int x, int y)
+static void spawn_cherry(int x, int y, enum mg_context ctx)
 {
        spawn(cherry_entity, x, y, NULL);
 }