Explorar el Código

Fixed a bug in r11633 always spawning only 1 chest type

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11874 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage hace 17 años
padre
commit
7dc104912b
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  1. 2 0
      npc/Changelog.txt
  2. 1 1
      npc/guild/gldfunc_treasure.txt

+ 2 - 0
npc/Changelog.txt

@@ -1,5 +1,7 @@
 Date		Added
 ======
+2007/12/09
+	* Fixed a bug in r11633 always spawning only 1 chest type [ultramage]
 2007/12/08
 	* Removed double tabs from mapflag/warp/script/function/duplicate declarations. [FlavioJS]
 2007/12/02

+ 1 - 1
npc/guild/gldfunc_treasure.txt

@@ -77,7 +77,7 @@ function	script	F_GldTreas	{
 	}
 	for (set .@i,1; .@i <= getarg(3) ; set .@i,.@i+1) {
 		// set treasure box ID
-		set getarg(4), getarg(5)+((getarg(3)+1) & 1);
+		set getarg(4), getarg(5) + (.@i+1) % 2;
 		areamonster getarg(0),getarg(6),getarg(7),getarg(8),getarg(9),"Treasure Chest",getarg(4),1,"Treasure_"+getarg(1)+"::OnDied";
 	}
 	return;