Browse Source

- Corrected damage of non-player casted Cart Revolution
- Removed enumeration item_group_list and replaced it by two defines, which is what the code really needs. Bumped the max number of item groups to 40.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10100 54d463be-8e91-2dee-dedb-b68131a5f0ec

skotlex 18 years ago
parent
commit
02f408ea73
2 changed files with 4 additions and 39 deletions
  1. 1 1
      src/map/battle.c
  2. 3 38
      src/map/map.h

+ 1 - 1
src/map/battle.c

@@ -1378,7 +1378,7 @@ static struct Damage battle_calc_weapon_attack(
 					if(sd && sd->cart_weight)
 						skillratio += 100*sd->cart_weight/battle_config.max_cart_weight; // +1% every 1% weight
 					else if (!sd)
-						skillratio += 150; //Max damage for non players.
+						skillratio += 100; //Max damage for non players.
 					break;
 				case NPC_RANDOMATTACK:
 					skillratio += rand()%150-50;

+ 3 - 38
src/map/map.h

@@ -229,44 +229,9 @@ enum {
 	ELE_MAX
 };
 
-enum {
-	IG_BLUEBOX=1,
-	IG_VIOLETBOX,	//2
-	IG_CARDALBUM,	//3
-	IG_GIFTBOX,	//4
-	IG_SCROLLBOX,	//5
-	IG_FINDINGORE,	//6
-	IG_COOKIEBAG,	//7
-	IG_POTION,	//8
-	IG_HERBS,	//9
-	IG_FRUITS,	//10
-	IG_MEAT,	//11
-	IG_CANDY,	//12
-	IG_JUICE,	//13
-	IG_FISH,	//14
-	IG_BOXES,	//15
-	IG_GEMSTONE,	//16
-	IG_JELLOPY,	//17
-	IG_ORE,	//18
-	IG_FOOD,	//19
-	IG_RECOVERY,	//20
-	IG_MINERALS,	//21
-	IG_TAMING,	//22
-	IG_SCROLLS,	//23
-	IG_QUIVERS,	//24
-	IG_MASKS,	//25
-	IG_ACCESORY,	//26
-	IG_JEWELS,	//27
-	IG_GIFTBOX_1,	//28
-	IG_GIFTBOX_2,	//29
-	IG_GIFTBOX_3,	//30
-	IG_GIFTBOX_4,	//31
-	IG_EGGBOY,	//32
-	IG_EGGGIRL,	//33
-	IG_GIFTBOXCHINA,	//34
-	IG_LOTTOBOX,	//35
-	MAX_ITEMGROUP,
-} item_group_list;
+//The onlu item group required by the code to be known.
+#define IG_FINDINGORE 6
+#define MAX_ITEMGROUP 40
 
 enum {
 	ATF_SELF=0x01,