]> jfr.im git - irc/gameservirc.git/commitdiff
* Slightly adjust the weapon and armor bonuses to prevent a divide by zero
authorwcampbel <redacted>
Fri, 2 Apr 2004 14:40:44 +0000 (14:40 +0000)
committerwcampbel <redacted>
Fri, 2 Apr 2004 14:40:44 +0000 (14:40 +0000)
    exception (reported by wassup).

git-svn-id: https://svn.code.sf.net/p/gameservirc/code/trunk@138 bc333340-6410-0410-a689-9d09f3c113fa

gameserv/Changes
gameserv/gameserv.cpp

index 05efa0961520d56e26fec7f349b9aaf2bdf2c6ed..cac1310e05d01efcc7ebca9edbc86e37309a30d5 100644 (file)
@@ -1,4 +1,6 @@
 Version 1.1.9
 Version 1.1.9
+* Slightly adjust the weapon and armor bonuses to prevent a divide by zero
+    exception (reported by wassup). - wcampbel
 * Prevent players from issuing a FIGHT against a dead player (reported
     by wassup). - wcampbel
 * Fixed a core in RUN if a client wasn't playing. - wcampbel
 * Prevent players from issuing a FIGHT against a dead player (reported
     by wassup). - wcampbel
 * Fixed a core in RUN if a client wasn't playing. - wcampbel
index d1401125d0a2db42912ec555019e88e34f2d97f2..ac5b632611c04c204fed64513a49298aaf449f09 100644 (file)
@@ -126,8 +126,8 @@ char *armors[WNA] = { "Nothing", "Clothes", "Leather Vest", "Chain Mail", "Plate
 
 int prices[WNA - 1] = {200, 1000, 3000, 10000, 30000, 100000, 150000, 200000, 400000, 
                        1000000, 4000000, 10000000, 40000000, 100000000, 400000000};
 
 int prices[WNA - 1] = {200, 1000, 3000, 10000, 30000, 100000, 150000, 200000, 400000, 
                        1000000, 4000000, 10000000, 40000000, 100000000, 400000000};
-int webonus[WNA] = {0, 10, 15, 25, 35, 45, 65, 85, 125, 185, 255, 355, 505, 805, 1205, 1805};
-int arbonus[WNA] = {0, 1, 3, 10, 15, 25, 35, 50, 75, 100, 150, 225, 300, 400, 600, 1000};
+int webonus[WNA] = {1, 10, 15, 25, 35, 45, 65, 85, 125, 185, 255, 355, 505, 805, 1205, 1805};
+int arbonus[WNA] = {1, 2, 4, 10, 15, 25, 35, 50, 75, 100, 150, 225, 300, 400, 600, 1000};
 
 int hpbonus[11] = {10, 15, 20, 30, 50, 75, 125, 185, 250, 350, 550};
 int strbonus[11] = {5, 7, 10, 12, 20, 35, 50, 75, 110, 150, 200};
 
 int hpbonus[11] = {10, 15, 20, 30, 50, 75, 125, 185, 250, 350, 550};
 int strbonus[11] = {5, 7, 10, 12, 20, 35, 50, 75, 110, 150, 200};