376 Commits

Author SHA1 Message Date
Martin Ambrus b261212d12 fix: expansion slots not being cleared up upon village destruction
#400
2017-12-02 16:17:47 +01:00
Martin Ambrus aec7a57ca4 fix: destroyed Embassy evicts player even with another Embassy standing
#399
2017-12-02 16:00:24 +01:00
Martin Ambrus 4b842ae0fa fix: village destroyed text displayed twice for 2-row catapults attack
#393
2017-12-02 15:04:15 +01:00
Martin Ambrus 537a14e4e3 fix: second row of catapults destroys incorrect target
#393
2017-12-02 11:09:14 +01:00
Martin Ambrus 9474a60313 fix: embassy destruction status text on an incorrect line in a report
#393
2017-12-02 10:55:24 +01:00
Martin Ambrus 680386044e fix: 2nd wave of catapults destroys targets and villages incorrectly
#393
2017-12-01 14:47:43 +01:00
Martin Ambrus 4db6ca52f9 fix: sendunits.txt file could not be opened from Admin 2017-12-01 10:43:30 +01:00
Martin Ambrus b7463cd522 fix: max crop/resources reset to level 1 value temporarily
This happened when level 1 granary / warehouse was built because of
a missing + sign in a formula.

#374
2017-11-27 16:33:10 +01:00
Martin Ambrus 5dfbd89130 fix: fool's artefact caching returns non-fool artefact data
#313
2017-11-25 20:50:12 +01:00
Martin Ambrus 8d8c96014b refactor: multiple calls to getVSumField() replaced by a single one
#313
2017-11-25 20:29:12 +01:00
Martin Ambrus 446e9b5f1d fix: artefacts couldn't be claimed after last db caching optimizations 2017-11-25 19:26:19 +01:00
Martin Ambrus ec234579cc fix: give hero points to spend by the actual number of levels he got 2017-11-25 16:28:28 +01:00
Martin Ambrus e2ad6d3c2b fix: due to DB inconsistencies, don't check for hero unit in village
#371
2017-11-25 01:41:29 +01:00
Martin Ambrus c06c62ba6a fix: hero training and revive got messed up 2017-11-22 21:38:57 +01:00
Martin Ambrus 9d73275522 fix: incorrect hero return time calculation 2017-11-22 18:58:16 +01:00
Martin Ambrus 65a62becc2 fix: rat reinforcement does not arrive due to a wrong reinfs check
#366
2017-11-22 11:47:17 +01:00
Martin Ambrus 80160d683e refactor: s1_wdata caching implemented
#313
2017-11-21 00:59:06 +01:00
Martin Ambrus 676de95764 refactor: s1_hero to update last timestamps in a single query
#313
2017-11-21 00:22:30 +01:00
Martin Ambrus bc2eaa1380 refactor: s1_abdata & s1_tdata caching implemented
#313
2017-11-20 23:46:45 +01:00
Martin Ambrus 3792fd5ed5 refactor: s1_prisoners caching implemented
#313
2017-11-20 23:22:56 +01:00
Martin Ambrus 06d468ce6f refactor: s1_odata caching implemented
#313
2017-11-20 22:58:49 +01:00
Martin Ambrus 82a0c0ad07 fix: s1_enforcement caching improved
#313
2017-11-20 22:33:35 +01:00
Martin Ambrus 4612125f0f refactor: s1_movement caching implemented
#313
2017-11-20 20:54:34 +01:00
Martin Ambrus 13cccebf94 refactor: s1_enforcement caching implemented
#313
2017-11-20 17:55:27 +01:00
Martin Ambrus ceeb6a3a9b refactor: s1_units caching implemented
#313
2017-11-20 16:17:26 +01:00
Martin Ambrus 64d7d158c7 refactor: s1_fdata caching implemented
#313
2017-11-20 15:41:29 +01:00
Martin Ambrus a4ce48ca38 refactor: s1_vdata sometimes didn't get cached
#313
2017-11-20 14:11:45 +01:00
Martin Ambrus 645793dde2 refactor: s1_vdata queries cached and reused
#313
2017-11-20 10:10:29 +01:00
Martin Ambrus c27b397016 refactor: preparation to vdata queries consolidation
#313
2017-11-20 00:52:24 +01:00
Martin Ambrus cb843dda57 refactor: getVSumField() in Automation replaced by direct update instead
#313
2017-11-20 00:13:52 +01:00
Martin Ambrus 1747a26c1e fix: cannot send traders to village determined by a village name 2017-11-19 23:37:38 +01:00
Martin Ambrus 37c53a30f5 fix: undefined index 2017-11-19 20:41:35 +01:00
Martin Ambrus dc501d6984 fix: don't delete if we don't have any IDs
#313
2017-11-19 19:25:14 +01:00
Martin Ambrus 609a61fc3e fix: don't delete if we don't have any IDs
#313
2017-11-19 19:24:10 +01:00
Martin Ambrus 0df4de9413 fix: transaction did not speed things up + hero fields resetting fixed
#313
2017-11-19 19:08:47 +01:00
Martin Ambrus 97dba8b0f0 refactor: enclosing many updates into transaction for speed improvement
#313
2017-11-19 18:58:31 +01:00
Martin Ambrus 5d951f8e9e refactor: getVSumField() to cache data for multiple user IDs
#313
2017-11-19 18:55:47 +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 67d9a42506 refactor: a lot of Automation foreach loops updated
#313
2017-11-19 14:01:30 +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 4d41769a76 refactor: final round of sendunitsComplete() optimizations
#313
2017-11-18 22:11:24 +01:00
Martin Ambrus 4172e30dd2 fix: Gaul traps do not work 2017-11-18 21:58:54 +01:00
Martin Ambrus d768929d18 fix: catapults do not work correctly or sometimes not at all 2017-11-18 20:42:26 +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 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