From b48c8e64ae4828e5666db23c811da4a1d7e7a8c4 Mon Sep 17 00:00:00 2001 From: Fairuz-Afdhal <62930373+Fairuz-Afdhal@users.noreply.github.com> Date: Thu, 22 Jul 2021 12:53:35 +0700 Subject: [PATCH 1/2] Remove skill duplicate + add sniper rifle skill Micro-UZI weapon skill have a duplicate and sniper rifle is not added. This commit adds it. --- weaponskill.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/weaponskill.inc b/weaponskill.inc index 6575fa7..e32e827 100644 --- a/weaponskill.inc +++ b/weaponskill.inc @@ -46,7 +46,7 @@ static const WEAPONSKILL_MP5, // 29 WEAPONSKILL_AK47, // 30 WEAPONSKILL_M4, // 31 - WEAPONSKILL_MICRO_UZI // 32 + WEAPONSKILL_SNIPERRIFLE // 32 }; static const @@ -60,7 +60,8 @@ static const !"Micro-UZI", // WEAPONSKILL_MICRO_UZI !"MP5", // WEAPONSKILL_MP5 !"AK47", // WEAPONSKILL_AK47 - !"M4" // WEAPONSKILL_M4 + !"M4", + !"Sniper RIfle" // WEAPONSKILL_M4 }; static From 2c84de925f0aaf743908cbf47fa458ab784f89dd Mon Sep 17 00:00:00 2001 From: Fairuz-Afdhal <62930373+Fairuz-Afdhal@users.noreply.github.com> Date: Thu, 22 Jul 2021 12:56:22 +0700 Subject: [PATCH 2/2] Increase MAX_WEAPON_SKILLS --- weaponskill.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weaponskill.inc b/weaponskill.inc index e32e827..4ed3053 100644 --- a/weaponskill.inc +++ b/weaponskill.inc @@ -27,7 +27,7 @@ #define MIN_WEAPON_SKILL_LEVEL 0 #endif -#define MAX_WEAPON_SKILLS 10 +#define MAX_WEAPON_SKILLS 11 #define INVALID_WEAPON_SKILL_ID -1 /*