summaryrefslogtreecommitdiff
path: root/src/map/skill.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-25 08:04:42 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-25 08:04:42 +0000
commit7490d258bed49b47110dd9f0236b11994e0f1a12 (patch)
tree561a5de95c48aeb1883b8f30242568ced131a102 /src/map/skill.c
parentca860586cd1019e4fdc7a02cc83d3d936e327a4e (diff)
downloadhercules-7490d258bed49b47110dd9f0236b11994e0f1a12.tar.gz
hercules-7490d258bed49b47110dd9f0236b11994e0f1a12.tar.bz2
hercules-7490d258bed49b47110dd9f0236b11994e0f1a12.tar.xz
hercules-7490d258bed49b47110dd9f0236b11994e0f1a12.zip
Updated Weapon Repair (~100%)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@359 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/skill.c')
-rw-r--r--src/map/skill.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/map/skill.c b/src/map/skill.c
index bc087fbb3..6078f1c0c 100644
--- a/src/map/skill.c
+++ b/src/map/skill.c
@@ -1,4 +1,4 @@
-// $Id: skill.c,v 1.8 2004/11/24 10:51:28 Celestia Exp $
+// $Id: skill.c,v 1.8 2004/11/25 4:02:35 PM Celestia Exp $
/* スキル?係 */
#include <stdio.h>
@@ -3708,29 +3708,14 @@ int skill_castend_nodamage_id( struct block_list *src, struct block_list *bl,int
break;
case BS_REPAIRWEAPON: /* 武器修理 */
- if(sd) { //Temporary Weapon Repair code [DracoRPG]
+ if(sd) {
//動作しないのでとりあえずコメントアウト
-// clif_item_repair_list(sd);
- int i,r=0;
if (pc_search_inventory(sd, 999) <= 0 ) {
clif_skill_fail(sd,sd->skillid,0,0);
map_freeblock_unlock();
return 1;
}
- for(i=0; i<MAX_INVENTORY; i++) {
- if(sd->status.inventory[i].attribute == 1){
- sd->status.inventory[i].attribute = 0;
- pc_delitem(sd, pc_search_inventory(sd, 999), 1, 0);
- clif_equiplist(sd);
- clif_produceeffect(sd, 0, sd->status.inventory[i].nameid);
- clif_misceffect(&sd->bl, 3);
- clif_displaymessage(sd->fd,"Item has been repaired.");
- r++;
- break;
- }
- }
- if(!r)
- clif_skill_fail(sd,sd->skillid,0,0);
+ clif_item_repair_list(sd);
}
break;