Commit Graph

928 Commits

Author SHA1 Message Date
Martin Ambrus 312507fe9f feat: MySQL port into installation options
Closes #279
2017-11-07 12:30:32 +01:00
Martin Ambrus 8f009afc9d chore: this file is duplicated & needs to be copied over during install
Instead of having 2 same files on 2 different locations, copy&paste this
template when installing the game.
2017-11-07 11:41:18 +01:00
Martin Ambrus 8a7f12268c fix: logging works, tech log link added to Admin 2017-11-07 10:34:50 +01:00
Martin Ambrus 2bae5f21c6 fix: stating real punishment in log 2017-11-07 10:05:55 +01:00
fixMartin Ambrus 0ddb0e691b fix: new village added via Admin to bear player's username 2017-11-07 10:01:28 +01:00
Martin Ambrus 7f16182e76 fix: oasis can be deleted (un-conquered) via Admin
Closes #283
2017-11-06 21:15:23 +01:00
Martin Ambrus 4e91b02f07 fix: removing single medal from player
Relates to #283
2017-11-06 21:05:28 +01:00
Martin Ambrus fcf1a15c64 fix: BBCode replacements in messages
Closes #289
2017-11-06 20:52:24 +01:00
Martin Ambrus f7d8da5a41 fix: Master builder can build above warehouse/granary requirements
Closes #290
2017-11-06 18:49:03 +01: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 7bc1cb751c fix: All Artefact have the same image
Closes #255
2017-11-06 16:14:50 +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 9db31ff311 fix: wrong forum link field 2017-11-05 16:03:51 +01:00
Martin Ambrus 18b5665b7d fix: master builder takes no resources in insta-build
Closes #270
2017-11-05 15:48:22 +01:00
Martin Ambrus 8933b0b55f fix: master builder doesn't subtract gold but insta-builds anyway 2017-11-05 15:04:20 +01:00
Martin Ambrus ee017adb40 refactor: most of broad SELECTs updated
Closes #301
2017-11-05 14:35:19 +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 1767b591d4 refactor: online users in Admin sorted by 1) access, 2) username 2017-11-04 22:04:21 +01:00
Martin Ambrus 77fd3a7e5f refactor: online users in Admin sorted by 1) access, 2) lastupdate 2017-11-04 22:03:33 +01:00
Martin Ambrus a822504706 fix: counting queries optimization
Closes #300
2017-11-04 15:41:35 +01:00
Martin Ambrus 36bfb2b8f7 fix: alliance deletion check 2017-11-04 10:32:30 +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 683b692a55 fix: gold can go to negative values
Master builder cannot be used if we only have 2 gold and we chose to
insta-finish everything. In such case, master builder task will be
deleted instead of completed.

Fixes #264
2017-11-04 09:36:55 +01:00
Martin Ambrus 3f612d6e36 fix: alliance cannot be created
This only happens on newer MySQL versions where column type vs inserted
type are being checked (so we cannot insert empty string into an int
column, even if that column has a default value).

Fixes #249
2017-11-04 09:26:45 +01:00
Martin Ambrus c0a9e9411e fix: undefined variable wreaking havoc
Closes: #249, #264
2017-11-03 22:57:08 +01:00
Martin Ambrus fea7b0937f fix: could not train more settlers if we have 1 settler already trained 2017-11-03 22:04:15 +01:00
Martin Ambrus b01d787627 fix: extra space making location header not work 2017-11-03 20:58:33 +01:00
Martin Ambrus 23eed5da53 fix: unable to train settlers if chieftan is present
It is debatable whether or not to allow this, since chieftan would be of
no use once we have 3 settlers and settle a new village. However, if we
accidentally created a chieftan, we can't train settlers until we send
the chieftan to his death.

I think this move could be a predule to a later game mechanics, where
chieftan could fight (talk, actually) against chieftan, if one is
present in village, so taking a village over isn't so easy.
2017-11-03 17:23:29 +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 bebc105e14 fix: invalid gold amount deductions for instant-build, instant-research 2017-11-03 00:32:40 +01:00
Martin Ambrus bfaf97f998 fix: AND instead of second WHERE 2017-11-03 00:01:20 +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 c545304e69 fix: correct rules link
Closes #256
2017-11-02 13:40:40 +01:00
Martin Ambrus f10a47be87 fix: now can use gold for demolition when only job is palace/residence 2017-11-02 13:37:53 +01:00
Martin Ambrus 585edfc356 fix: this error report should not be here 2017-11-02 13:27:38 +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 3105e0754c fix: Phalanx hero crop revival amounts listed as a second clay 2017-11-02 10:31:19 +01:00
Martin Ambrus df31c578fa fix: undefined index 2017-11-02 00:55:10 +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 3432aa92e6 fix: forgotten eviction of the old alliance leader without an Embassy 2017-11-01 23:21:01 +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 041726fbd2 fix: undefined indexes 2017-11-01 21:35:24 +01:00