浏览代码

- Changed MAX_LEVEL to the standard value 99. Memory consumption-= 55MB. (high-rate servers will have to change this)
- Corrected SC_COMA's success chance (X.4 says it's unconditional 100%)

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

ultramage 18 年之前
父节点
当前提交
905f2da40c
共有 3 个文件被更改,包括 5 次插入8 次删除
  1. 4 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/map.h
  3. 0 7
      src/map/status.c

+ 4 - 0
Changelog-Trunk.txt

@@ -4,6 +4,10 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2007/03/27
+	* Changed MAX_LEVEL to the standard value 99. Memory consumption-= 55MB.
+	- !!!WARNING!!! If your server uses higher levels, be sure to adjust
+	  this appropriately! (the define can be found in /src/map/map.h)
+	* Corrected SC_COMA's success chance (X.4 says it's unconditional 100%)
 	* Changed the vs8 used crt library to static linking [ultramage]
 2007/03/26
 	* Coma now reduces SP to 0 (with the exception of Dark Blessing) [Skotlex]

+ 1 - 1
src/map/map.h

@@ -48,7 +48,7 @@
 #define MAX_EVENTTIMER 32
 #define NATURAL_HEAL_INTERVAL 500
 #define MAX_FLOORITEM 500000
-#define MAX_LEVEL 1000
+#define MAX_LEVEL 99
 #define MAX_WALKPATH 32
 #define MAX_DROP_PER_MAP 48
 #define MAX_IGNORE_LIST 80

+ 0 - 7
src/map/status.c

@@ -4425,19 +4425,12 @@ int status_get_sc_def(struct block_list *bl, int type)
 	case SC_STONE:
 	case SC_FREEZE:
 	case SC_DECREASEAGI:
-	case SC_COMA:
-		sc_def = 300 +100*status->mdef;
-		break;
 	case SC_CURSE:
 		if (status->luk > status_get_lv(bl))
 			return 10000; //Special property: inmunity when luk is greater than level
 		else
 			sc_def = 300 +100*status->luk;
 		break;
-	case SC_COMA:
-		//TODO: Need actual data on rate reductions.
-		sc_def = 100*status->luk;
-		break;
 	case SC_BLIND: //TODO: These 50/50 factors are guessed. Need to find actual value.
 		sc_def = 300 +50*status->vit +50*status->int_;
 		break;