Martin Ambrus
5d951f8e9e
refactor: getVSumField() to cache data for multiple user IDs
...
#313
2017-11-19 18:55:47 +01:00
Martin Ambrus
e3a667de10
refactor: caching more data during login
...
#313
2017-11-19 17:50:05 +01:00
Martin Ambrus
d148383655
refactor: fix: user fields are not always returned from cache
...
#313
2017-11-19 17:04:51 +01:00
Martin Ambrus
61eda5d663
refactor: caching added to checkIfResearched()
...
#313
2017-11-19 16:32:28 +01:00
Martin Ambrus
a87802296b
refactor: getBuildingByType2() takes multiple IDs
...
#313
2017-11-19 16:24:33 +01:00
Martin Ambrus
24789507a7
refactor: getProfileVillages() takes multiple IDs
...
#313
2017-11-19 15:57:52 +01:00
Martin Ambrus
699781d130
refactor: for loops optimized
...
#313
2017-11-19 15:17:24 +01:00
Martin Ambrus
2a68b07704
refactor: last of foreach loops optimized
...
#313
2017-11-19 14:32:00 +01:00
Martin Ambrus
67d9a42506
refactor: a lot of Automation foreach loops updated
...
#313
2017-11-19 14:01:30 +01:00
Martin Ambrus
fd14002d98
fix: oasis beasts do not die
2017-11-19 02:52:33 +01:00
Martin Ambrus
07e5f322e2
fix: reinforcements sent back do not hide the reinforcements table
2017-11-19 02:33:07 +01:00
Martin Ambrus
778f42b4f1
refactor: cycle optimizations and cache fixes
...
This one specifically fixes rescured prisoners not being sent back.
Other than this fix, there are some query optimizations included.
#313
2017-11-19 01:37:31 +01:00
Martin Ambrus
4172e30dd2
fix: Gaul traps do not work
2017-11-18 21:58:54 +01:00
Martin Ambrus
fffedc4170
fix: defender troops do not die during attack
2017-11-18 13:11:00 +01:00
Martin Ambrus
dd030859cf
fix: troops did not return to the village when evasion was set
2017-11-18 11:10:58 +01:00
Martin Ambrus
2041ad750e
fix: hero movements got screwed up while doing DB caching stuff...
...
#313
2017-11-17 23:46:01 +01:00
Martin Ambrus
bfc7a2b28a
fix: keeping compatibility with older versions
...
#353
2017-11-17 23:18:40 +01:00
Martin Ambrus
8f979deba9
fix: wrong user ID being selected via getNotice2() & getNotice3()
...
#313
2017-11-17 23:15:12 +01:00
Martin Ambrus
ffeeac3173
fix: database connection does not include port from config
...
#353
2017-11-17 22:48:43 +01:00
Martin Ambrus
fd20e12d34
fix: $values, not $value
...
#313
2017-11-17 22:26:06 +01:00
Martin Ambrus
6d0e95670b
refactor: messages and reports only loaded on pages where needed
...
#313
2017-11-17 21:00:00 +01:00
Martin Ambrus
db87ce88a7
refactor: getUnit() can take multiple IDs at once
...
#313
2017-11-17 20:23:01 +01:00
Martin Ambrus
d17d1f9b32
refactor: last round of database values caching
...
#313
2017-11-17 19:40:34 +01:00
Martin Ambrus
1318f34cba
refactor: Units class-related caching done
...
#313
2017-11-17 15:34:08 +01:00
Martin Ambrus
079c830b94
refactor: Technology class-related caching done
...
#313
2017-11-17 14:36:49 +01:00
Martin Ambrus
51f354542d
fix: village resources display outdated information on page load
2017-11-17 12:36:27 +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
d3ec209ad8
refactor: village-related methods now all optimized
2017-11-15 23:33:07 +01:00
Martin Ambrus
612661c9f0
refactor: units DB values caching
2017-11-15 23:20:14 +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
e798635ebb
fix: setVillageLevel() tried to execute wrong SQL
...
+ some more methods for later refactor commit
2017-11-13 17:01:36 +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
dc22a45c8a
fix: time not selected in general stats, making casualties 0 per day
2017-11-09 23:54:55 +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
2ba0500433
fix: this cannot be in production
2017-11-09 14:24:01 +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
0a541d5bd3
fix: reverting possibility of settlers & chieftain creation side-by-side
...
Turns out we could conquer a village and then settle a new one without
having enough expansion slots. Thus this is a revert to original state,
where we can't train settlers with chieftain in village or chieftain
with settlers in village, if we don't have enough slots.
Closes #324
2017-11-09 00:08:40 +01:00
Martin Ambrus
50f0cae495
refactor: 1st round of sendunitsComplete() optimizations
2017-11-08 23:43:28 +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
Martin Ambrus
c638c67624
refactor: preparation to take batches of data in prepared statements
2017-11-08 13:49:58 +01:00
Martin Ambrus
59c7fdd3c0
refactor: Nature no longer sends automated notification, Taskmaster does
2017-11-08 11:02:15 +01:00
Martin Ambrus
312507fe9f
feat: MySQL port into installation options
...
Closes #279
2017-11-07 12:30:32 +01:00
Martin Ambrus
9db31ff311
fix: wrong forum link field
2017-11-05 16:03:51 +01:00
Martin Ambrus
ee017adb40
refactor: most of broad SELECTs updated
...
Closes #301
2017-11-05 14:35:19 +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