aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_damage_bad_boy.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-31 15:06:16 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-31 15:06:16 +0200
commitc90eec2595ce3e8271e35c296f8a4c2bb5493011 (patch)
tree58cf86dd0f4e855d5a3a270705a54b1b71e23560 /src/ft_damage_bad_boy.c
parentBig gameplay (diff)
download42-cub3d-c90eec2595ce3e8271e35c296f8a4c2bb5493011.tar.gz
42-cub3d-c90eec2595ce3e8271e35c296f8a4c2bb5493011.tar.bz2
42-cub3d-c90eec2595ce3e8271e35c296f8a4c2bb5493011.tar.xz
42-cub3d-c90eec2595ce3e8271e35c296f8a4c2bb5493011.tar.zst
42-cub3d-c90eec2595ce3e8271e35c296f8a4c2bb5493011.zip
Now that's what I call balance take this SC2 'balance' team haha more like sc2 zerglance team
Diffstat (limited to 'src/ft_damage_bad_boy.c')
-rw-r--r--src/ft_damage_bad_boy.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ft_damage_bad_boy.c b/src/ft_damage_bad_boy.c
index c8a04fa..b6eb7df 100644
--- a/src/ft_damage_bad_boy.c
+++ b/src/ft_damage_bad_boy.c
@@ -37,9 +37,10 @@ void
id = ft_get_bad_boy_id(cl);
if (cl->plist.handles_weapon == 0)
cl->bad_boy[id].life -= FT_W_ONE_DANAGE_AMOUNT;
- else if (cl->plist.handles_weapon == 1)
- cl->bad_boy[id].life -= FT_W_TWO_DANAGE_AMOUNT;
else if (cl->plist.handles_weapon == 2)
+ cl->bad_boy[id].life -= FT_W_TWO_DANAGE_AMOUNT;
+ else if (cl->plist.handles_weapon == 4)
cl->bad_boy[id].life -= FT_W_THREE_DANAGE_AMOUNT;
+ ft_printf("%hhd\n", cl->bad_boy[0].life);
/* TODO: sfx enemy scream and death */
}