Commit Graph

410 Commits

Author SHA1 Message Date
Martin Ambrus 609593cd10 fix: undefined index 2017-11-18 21:04:53 +01:00
Martin Ambrus 583c521dc3 fix: undefined index 2017-11-18 20:50:55 +01:00
Martin Ambrus 997c143634 refactor: page generation time considers real time
Because in environments with $_SERVER["REQUEST_TIME_FLOAT"] unavailable
the time actually only started after Village.php got loaded (which was
AFTER Automation.php kicked in and everything was already DB-loaded),
the start timer was moved more towards the top of each template.
2017-11-18 18:48:48 +01:00
Martin Ambrus d17d1f9b32 refactor: last round of database values caching
#313
2017-11-17 19:40:34 +01:00
Martin Ambrus bec487cad5 fix: only including village file once 2017-11-17 12:36:45 +01:00
Martin Ambrus 33ab908744 Merge remote-tracking branch 'origin/master' 2017-11-15 20:21:23 +01:00
Martin Ambrus 06161dd5f9 fix: undefined variables 2017-11-15 15:39:15 +01:00
Shadow 63eae219d4 vacation mode enabled only for username Shadow 2017-11-14 13:43:27 +02: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
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
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 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 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
Martin Ambrus a47c499501 chore: version update 2017-11-08 12:03:55 +01:00
Martin Ambrus 080238ee3f fix: manual navigation and external links work as intended
Closes #314
2017-11-08 12:03:07 +01:00
Martin Ambrus 51f1d183eb fix: quest 6 does not send a message with original quests set
Closes #315
2017-11-08 08:54:12 +01:00
Martin Ambrus 8a7f12268c fix: logging works, tech log link added to Admin 2017-11-07 10:34:50 +01:00
Martin Ambrus c9150f9d42 fix: quest-guy disappears on extended quests in "play no tasks" choice 2017-11-06 21:40:35 +01:00
Martin Ambrus 7bc1cb751c fix: All Artefact have the same image
Closes #255
2017-11-06 16:14:50 +01:00
Martin Ambrus e92d075060 fix: double-including confing results in redefining constants 2017-11-06 14:12:32 +01:00
Martin Ambrus 86c9a161d3 fix: hide alliance forum link when defaulting to 0
Relates to #249
Comment URL:
https://github.com/Shadowss/TravianZ/issues/249#issuecomment-341975998
2017-11-05 15:21:45 +01:00
Martin Ambrus ee017adb40 refactor: most of broad SELECTs updated
Closes #301
2017-11-05 14:35:19 +01:00
Martin Ambrus 740c28f136 fix: undefined index 2017-11-05 01:28:24 +01:00
Martin Ambrus 169c07dd92 fix: wrong default input value when sending reinforcements back 2017-11-05 01:15:37 +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 5e4521e62e fix: misspelled session variable 2017-11-03 17:15:16 +01:00
Martin Ambrus 042d36e108 fix: undefined constant 2017-11-03 17:14:02 +01:00
Martin Ambrus a07afeea62 fix: NPC trade on settlers has incorrect values 2017-11-03 16:57:01 +01:00
Martin Ambrus 3863456ac9 fix: all artefacts have the same image
Closes #255
2017-11-03 16:12:04 +01:00
Martin Ambrus 6d1182e2f9 fix: message preview doesn't work
It actually isn't even implemented in the JavaScript, so I'm commenting
it out for now, since it never really worked.

Relates to: #254
2017-11-03 15:52:29 +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 cda7548cb1 fix: undefined indexes 2017-11-02 12:53:10 +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 d88a30b0a4 fix: undefined indexes 2017-11-02 07:54:28 +01:00
Martin Ambrus d78f4ecd2d fix: undefined indexes 2017-11-02 00:58:36 +01:00
Martin Ambrus 87c489814b fix: undefined index 2017-11-02 00:54:16 +01:00
Martin Ambrus d9da11ef4b fix: don't show errors and fix that empty value 2017-11-02 00:53:46 +01:00
Martin Ambrus 041726fbd2 fix: undefined indexes 2017-11-01 21:35:24 +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 82202c5089 fix: Calculated In time sometimes invalid due to $start variable reuse 2017-10-30 09:31:56 +01:00
Martin Ambrus a9625c6592 chore: some new features listing and a version change 2017-10-29 23:07:20 +01:00
Martin Ambrus 5d91de0e14 feat: new Embassy logic for demolitions and alliance quitting 2017-10-29 23:06:25 +01:00
Martin Ambrus 7b178e197b feat: message sender (when reading message) now links to a user 2017-10-29 13:34:05 +01:00
Martin Ambrus e8e0cc89d3 fix: don't allow players to go back in quests 2017-10-28 19:51:14 +02:00