summaryrefslogtreecommitdiff
path: root/src/game.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-11-08 16:03:16 -0800
committerVito Caputo <vcaputo@pengaru.com>2022-11-08 16:03:16 -0800
commit11006abf3df2a46e15345798562263ca78f9e4dc (patch)
treeed4d4ddc4ef4298226e684e6f479428b346d345c /src/game.c
parent557e79536e5733d6f6e419a621728347de7e5786 (diff)
game: minor mask tweaks
- make mask protection additive rather than absolute, so you can accumulate mask hit points - raise the mask stage_t.layer 3->4 so it's less obscured
Diffstat (limited to 'src/game.c')
-rw-r--r--src/game.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.c b/src/game.c
index 273b088..c99625a 100644
--- a/src/game.c
+++ b/src/game.c
@@ -241,7 +241,7 @@ static mask_t * mask_new(game_t *game, stage_t *parent)
fatal_if(!mask, "unale to allocate mask_t");
mask->entity.type = ENTITY_TYPE_MASK;
- mask->entity.node = mask_node_new(&(stage_conf_t){ .parent = parent, .name = "mask", .layer = 3, .alpha = 1.f }, &game->sars->projection_x, &mask->entity.model_x);
+ mask->entity.node = mask_node_new(&(stage_conf_t){ .parent = parent, .name = "mask", .layer = 4, .alpha = 1.f }, &game->sars->projection_x, &mask->entity.model_x);
mask->entity.scale = GAME_MASK_SCALE;
return mask;
@@ -320,7 +320,7 @@ static void mask_adult(game_t *game, adult_t *adult, mask_t *mask)
{
(void) adult_masked_node_new(&(stage_conf_t){ .stage = adult->entity.node, .replace = 1, .name = "adult-masked", .active = 1, .alpha = 1.f }, &game->sars->projection_x, &adult->entity.model_x);
- adult->masked = GAME_MASK_PROTECTION;
+ adult->masked += GAME_MASK_PROTECTION;
stage_set_active(mask->entity.node, 0);
}
© All Rights Reserved