aboutsummaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
Diffstat (limited to 'inc')
-rw-r--r--inc/cub3d_defines.h3
-rw-r--r--inc/cub3d_structs.h2
2 files changed, 4 insertions, 1 deletions
diff --git a/inc/cub3d_defines.h b/inc/cub3d_defines.h
index 7df3de3..c3c5d66 100644
--- a/inc/cub3d_defines.h
+++ b/inc/cub3d_defines.h
@@ -289,5 +289,8 @@ enum
# define FT_TRAP_DAMAGE_AMOUNT 45
# define FT_HEAL_PACK_AMOUNT 20
# define FT_BOUNCE_FACTOR 4
+# define FT_WEAP_ONE_STRT_AMMO -4
+# define FT_WEAP_TWO_STRT_AMMO 30
+# define FT_WEAP_THREE_STRT_AMMO 24
# endif
diff --git a/inc/cub3d_structs.h b/inc/cub3d_structs.h
index babf3be..380b7f4 100644
--- a/inc/cub3d_structs.h
+++ b/inc/cub3d_structs.h
@@ -135,6 +135,7 @@ typedef struct s_player
int16_t life;
uint8_t has_weapon[3];
int8_t handles_weapon;
+ int16_t ammo[3];
} t_player;
typedef struct s_ray
@@ -214,7 +215,6 @@ typedef struct s_map
uint8_t isskybox;
uint8_t istraps;
uint8_t isheals;
- uint8_t isweapon[3];
uint8_t darklvl;
uint16_t scale;
int8_t topsp;