Commit Graph

61 Commits

Author SHA1 Message Date
iopietro 95cc6180a9 Fixed a catapult bug
+Fixed a bug that didn't recount building time for in waiting loop
buildings
+Fixed a bug that didn't remove a building from the waiting loop, if the
previous was destroyed by catapults
2018-05-15 20:20:38 +02:00
iopietro 43cbd60f78 General fixes
+Added an image in: Natars/Artifacts spawn message, WW villages spawn
message and WW building plans spawn message
+Fixed a wrong time calculation when removing a building from the
construction queue, if there was present a master builder order
2018-05-13 00:21:07 +02:00
iopietro 950fc61f8a General fixes
+A method in Building.php is now static
+Fixed timers in the market
+Fixed a bug that did take in account a wrong tournament square when
calculating the returning time of the troops
2018-05-10 20:50:29 +02:00
iopietro 44fc912616 Fixed a building bug
+Fixed a bug that permitted to build two buildings or two resources
field concurrently, without a plus account, as a Roman
+Some clean-up
2018-05-01 19:05:17 +02:00
iopietro 56e280f436 Artifacts fixes part 4
Completely fixed the artifact of the fool and fixed all kind of
artifact:

+Deleted some useless .tpl files and merged into one (Stable)
+The artifact of the fool effect won't be displayed if not active
+Fixed a bug that permitted to have a great and a unique artefacts
active at the same moment
+Big reductions of code in a lot of files
+Created some new methods to support artifacts
+Fixed a bug that prevented the effect of the "Rivals confusion" to work
correctly
+Fixed a bug that prevented "The eagles eyes" artifact to work correctly
for the attacker
+Fixed the artifact of the fool of every kind, now it's calculated with
a new method
+Fixed the cranny capacity when a "Rivals confusion" artifact is active
+Some minor bug fixing , improovements and optimization
2018-04-26 20:37:47 +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 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 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
Martin Ambrus 65f6eb2da1 fix: WW building plans must be in player's village to start building WW
#337
2017-12-01 11:08:41 +01:00
Martin Ambrus 7c6ab4c1f5 fix: no need for WW Building Plan to start building a WW
#337
2017-11-30 20:37:59 +01:00
Martin Ambrus cb60226297 fix: cannot build fields and buildings
#383
2017-11-26 19:02:55 +01:00
Martin Ambrus a4bcf0bdfe fix: unable to build with master 2017-11-26 15:17:21 +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 43b7e6c9b0 fix: ww can be built to 51 without construction plan in a loop
#337
2017-11-26 14:11:55 +01:00
Martin Ambrus 72599065a9 fix: disallow building non-existing buildings 2017-11-26 12:26:02 +01:00
Martin Ambrus 1169b4febb fix: not able to build new buildings 2017-11-25 13:11:22 +01:00
Martin Ambrus bc450c686e fix: not able to upgrade woodcutter fields 2017-11-25 13:01:09 +01:00
Martin Ambrus 3196ee9242 fix: possible to build above max level or change standing building type 2017-11-25 12:21:07 +01:00
Martin Ambrus 997b32e174 fix: great warehouse & great granary can be built with right artefact 2017-11-25 11:53:14 +01:00
Martin Ambrus abfcde6e9a fix: build check for village vs non-village buildings 2017-11-25 11:26:10 +01:00
Martin Ambrus ddb8614b14 fix: construction of a palace and a residence in one village
#323
2017-11-22 14:35:33 +01:00
Martin Ambrus 2a68b07704 refactor: last of foreach loops optimized
#313
2017-11-19 14:32:00 +01:00
Martin Ambrus d17d1f9b32 refactor: last round of database values caching
#313
2017-11-17 19:40:34 +01:00
Martin Ambrus 4e5e52f421 fix: immediate finish (PLUS) allows master builder to build 2 levels 2017-11-09 22:35:29 +01:00
Martin Ambrus 19770a5418 fix: master builder auto-increments building level with low resources
When we don't have enough resources, the building level still got
increased when using master builder in the queue and then using instant
build.

Relates to #290
Relates to #257
2017-11-07 19:48:32 +01:00
Martin Ambrus f7d8da5a41 fix: Master builder can build above warehouse/granary requirements
Closes #290
2017-11-06 18:49:03 +01:00
Martin Ambrus 18b5665b7d fix: master builder takes no resources in insta-build
Closes #270
2017-11-05 15:48:22 +01:00
Martin Ambrus 8933b0b55f fix: master builder doesn't subtract gold but insta-builds anyway 2017-11-05 15:04:20 +01:00
Martin Ambrus 683b692a55 fix: gold can go to negative values
Master builder cannot be used if we only have 2 gold and we chose to
insta-finish everything. In such case, master builder task will be
deleted instead of completed.

Fixes #264
2017-11-04 09:36:55 +01:00
Martin Ambrus bebc105e14 fix: invalid gold amount deductions for instant-build, instant-research 2017-11-03 00:32:40 +01:00
Martin Ambrus f10a47be87 fix: now can use gold for demolition when only job is palace/residence 2017-11-02 13:37:53 +01:00
Martin Ambrus 945bb2f8c7 fix: too much gold for instant build & research
Fixes #257
2017-11-02 13:11:19 +01:00
Martin Ambrus 2f769decce fix: "instant-finish" gold decreased 2x when demolition was in progress
Closes #257
2017-10-29 23:10:54 +01:00
Martin Ambrus 85a853533f fix: all requirements now checked before a building something is allowed 2017-10-29 11:22:45 +01:00
Martin Ambrus 59af039d8e fix: "finish immediately" PLUS link doesn't decrease gold for demolition 2017-10-28 21:06:19 +02:00
Martin Ambrus 30d3b9c4fa refactor: OOP code movements started :) 2017-10-25 13:38:38 +02:00
Martin Ambrus dd90648b09 fix: immediate finish of all building progress redirects correctly 2017-10-22 13:21:36 +02:00
Martin Ambrus 7270a69a63 fix: all location headers need to have exit after them! 2017-10-22 13:00:54 +02:00
Martin Ambrus a059aac482 fix: Send merchants link would not work for Support 2017-10-22 11:21:51 +02:00
Martin Ambrus 77a1d9879d fix: Great Workshop shown as error in Admin (editing Village) 2017-10-21 22:38:01 +02:00
Martin Ambrus 383aa36e54 fix: Multihunter login can no longer build fields above level 20 2017-10-18 12:50:45 +02:00
Martin Ambrus 4c2c769a44 chore: ToDo and formatting 2017-10-18 12:43:37 +02:00
Martin Ambrus d76669cb42 fix: last batch of manual INT typecastings 2017-10-18 01:11:25 +02:00
Martin Ambrus db4c373ace fix: PHP4x + PHP5x constructors change for PHP7+ compatible ones 2017-09-19 20:40:43 +02:00
TPLinux 83c26c024b Fix reload crush bug 2017-06-29 08:22:28 +00:00
TPLinux 18c423dd5e Fixing finish all with tow gold from dorf(1,2) 2017-06-29 06:03:17 +00:00
uroskn 1afde368d3 GameEngine and install folders have 777 already set by default 2016-07-02 21:39:28 +02:00