Commit Graph

52 Commits

Author SHA1 Message Date
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
cosme12 97bea08171 Master builder fix 2015-08-31 12:03:41 -03:00
cosme12 7570f9ec91 Residence - Palace build 2015-08-26 14:27:30 -03:00
Shadow ff5ca62a1e credits 2015-06-22 08:20:34 +03:00
cosme12 bdb523cb6b Building at random positions fix
Typing something like ```dorf2.php?a=25&id=20000&c=d6F``` where ```id=``` is the position in the village will get you an error if the id is higher than 40 ( not including WW id=99). ```Unknown column 'f20000t' in 'field list'```  
So I added this restriction when building. Although it fixes the problem, you can still build at WW position, bugging your building and not being able to use, or demolish it.
2015-04-07 17:42:06 -03:00
Shadow 1996e5df42 Update Building.php 2014-02-16 09:01:00 +02:00
Shadow 6c6931367f Update Building.php 2013-11-29 14:54:28 +02:00
Shadow 6d3110f6e8 fix finish all on plus button 2013-11-08 09:49:08 +02:00
Shadowss 90e63747f4 fix , now you cannot make buildings with no resource 2013-11-05 08:04:47 +02:00
Shadowss 57d2cf7413 fix finish all 2013-11-01 09:37:17 +02:00