Martin Ambrus
b6652cbb32
fix: ban cleanup removes bans on users who are banned forever
...
#325
2017-11-09 23:41:51 +01:00
Martin Ambrus
29d638b7f7
refactor: 4th round of sendunitsComplete() optimizations + market fix
...
Sending units more than 1x (with PLUS) didn't work after the first
market refactor.
2017-11-09 21:38:30 +01:00
Martin Ambrus
371c717702
refactor: 3rd round of sendunitsComplete() optimizations
2017-11-09 14:22:15 +01:00
Martin Ambrus
b1b1581f4c
refactor: 2nd round of sendunitsComplete() optimizations
2017-11-09 00:43:10 +01:00
Martin Ambrus
50f0cae495
refactor: 1st round of sendunitsComplete() optimizations
2017-11-08 23:43:28 +01:00
Martin Ambrus
0c44b93bc0
fix: this got commented-out by a debug mistake :-O :-/ :-(
2017-11-08 19:21:00 +01:00
Martin Ambrus
151553735d
refactor: setMovementProc() to take one or multiple IDs for update
2017-11-08 18:21:30 +01:00
Martin Ambrus
21d6874325
refactor: marketComplete() to use less queries and caching
2017-11-08 18:12:54 +01:00
Martin Ambrus
159de207c9
refactor: get and set multiple fields at once
2017-11-08 17:46:18 +01:00
Roy Shum
aa570c1bcb
fix resource limit ( #322 )
2017-11-08 17:29:23 +01:00
Martin Ambrus
b85abeaf78
refactor: optimization of buildComplete() code
2017-11-08 16:57:58 +01:00
Martin Ambrus
5db951c135
refactor: optimization to update of oasis and village resources
2017-11-08 15:46:08 +01:00
Martin Ambrus
6fa9058c43
fix: attack duplication
...
Closes #259
2017-11-08 10:34:30 +01:00
Martin Ambrus
8e0b81d8dc
fix: hero duplication on reinforcements with MySQL 5.7+
2017-11-08 09:32:42 +01:00
Roy Shum
5b7bc2a5c3
improve performance on updatestore
2017-11-08 14:50:49 +08:00
Martin Ambrus
5f5dfb978e
fix: here movement between villages requires hero to travel alone
...
Closes #272
2017-11-06 18:16:54 +01:00
Martin Ambrus
9514976c15
fix: attacks on oasis result in assigning them to Multihunter
2017-11-06 15:11:57 +01:00
Martin Ambrus
1301e1eb4a
fix: use strings instead of undefined constants
2017-11-06 14:17:52 +01:00
Martin Ambrus
5a929457c0
fix: unable to determine attack type
2017-11-06 14:01:24 +01:00
Martin Ambrus
ee285a4ed8
fix: units not returning from attack and staying as reinforcements
2017-11-05 09:17:43 +01:00
Martin Ambrus
57057384d3
refactor: SELECT * replaced by SELECT fieldname1, fieldname2 ...
...
So far in a few places.
2017-11-05 09:03:59 +01:00
Martin Ambrus
f485f69e0a
fix: clear all remaining village troops when conquering a village
...
Closes #269
2017-11-05 00:08:22 +01:00
Martin Ambrus
a822504706
fix: counting queries optimization
...
Closes #300
2017-11-04 15:41:35 +01:00
Martin Ambrus
962cbcc19b
fix: maximum alliance members update on building demolition
...
Now saves correct data (was saving maximum for 1 level above the
after-demolition level).
2017-11-04 10:31:45 +01:00
Martin Ambrus
c0a9e9411e
fix: undefined variable wreaking havoc
...
Closes : #249 , #264
2017-11-03 22:57:08 +01:00
Martin Ambrus
9f8fa45b1f
fix: undefined index
2017-11-03 16:53:31 +01:00
Martin Ambrus
e51aec68bd
fix: path not found erorrs for multiple-automation-lock-files
...
Closes #244
2017-11-03 13:07:37 +01:00
Martin Ambrus
2859cf1e8e
fix: village cannot be conquered if it was also destroyed
...
Closes #184
2017-11-03 12:56:24 +01:00
Martin Ambrus
90f8982245
fix: hero dying and revival doesn't work correctly with multiple heroes
2017-11-02 23:59:03 +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
7c67e1e7b9
fix: only 1 hero can exist and is deleted upon new hero training start
...
Closes #261
2017-11-02 11:05:26 +01:00
Martin Ambrus
95438e0fe7
fix: Palace no longer auto-changes capital
2017-11-02 00:50:10 +01:00
Martin Ambrus
fe011a5905
fix: undefined index
2017-11-02 00:19:31 +01:00
Martin Ambrus
8a3591a8b0
refactor: alliance and Embassy mechanics refactoring, stage 3 of 3
...
Battle results logic now accounts for Embassy destruction as per new
alliance and Embassies game mechanics.
2017-11-01 21:37:09 +01:00
Martin Ambrus
c9038e20b8
refactor: alliance and Embassy mechanics refactoring, stage 2 of 3
...
Everything is now prepared for the last stage, where the code to handle
Embassy destruction during a battle will be added and tested :)
A few Embassy-demolition-related issues have been ironed-out in this
commit as well.
2017-11-01 00:16:52 +01:00
Martin Ambrus
5d91de0e14
feat: new Embassy logic for demolitions and alliance quitting
2017-10-29 23:06:25 +01:00
Martin Ambrus
b0208730c9
fix: village with palace becomes capital
2017-10-29 13:51:15 +01:00
Martin Ambrus
5f4ac3bc48
fix: undefined indexes
2017-10-28 21:28:26 +02:00
Martin Ambrus
4da72fb9b9
fix: player auto-deletion after a set period of time now works
...
It only deleted player from the users table. Now, it deletes everything,
so basically clears everything up.
2017-10-28 20:52:15 +02:00
Martin Ambrus
48ed6ec359
fix: undefined variable
2017-10-28 11:52:12 +02:00
Martin Ambrus
eca2c9105c
fix: undefined indexes and variables
2017-10-28 02:18:00 +02:00
Martin Ambrus
3200cf2c3c
fix: multi_query doesn't block next queries anymore
2017-10-27 19:34:19 +02:00
Martin Ambrus
1066fff9a2
refactor: installation happens at MySQL side
...
A lot has happened here. Here's the list:
1. autoloader was added that should prevent various "failed to open
stream" errors when trying to load new classes
2. PHP-based data generation was replaced by MySQL-based one, hopefully
fixing the installation problems when insert payload it too high and the
DB wouldn't populate with some users
3. thanks to step 2, the installation should be really almost
instantenious, instead of waiting a long time for many SQL connections
and queries to populate the world
4. World Data & Oasis generation and population is done in 1 step now
2017-10-27 18:27:03 +02:00
Martin Ambrus
30d3b9c4fa
refactor: OOP code movements started :)
2017-10-25 13:38:38 +02:00
Martin Ambrus
d6c517bba6
refactor: this would use a database index
2017-10-24 22:40:25 +02:00
Martin Ambrus
40ad09865c
fix: a possible fix for duplicating unit IDs and creating wrong SQL
2017-10-23 17:50:13 +02:00
Martin Ambrus
b8de6338bf
refactor: SQL optimizations
2017-10-23 00:33:13 +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
90db6539c1
fix: correcting Automation calculations on returning units
2017-10-22 10:25:39 +02:00
Martin Ambrus
d76669cb42
fix: last batch of manual INT typecastings
2017-10-18 01:11:25 +02:00