Commit Graph

190 Commits

Author SHA1 Message Date
iopietro 8b3a387cd5 Starvation refactor
Refactor part 2 of the "Starvation" function:
+Trapped troops in other villages will die of starvation
+Returning troops will die of starvaton

Database.php:
+Added "modifyPrisoners" function
2018-04-11 00:16:39 +02:00
iopietro 21179d346f Fixed some bugs and errors
+Part 1 of the starvation refactor, attacking troops will now be killed
+Fixed some errors in Units.php, Technology.php, Battle.php and some
16_incomming.tpl
-Removed an unused function in Database.php
+Fixed a bug that could have destroyed a village after taking an
artefact even if it had more than 0 pop
2018-04-09 21:31:50 +02:00
iopietro 72fd81b69b Fixed an artefact bug
+Fixed a bug that prevented the destruction of a village, if it had 0
population with no artefacts inside
+Some clean-up
2018-04-08 22:55:33 +02:00
iopietro a8b474bc01 Fixed an artefact bug
+Fixed a bug that prevented the conquer of an artefact between two
villages of the same owner
2018-04-08 21:49:13 +02:00
iopietro d236a21d38 Fixed some bugs
+Level upgrades in Blacksmith and Armoury are now shown correctly
+Corrected a typo
+Upgrades in the Blacksmith and the Armoury should be ordered correctly
2018-04-07 23:15:23 +02:00
Pietro 9869abe5ba Fixed two population bugs
Automation.php:
Fixed the attacker population and defender population before a battle, now the account population will be considered instead of the single village population.
Fixed the attacker population and defender population while chiefing a village, now the account population will be considered instead of the single village population.

