GoogleCodeArchives / idlemaster

Automatically exported from code.google.com/p/idlemaster
0 stars 0 forks source link

Players seemingly always encountering too powerful enemies #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Player characters keep getting into fights with enemies with about 500-1000 
more value (atleast when they start getting to 2000-ish), leaving them little 
to no chance of winning any fight and repeatedly adding tons of time until 
level-up.

Original issue reported on code.google.com by RayKay...@gmail.com on 12 Jul 2012 at 5:16

GoogleCodeExporter commented 9 years ago
Turns out my formula looked like this: 
(calcTotalGroup()/BATTLE_MULTIPLIER < right.calcTotalGroup() && 
                right.calcTotalGroup() < calcTotalGroup()*BATTLE_MULTIPLIER) 

So it was always looking for stronger things to fight. I've made the adjustment 
such that: 

(calcTotalGroup()/BATTLE_MULTIPLIER < right.calcTotalGroup() && 
                right.calcTotalGroup() < calcTotalGroup()*BATTLE_MULTIPLIER) 
                || 
               (calcTotalGroup()*BATTLE_MULTIPLIER > right.calcTotalGroup() && 
                right.calcTotalGroup() > calcTotalGroup()/BATTLE_MULTIPLIER);

So it looks for both weaker and stronger opponents. I've also cut the scope of 
battles by lowering BATTLE_MULTIPLIER, so it will look for closer matches only.

Original comment by imnothere199@gmail.com on 13 Jul 2012 at 1:14