Commit Graph

2528 Commits

Author SHA1 Message Date
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
iopietro eb041f5cd9 Fixed a bug in the rally point
The name of the attacked oasis and the link connected to it, are now
shown correctly.
2018-04-06 19:53:41 +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 00d5021d1c A little forgetfulness 2018-04-05 22:56:24 +02:00
Pietro a067344e03 Fixed a little bug
The Bakery is now shown in the "Soon" building list after meeting at least one prerequisites.
2018-04-05 21:47:46 +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 08bec39456 Added a new formula for catapults/rams 2018-04-05 17:08:37 +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
Shadow 9fc3db754c Update Maintenance 2018-04-05 12:33:01 +03:00
Shadow a3b20a0475 Update README.md 2018-04-05 12:32:06 +03:00
Vladyslav 7d5e8c858c Merge pull request #510 from iopietro/master
Added some things
2018-04-05 08:32:37 +03:00
Pietro 02d79777f1 Fixed a bug in the troops training
Troops can now be trained in 0 seconds.
2018-04-05 03:05:57 +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 c2587d855f Fixed a little bug
The market won't show anymore in the "Soon" list if already built.
2018-04-05 01:45:25 +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 36666615eb Added the Brewery as catapults target 2018-04-05 00:07:12 +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 2619326732 A little forgetfulness
Removed the possibility to see the catapult target(s) when attacking an occupied oasis.
2018-04-04 21:46:05 +02:00
Pietro 976a0cd949 Added a constant 2018-04-04 21:39:21 +02:00
Pietro b881605cbc Added a new functionality
This is a T4+ functionality, but it's very useful. Catapult target(s) are now shown in the rally point, under the amount of attacking troops.
2018-04-04 21:38:57 +02:00
Pietro bba46a3e6f Added some missing <b></b> 2018-04-04 20:49:17 +02:00
Vladyslav 6f900a02ef Merge pull request #509 from iopietro/master
Fixed a building bug and some cleanup
Fixed the issue #506.
2018-04-04 21:13:27 +03:00
Pietro 3716398cc4 Fixed a bug + some cleanup
The market is now shown properly in the "Soon" list.
Some cleanup.
2018-04-04 20:05:00 +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 634675958e Fixed building duplication
Buildings won't duplicate anymore in the "Show more" list.
2018-04-04 18:47:54 +02:00
Pietro 92d928969d Fixed a little thing and some cleanup
"Construct new building" is now shown correctly when trying to build something.
Some cleanup.
2018-04-04 18:27:35 +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
Vladyslav 39021f2b2e Merge pull request #508 from iopietro/master
Fixed a bug in the map
Fixed the issue #485.
2018-04-04 18:32:14 +03:00
Pietro 274b890a49 A little forgetfulness 2018-04-04 15:48:40 +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 a6e09cf2c1 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:40:33 +02:00
Pietro b1aecea890 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:39:03 +02:00
Pietro fc4ae34a69 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:38:04 +02:00
Vladyslav 04138b67f5 Merge pull request #505 from iopietro/master
Fixed a bug in dorf3.php
Fixed the issue #504.
2018-04-04 08:35:31 +03:00
Pietro ea4de43d1f Fixed a bug in dorf3.php
Scouts are now excluded from the attacks.
2018-04-03 22:56:23 +02:00
Vladyslav 9f3993b240 Merge pull request #503 from iopietro/master
Fixed some bugs:
Fixed the issue #446.
Fixed a bug in the hero's mansion
Release some memory
Fixed a demolition bug
Fixed a building bug
A little forgetfullness
Fixed some building bugs
Fixed a bug in the WW renaming
Clean-up
2018-04-03 19:51:24 +03:00
Pietro 370acfb5b6 Clean-up
Removed an unused code.
Centered the "Name Changed" string.
2018-04-03 16:15:02 +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 a9c8fc6b48 Fixed a building bug
You can no longer access to inexistent building ids
2018-04-03 14:40:23 +02:00
Pietro 49ebbee747 Fixed a demolition bug
Resource fields can't be demolished anymore
2018-04-03 13:56:13 +02:00
Pietro fff86538fa Release some memory 2018-04-03 12:56:14 +02:00
Pietro 1108871e9e Fixed a bug in the hero's mansion
You can't assign an empty name to an hero anymore.
The new name will be displayed correctly (instead of the old name) after renaming your hero.
2018-04-03 02:23:57 +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
Vladyslav 7791f61c1e Merge pull request #502 from iopietro/master
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 20:14:16 +03: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
Vladyslav 38e77e5fd4 Merge pull request #501 from iopietro/master
Fixed some bugs. Fixed issues #500, #493, #486, #438.
2018-04-02 19:14:10 +03:00
Pietro a8e39468b4 Fixed a little thing
Corrected the embassy requirements
2018-04-02 17:23:55 +02:00