aboutsummaryrefslogtreecommitdiff
path: root/plugins/cherry/cherry.c
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-06-14 20:58:57 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-06-14 20:58:57 +0200
commit0f4153099c2a0d8fa4480dcd690820976df4a939 (patch)
tree46db76492cc640af2c48be8fcfe3e5d2ec96e7d6 /plugins/cherry/cherry.c
parent90114b876b9e023111dd17b455f82972fd6d5c1d (diff)
downloaddungeon_game-0f4153099c2a0d8fa4480dcd690820976df4a939.tar.xz
Add mapgen contexts
Diffstat (limited to 'plugins/cherry/cherry.c')
-rw-r--r--plugins/cherry/cherry.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/cherry/cherry.c b/plugins/cherry/cherry.c
index f998770..1f96aca 100644
--- a/plugins/cherry/cherry.c
+++ b/plugins/cherry/cherry.c
@@ -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);
}