diff options
| author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-23 00:16:36 +0100 | 
|---|---|---|
| committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-23 00:16:36 +0100 | 
| commit | 3ebd8ba2bd2302327932d877ef8b797793a67542 (patch) | |
| tree | 0a45b7f6bf98eab0895d71ac85b29413ab707be3 /inc | |
| parent | I think we good (diff) | |
| download | 42-cub3d-3ebd8ba2bd2302327932d877ef8b797793a67542.tar.gz 42-cub3d-3ebd8ba2bd2302327932d877ef8b797793a67542.tar.bz2 42-cub3d-3ebd8ba2bd2302327932d877ef8b797793a67542.tar.xz 42-cub3d-3ebd8ba2bd2302327932d877ef8b797793a67542.tar.zst 42-cub3d-3ebd8ba2bd2302327932d877ef8b797793a67542.zip | |
Cool
Diffstat (limited to '')
| -rw-r--r-- | inc/cub3d_defines.h | 3 | ||||
| -rw-r--r-- | inc/cub3d_structs.h | 2 | 
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; | 
