mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-25 04:27:15 +00:00
fix: give hero points to spend by the actual number of levels he got
This commit is contained in:
@@ -4605,10 +4605,10 @@ class Automation {
|
|||||||
$modes[] = null;
|
$modes[] = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
// add 5 points, if we're below level 100
|
// add as many points as needed, if we're below level 100
|
||||||
if ($scorePoints) {
|
if ($scorePoints) {
|
||||||
$columns[] = 'points';
|
$columns[] = 'points';
|
||||||
$columnValues[] = 5;
|
$columnValues[] = (5 * ($newLevel - $herolevel));
|
||||||
$modes[] = 1;
|
$modes[] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user