Martin Ambrus
db87ce88a7
refactor: getUnit() can take multiple IDs at once
...
#313
2017-11-17 20:23:01 +01:00
Martin Ambrus
d0a882f136
fix: maxcrop & maxstore cannot be 0, nor it should be < lowest threshold
2017-11-16 21:49:22 +01:00
Martin Ambrus
6ccc72350d
fix: recountPop() already calls procClimbers() internally
2017-11-15 22:23:57 +01:00
Martin Ambrus
c7acc523ea
fix: prune methods to include storage multiplier
...
Also, the updateStore() method does not need to concern itself with
villages without warehouses and granaries, as they have already been
tended by prune methods beforehead.
2017-11-15 22:17:11 +01:00
Martin Ambrus
38c4172a43
fix: class must start with a constructor, we shouldn't be looking for it
2017-11-15 22:05:52 +01:00
Martin Ambrus
a8b8664e07
fix: Automation::updateStore() shouldn't be called twice
2017-11-15 22:00:18 +01:00
Martin Ambrus
dab768f662
refactor: 1st round of database values caching
2017-11-15 16:01:00 +01:00
Martin Ambrus
785a371871
fix: alleviating the bad math, which is impossible to quick-fix for me
2017-11-13 19:04:24 +01:00
Martin Ambrus
bdfe99b7f6
fix: alleviating the bad math, which is impossible to quick-fix for me
2017-11-13 19:03:59 +01:00
Martin Ambrus
c6d9d264ce
fix: this can sometimes go above current building level
2017-11-13 17:19:18 +01:00
Martin Ambrus
35512d16f0
refactor: 5th round of sendunitsComplete() optimizations
2017-11-13 17:02:58 +01:00
Martin Ambrus
3d44226c92
refactor: more caching where possible
...
This also fixes "Multihunter" being stated as the one attacking
reinforcements in villages during battle (now stores real attacker ID).
2017-11-12 10:36:53 +01:00
Martin Ambrus
603d28f31a
fix: MySQL 5.7 compatibility + undefined variables
2017-11-10 14:07:32 +01:00
Martin Ambrus
c07dd99627
fix: this should work but doesn't, so I'm reverting it back
2017-11-10 13:27:54 +01:00
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