summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-21 21:38:56 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-21 21:38:56 +0000
commitd5757f74134b4c00eb055aa75f52eb38c13b9b92 (patch)
tree3eeb1dd0fbd0cdd4565705a9cfc8647cd6b37a81 /src/map/skill.c
parentc7603c50a23591bcb7a44de7f5495a7dbae8d63b (diff)
downloadhercules-d5757f74134b4c00eb055aa75f52eb38c13b9b92.tar.gz
hercules-d5757f74134b4c00eb055aa75f52eb38c13b9b92.tar.bz2
hercules-d5757f74134b4c00eb055aa75f52eb38c13b9b92.tar.xz
hercules-d5757f74134b4c00eb055aa75f52eb38c13b9b92.zip
- Various GS skill requirement corrections:
- All coin related skills can be used with any weapon. Those that require ammo can be used with any ammo. - Added support for specifying ammo type = 99 in the skill_require_db file, it can be used to specify that any kind of ammo can be used with the skill, but you NEED to have ammo equipped. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9289 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index eab031766..6bd17dec0 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -11285,7 +11285,11 @@ int skill_readdb (void)
p = split[8];
for(j=0;j<32;j++){
l = atoi(p);
- if (l)
+ if (l==99) {
+ skill_db[i].ammo = 0xffffffff;
+ break;
+ }
+ else if (l)
skill_db[i].ammo |= 1<<l;
p=strchr(p,':');
if(!p)