Database:
Added a function to get the total population of the account.
2018-04-05 21:09:16 +02:00
Pietro aec41019e9 Fixed a bug in the troops training
If the speed of the server is very high and the single troop training time is 0, you can now train troops instantly.
2018-04-05 03:03:49 +02:00
Pietro 3738fd44cc Fixed some bugs and some clean up
Units.php:
Fixed a bug which allows to select invalid buildings or not-hittable building (such as Cranny, Walls, Stonemason's lodge and Trapper) with catapults.
Fixed a bug which allows to select a secondary target with less than 20 catapults.

Removed some unused functions from Automation.php and Database.php.
2018-04-05 00:02:12 +02:00
Pietro a749d74dfb Fixed an hero bug
The experience was distributed incorrectly if the defender(s)/attacker had more than 1 hero
2018-04-03 01:44:27 +02:00
Pietro 09ec695997 Fixed some building bugs
Fixed a bug that allowed to build resource fields in the village (the previous fix was still hackable)
Fixed a bug that allowed to build everything with the master builder (even the WW)
Fixed a bug that allowed to build over the twentieth level with the master builder
Fixed a bug that allowed to build level 0 building with the master builder by removing them from the construction queue
2018-04-02 18:55:10 +02:00
AL-Kateb 5b1d7a300b cleanup 2018-01-22 13:53:12 +00:00
AL-Kateb b8749af55b Fixed issue #462 wrong troops training 2018-01-22 13:47:00 +00:00
Shadow b2133ddbc0 Gallic trappers does not work right #473
Thanks @Dayran
2018-01-15 08:34:39 +02:00
Alex Stoica 4c16c01781 Fix more PHP 7.2 non-countable types 2018-01-06 05:41:30 +00:00
Alex Stoica bea610cfde Fix PHP 7.2 non-countable types 2018-01-06 05:26:26 +00:00
AL-Kateb de1f19b5d6 Fixed hero does not gain XP when he dies in battle issue #445 2018-01-01 22:08:04 +00:00
AL-Kateb a254572a43 Fixed deleting trade routes after village is conquered 2017-12-28 15:21:07 +00:00
Martin Ambrus 765914d863 fix: villages with artifacts must not be destroyed
#425
2017-12-26 19:58:34 +01:00
Martin Ambrus 342ae0f0e4 fix: prisoners caching returned wrong number of prisoners
#421
2017-12-07 14:03:11 +01:00
Martin Ambrus 3b31bb05e9 fix: forum topic creation MySQL 5.7 incompatibility
#420
2017-12-07 12:59:42 +01:00
Martin Ambrus 9d3e074d09 fix: Multihunter and Support unread messages counter incorrect
#398
2017-12-02 17:03:25 +01:00
Martin Ambrus aec7a57ca4 fix: destroyed Embassy evicts player even with another Embassy standing
#399
2017-12-02 16:00:24 +01:00
Martin Ambrus 76fdbc6c3e feat: ability for players with Multihunter rank to see&write MH messages
#398
2017-12-02 11:57:59 +01:00
Martin Ambrus a948537056 fix: embassy checks performed on non-alliance players
#399
2017-12-02 10:45:20 +01:00
Martin Ambrus 7e2960afe6 fix: 2nd row of catapults firing when not allowed
#393
2017-12-01 13:55:46 +01:00
Martin Ambrus faa4fa291e fix: oasis can be conquered with animals in it
#385
2017-11-26 21:41:15 +01:00
Martin Ambrus 89e14abd5e fix: warnings and errors when creating Natars
#384
2017-11-26 21:21:02 +01:00
Martin Ambrus cb148b9aec fix: sorting in messages and reports does not work
#327
2017-11-26 17:33:10 +01:00
Martin Ambrus ec81cb70b8 fix: residence and palace being built together check did not always work 2017-11-26 14:23:01 +01:00
Martin Ambrus 5dfbd89130 fix: fool's artefact caching returns non-fool artefact data
#313
2017-11-25 20:50:12 +01:00
Martin Ambrus 8d8c96014b refactor: multiple calls to getVSumField() replaced by a single one
#313
2017-11-25 20:29:12 +01:00
Martin Ambrus 446e9b5f1d fix: artefacts couldn't be claimed after last db caching optimizations 2017-11-25 19:26:19 +01:00
Martin Ambrus cca9feaded refactor: s1_bdata table SELECTs optimized and cached
#313
2017-11-25 19:05:01 +01:00
Martin Ambrus f656f631ea refactor: s1_artefact table SELECTs optimized and cached
#313
2017-11-25 18:22:13 +01:00
Martin Ambrus 4e51c9c527 fix: fetch all players, not only one for embassy check 2017-11-25 11:19:14 +01:00
Martin Ambrus 08abff97d1 fix: mysqli_fetch_all() only available with native mysqlnd driver 2017-11-25 09:24:56 +01:00
Martin Ambrus 687dca4cec fix: MySQL 5.7 incompatibility 2017-11-25 01:46:33 +01:00
Martin Ambrus 571fb9019f fix: hero can be killed even if unit not present anywhere on the map
#371
2017-11-25 01:21:28 +01:00
Martin Ambrus f599e08586 fix: wrong non-multi-array caching of getMovement caused a lot of error
#377
2017-11-25 00:45:33 +01:00
Martin Ambrus 97fe8ffb25 fix: incorrect return value for getMovement() caused a lot of warnings 2017-11-24 23:45:29 +01:00
Martin Ambrus 56aa916f82 fix: undefined indexes 2017-11-24 18:04:22 +01:00
Martin Ambrus 2bcaeb1fef fix: undefined index 2017-11-24 16:02:54 +01:00
Martin Ambrus 866b0886fe fix: undefined index 2017-11-24 15:59:22 +01:00
Martin Ambrus 12fe632bf4 fix: prevent reuse of old attacks by re-POSTing same values 2017-11-24 10:17:54 +01:00
Martin Ambrus c06c62ba6a fix: hero training and revive got messed up 2017-11-22 21:38:57 +01:00
Martin Ambrus 96663574ad fix: compatibility issue with MySQL 5.7 2017-11-22 20:12:31 +01:00
Martin Ambrus 9d73275522 fix: incorrect hero return time calculation 2017-11-22 18:58:16 +01:00
Martin Ambrus 5492ad29b2 fix: incorrect resources SQL 2017-11-22 16:52:25 +01:00
Martin Ambrus aec0380e17 fix: resources falling to 0 will auto-fill warehouse/crop to max value 2017-11-22 16:29:25 +01:00
Martin Ambrus 6b7424fffb fix: incoming units not shown at rally point 2017-11-22 16:01:12 +01:00