diff options
Diffstat (limited to 'npc/guild')
-rw-r--r-- | npc/guild/gldfunc_treasure.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/npc/guild/gldfunc_treasure.txt b/npc/guild/gldfunc_treasure.txt index ad4e3bb20..ab885d149 100644 --- a/npc/guild/gldfunc_treasure.txt +++ b/npc/guild/gldfunc_treasure.txt @@ -35,6 +35,7 @@ //= 1.3 Fixed treasure boxes spawn. (Unrolled one loop a bit) [Lupus]
//= 1.4 New number of Treasure Boxes per castle: 25 at 100 Economic pts [Lupus]
//= So you get your first chest only when your Economic Pts >= 4
+//= 1.5 Fixed treasure number 'round exploit' [Lupus]
//============================================================
@@ -49,10 +50,8 @@ function script F_GldTreas { KillMonster getarg(0)+".gat","Treasure_"+getarg(1)+"::OnDied";
if (GetCastleData(getarg(0)+".gat",2) > 100) return;
if (GetCastleData(getarg(0)+".gat",1) == 0) return;
-//Old Formula for 20 Boxes at 100 pts:
- //set getarg(2),GetCastleData(getarg(0)+".gat",2)/5+4;
-//New, correct formula for 25 boxes at 100 pts:
- set getarg(2),GetCastleData(getarg(0)+".gat",2)/4;
+//[New] correct formula for 25 boxes at 100 pts:
+ set getarg(2),GetCastleData(getarg(0)+".gat",2)>>2;
if (getarg(2) <= 0) return;
set getarg(3), getarg(2); //sets the counter variable = to the box number amount
|