mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
General fixes
+Fixed a bug that didn't permit to display the bonus of some buildings at level 0 +The cavalry training percentage bonus, provided by the horsedrinking trough, is now displayed correctly
This commit is contained in:
@@ -464,7 +464,7 @@ class Battle {
|
||||
$winner = ($rap > $rdp);
|
||||
|
||||
// Formula for calculating the Moral
|
||||
// WW villages aren't affected by this moral bonus
|
||||
// WW villages aren't affected by this bonus
|
||||
if($attpop > $defpop && !$isWWVillage) {
|
||||
$moralbonus = 1 / round(max(0.667, pow($defpop / $attpop, 0.2 * min(1, $rap / ($rdp > 0 ? $rdp : 1)))), 3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user