Commit Graph

2131 Commits

Author SHA1 Message Date
Shadow 63eae219d4 vacation mode enabled only for username Shadow 2017-11-14 13:43:27 +02:00
Shadow fbbe815e3f not fixed , dont receive error for sending resource 2017-11-14 13:41:30 +02:00
Shadow 3a7ff0dddc fix vacation mode for market 2017-11-14 13:15:36 +02:00
Vladyslav 918c12bace fix: The same location of the list of villages on all pages in the sidebar (#347)
On some page the list went up. Now he is on the same level.
2017-11-13 22:00:02 +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 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 05d3b676a2 fix: Lang folder letter case correction
#346
2017-11-13 12:00:34 +01:00
Martin Ambrus a4c05092b2 chore: cleanup 2017-11-12 10:37:05 +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 994cef151c fix: World of Wonder needs additional building plan from lvl 50
The game allowed to build until level 51.
#337
2017-11-10 14:11:38 +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 49d64de54b chore: badge on top looks nicer :P 2017-11-10 12:41:50 +01:00
Martin Ambrus 0c3579e5da Merge remote-tracking branch 'origin/master' 2017-11-10 12:41:02 +01:00
Martin Ambrus a3e2ad005d chore: a nice ToDo :) 2017-11-10 12:40:55 +01:00
Martin Ambrus bc3a20a8db fix: Natars user not shown in statistics
#332
2017-11-10 12:39:32 +01:00
Shadow 777faf77c8 Merge pull request #336 from gitter-badger/gitter-badge
Add a Gitter chat badge to README.md
2017-11-10 13:04:23 +02:00
The Gitter Badger ff236b5e22 Add Gitter badge 2017-11-10 11:00:22 +00:00
Shadow 45bbefce13 Update vacation
Must to be arrange in a table
2017-11-10 11:31:44 +02:00
Shadow cc78105a33 Vacation mode is enabled for everyone for testing
Vacation mode is enable for everyone for testing as Travian Official have vacation

Must code the condition of vacation

9/9 Conditions

    No troops on movement
    No troops in movement for other villages 
    No troops send for reinforcements 
    Don`t have any troops in your account as reinforcements from other players
    Don`t have a Wonder World
    Don`t have an artifact
    No longer on protection period
    Don`t have any troops trapped
    Don`t have account on deletion process
2017-11-10 11:05:59 +02:00
Shadow ca2a823be1 Code clear
No need , double troops not appear anymore
2017-11-10 10:55:32 +02: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 b6652cbb32 fix: ban cleanup removes bans on users who are banned forever
#325
2017-11-09 23:41:51 +01:00
Martin Ambrus f959e08595 fix: undefined index 2017-11-09 23:26:14 +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 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 b943f08018 fix: mysqli auto-closes connections in PHP
Closes #328
2017-11-09 19:57:30 +01:00
Martin Ambrus fc6f338cd3 fix: undefined indexes and some basic math
Closes #329
2017-11-09 19:42:58 +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 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 ed8628bfb2 fix: constant used as a string 2017-11-08 18:01:00 +01:00
Martin Ambrus 6ef538b365 fix: undefined indexes 2017-11-08 18:00:14 +01:00
Martin Ambrus 159de207c9 refactor: get and set multiple fields at once 2017-11-08 17:46:18 +01:00
Martin Ambrus d7c38c7c39 fix: undefined indexes 2017-11-08 17:45:41 +01:00
Martin Ambrus a25f69f7ed fix: undefined indexes 2017-11-08 17:41:52 +01:00
Martin Ambrus 28f56cd9f6 fix: undefined index 2017-11-08 17:38:34 +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 9b0d7995e3 refactor: index for ww_attacks 2017-11-08 15:46:24 +01:00
Martin Ambrus 5db951c135 refactor: optimization to update of oasis and village resources 2017-11-08 15:46:08 +01:00
Martin Ambrus c638c67624 refactor: preparation to take batches of data in prepared statements 2017-11-08 13:49:58 +01:00