1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-08-05 07:31:48 +02:00

Add missing weapon identifier for Heli-blade. Should close #23

This commit is contained in:
Sandu Liviu Catalin
2016-07-27 23:59:43 +03:00
parent 93e6e9f77a
commit ed6bb9802f
3 changed files with 7 additions and 2 deletions

View File

@@ -130,12 +130,15 @@ Int32 GetWeaponID(CCStr name)
// Default to unknwon
else return SQMOD_UNKNOWN;
// [H]ammer
// [H]eliblades
// [H]elicannon
case 'h':
// [Ha]mmer
if (b == 'a') return SQMOD_WEAPON_HAMMER;
// [He]licannon
else if (b == 'e') return SQMOD_WEAPON_HELICANNON;
// [He]li[b]lade[s]
else if (b == 'e' && (d == 's' || d == 'b' || (len > 4 && str[4] == 'b'))) return SQMOD_WEAPON_HELIBLADES;
// [He]li[c]anno[n]
else if (b == 'e' && (d == 'c' || d == 'n' || (len > 4 && str[4] == 'c'))) return SQMOD_WEAPON_HELICANNON;
// Default to unknwon
else return SQMOD_UNKNOWN;
// [K]atana