Commit Graph

1174 Commits

Author SHA1 Message Date
iopietro 5bde1fe2dd A little forgetfulness 2018-04-07 23:22:56 +02:00
iopietro fba51fd48d A little fix
The speed of the server is now counted in the Blacksmith/Armoury
researches waiting loop formula
2018-04-07 23:18:05 +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
iopietro 0132af4611 Fixed a lot bugs/security exploits
Profiles can't be hacked anymore, added some security control and
removed those malicious "hidden uid"
Errors now are now shown correctly while editing the profile
The level of the research you're doing in the Blacksmith/Armoury is now
displayed in the research queue
Hugely fixed the battle system, a big thanks to kirilloid for helping me
by providing his formulas :)!
Some general clean-up and bug fixing of little errors
Added some string constants to the language file (en.php)
2018-04-07 22:16:28 +02:00
iopietro f341c209b8 Added a new feature and some clean-up
Added the research loop in the blacksmith and in the armoury, only for
plus users. This was a not coded T3.6 feature.
"Total resources required" (for NPC merchants) are now calculated
correctly in the Armoury.
Some clean-up in Technology.php
2018-04-06 21:59:04 +02:00
Pietro 5f9186bd71 Fixed some bugs
In the simulator:
Fixed some error that could have shown during scountings.

All types of attack:
Changed "int" into "float" to gain precision in the attack formula.
Fixed spies formula, it's more precise now.
Fixed the Blacksmith/Armoury calculation formula for spies.
2018-04-06 18:06:08 +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 c3e2bae50b Fixed some catapults bug
Walls can't be targeted anymore by catapults (if the target was random).
Destroyed buildings of completely destroyed villages are shown properly in the report.
Added the information "There are no buildings to destroy" if only walls are left and the village has more than 0 population.
Some clean up.
2018-04-05 19:41:32 +02:00
Pietro a1fbf9dcfc Fixed some catapult/ram bugs
Battle.php:
Fixed the blacksmith level formula for catapults and rams.

Automation.php:
+Catapults and rams now works better because of a new formula.

Note: this formula isn't 100% accurate with the real Travian formula, i can't find that formula anywhere, so i created an approximate formula.
2018-04-05 17:05:25 +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 f0d6210979 Fixed a catapults bug
Fixed a bug which permits to select a not-selectable building, with a lower level of rally point.
Fixed a bug which permits to select two targets (with 20 or more catapults) with a rally point level lower than 20.
Fixed a typo.
2018-04-05 01:38:05 +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 976a0cd949 Added a constant 2018-04-04 21:39:21 +02:00
Pietro bba46a3e6f Added some missing <b></b> 2018-04-04 20:49:17 +02:00
Pietro f41be6dff7 Fixed some bugs
Automation.php: 
Fixed a bug that could happened if two attacks hit two different targets (one with some traps and the other with 0 traps) at the same second.

Building.php: 
Fixed the possibility to build a residence and a palace with the waiting loop (the previous fix wasn't working and $tid was used as a $id and viceversa).
Fixed the possibility to build in the id reserved to walls (id 40).
2018-04-04 20:01:58 +02:00
Pietro a5778c39be Fixed a building bug
You can only build one palace in the whole account.
2018-04-04 18:25:48 +02:00
Pietro 8aad98dbb7 Fixed a bug in the map
Enforcements/scouts/attacks are now tracked in the map if you've a plus account.
2018-04-04 15:41:04 +02:00
Pietro da0828e83e Fixed a bug in the WW renaming
You can no longer rename other WW or your village WW if you don't have one.
2018-04-03 16:11:06 +02:00
Pietro 757b41143d Fixed some building bugs
Fixed an error that could have shown if you had tried to build a not buildable building.
Buildings can no longer be built if in demolition.
Buildings can no longer be built above the max level (the previous fix was still hackable, through the waiting loop).
2018-04-03 15:39:48 +02:00
Pietro b1069edf1d A little forgetfullness 2018-04-03 14:41:19 +02:00
Pietro fff86538fa Release some memory 2018-04-03 12:56:14 +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
Pietro 27bef26315 Fixed an exploit in Building.php
With this exploit you can build "infinite" building of the same type.
Reduced the file size from 1274 lines to 1072 lines.
Removed some unused variables.
Corrected some building requirements (Embassy, Academy, Stable, Walls).
2018-04-02 17:22:09 +02:00
Pietro ea65319477 Fixed trapped chiefs' behaviour
Trapped chiefs can no longer reduce the village loyalty.
Removed some unused code.
2018-04-01 02:30:46 +02:00
Pietro 057c622c26 Fixed an oasis exploit
With this bug you could have an infinite amount of resources
2018-04-01 01:05:02 +02:00
Pietro f3564a3390 Update Multisort.php 2018-03-31 17:58:37 +02:00
Pietro ea42e8bf63 A little forgetfulness 2018-03-31 17:32:17 +02:00
Pietro 1657928d88 Fixed a bug while sorting 2018-03-31 16:07:32 +02:00
Vladyslav a9975b9fde right amount of resources for the treasury
11 and 12 levels of the treasury used the wrong amount of wood
2018-03-04 22:06:24 +02:00
AL-Kateb 9de7aec692 Fixed redirecting to the rally point issue #479 2018-01-23 12:18:57 +00:00
AL-Kateb 5b1d7a300b cleanup 2018-01-22 13:53:12 +00:00
AL-Kateb 7f7d6f1f63 Restored truncated Technology.php 2018-01-22 13:50:00 +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 83d22f16e7 Fix typo 2018-01-07 16:49:55 +00:00
Alex Stoica 1a71fdbc60 Add WW win correct date 2018-01-07 16:48:22 +00:00
Alex Stoica b87fb4eb0e Fix uncont PHP 7.2 error 2018-01-07 05:28:35 +00:00
Alex Stoica 7b67bed84e Fix multiSort create_function is deprecated in PHP 7.2 2018-01-07 03:07:07 +00: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
Alex Stoica 8e2fb18c33 Fix warning count in Ranking
Fix Warning: count(): Parameter must be an array or an object that implements Countable in GameEngine/Ranking.php on line 279
2018-01-07 04:10:13 +02:00
AL-Kateb f5a3bf8ab0 Fixed bakery wrng calculation Issue #408 2018-01-03 20:53:40 +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 caf9112314 Prevent user from illegally founding a new village with 0 settlers 2018-01-01 19:02:25 +00:00
AL-Kateb 5466aa2af1 NPC button no longer appears if combined resources are not enough 2017-12-31 18:19:05 +00:00
AL-Kateb a254572a43 Fixed deleting trade routes after village is conquered 2017-12-28 15:21:07 +00:00
AL-Kateb ddc2e62472 Fixed loosing 1 level when there are only few catapults 2017-12-27 14:38:40 +00:00
AL-Kateb be8f683417 Cleanup 2017-12-27 10:59:01 +00:00
AL-Kateb 4d00b4ad1c Fixed units doubling when evasion is active 2017-12-27 10:23:57 +00:00