Commit Graph

15736 Commits

Author SHA1 Message Date
e0a9dfd5a2 Allow changing the late-observer flag in a running game, fixes #3669.
Remove it from the game-attributes, since it is not used in the
simulation, nor are they supposed to change in running games.

This was SVN commit r17861.
2016-03-10 11:35:43 +00:00
2305218d9f Optionnames are in lower case, refs #3604.
This was SVN commit r17860.
2016-03-10 11:16:15 +00:00
b71e7e3538 Petra chathelper cleanup.
Inline variables used only once.

This was SVN commit r17859.
2016-03-10 10:44:52 +00:00
aa1e3f6d06 Session cleanup
Simpler errorhandling when fetching GUIInterface-notifications.

This was SVN commit r17858.
2016-03-10 10:15:23 +00:00
4b636fc407 Add a precision to the instructions included in default.cfg.
This was SVN commit r17857.
2016-03-09 21:48:41 +00:00
212d8e7dd0 cleanup of 98b4fe6d00
This was SVN commit r17856.
2016-03-09 21:45:14 +00:00
04586c9e8b Adapt the number-of-players GUI objects of the lobby to support 10 and more clients.
This was SVN commit r17855.
2016-03-09 21:30:53 +00:00
98b4fe6d00 fixes confusion between markets when doing trade, fixes #3812, patch by leper and fatherbushido
This was SVN commit r17854.
2016-03-09 19:54:12 +00:00
7409fe4bec Defeated players are not supposed to do stuff.
Not sending resources on defeat also gives an incentive to completely
defeat players.
Patch by fatherbushido, refs #3265.

This was SVN commit r17853.
2016-03-09 16:11:55 +00:00
2fea95530f Quit if the user requested that while loading the replay list. Fixes #3446.
This was SVN commit r17852.
2016-03-09 16:06:41 +00:00
f2ed0098ee Make the playername-deduplication ("User" -> "User (2)") optional.
Have it disabled by default to fix #3604.
Prevents players from rejoining as late-observers in case they timed-out
on the client-side but not on the server-side.

This was SVN commit r17851.
2016-03-09 15:02:38 +00:00
c0f321b52e Add svott (refs #3736) and fpre (refs #3205) to the contributors.
This was SVN commit r17850.
2016-03-09 14:33:41 +00:00
7c33658fdd ships can be garrisoned in cart superDock with a heal rate, fixes #3810, patch by fatherbushido
This was SVN commit r17849.
2016-03-08 21:50:37 +00:00
a1c6d9149b fix typo from 8725c3ae7a
This was SVN commit r17848.
2016-03-08 18:49:06 +00:00
c7c8d9a5c7 Map previews for 3 random maps and some selected demo maps. Patch by yoreei, fixes #3798.
This was SVN commit r17847.
2016-03-08 17:29:18 +00:00
52bf894c50 Remove naval-tag from flood.
(It can be played without any ships and naval maps are not offered by
default).
Thanks yoreei for reporting.

This was SVN commit r17846.
2016-03-08 14:00:44 +00:00
c511e9c4ec To avoid unintentional joins, ask lobby users if they want to late-join the game as an observer before attempting to do so. Refs #3739.
Add selectedGame() to simplify some checks.
Add linebreaks to hostGame().

This was SVN commit r17845.
2016-03-08 00:18:21 +00:00
ea73e6b3b4 New random map script "Flood". Created by _kali and niektb, refs #3455.
This was SVN commit r17844.
2016-03-07 23:13:52 +00:00
35a13c5080 Remove trailing whitespace.
This was SVN commit r17843.
2016-03-07 17:28:31 +00:00
f3ba295593 Add new contributor _kali to the randommap-script credits.
Add existing contributors niektb and Stan to the map-section for the new
maps in alpha 20.

This was SVN commit r17842.
2016-03-07 17:12:34 +00:00
dd5cc3d02e Gamesetup cleanup.
Inline initializaiton of g_ServerName and fix a typo in e05c8263c5.

This was SVN commit r17841.
2016-03-07 15:05:16 +00:00
fc0f496e3d Fix indentation, refs #3803.
This was SVN commit r17840.
2016-03-07 11:44:03 +00:00
e827ebeb5c Multiplayer-gamesetup cleanup.
Eliminate deprecated for-each.
Quote object keys.
Remove unneeded sprintf from error() calls.
Remove unneeded comments.
Add linebreaks.

This was SVN commit r17839.
2016-03-07 11:42:52 +00:00
05bf260838 Fix the garrisoning flag for some Seleucid buildings, patch by stanislas69. Fixes #3631
This was SVN commit r17838.
2016-03-07 11:38:00 +00:00
49c30ae4b8 Give credit to three awesome contributors, refs #3802.
This was SVN commit r17837.
2016-03-07 10:24:38 +00:00
231586f2fa Aura cleanup.
Eliminate deprecated for-each.
Remove unused variable auraNames.
Use array-filter instead of for-loop.
Fix whitespace.
Don't use affectedPlayers outside of scope.

This was SVN commit r17835.
2016-03-06 14:57:39 +00:00
b1cacacff1 Fix the test of the Player-component following c9b0db7f5f. Patch by fatherbushido, fixes #3803, refs #3522.
This was SVN commit r17834.
2016-03-06 14:02:34 +00:00
b155a28698 Immediately set the fog-of-war instead of waiting for session.js to load, refs #3168.
This was SVN commit r17832.
2016-03-06 13:56:07 +00:00
5a8d7d1a58 petra cleanup
This was SVN commit r17831.
2016-03-05 16:20:49 +00:00
bcf2c75513 New in-game Credits page, fixes #3744.
This was SVN commit r17830.
2016-03-05 11:52:08 +00:00
1504115c14 I shouldn't rename things.
This was SVN commit r17829.
2016-03-05 11:43:14 +00:00
dfbf874d8b Some string fixes.
This was SVN commit r17828.
2016-03-05 11:30:27 +00:00
6451a4c3c1 Petra: improve choice of workers, fixes #3586, patch from otero
This was SVN commit r17827.
2016-03-04 17:08:45 +00:00
6b19eefdcb cleanup of some foreach
This was SVN commit r17826.
2016-03-04 16:51:52 +00:00
9d2b8a74b7 petra: do not let the ai build too much towers or fortresses
This was SVN commit r17824.
2016-03-03 18:38:13 +00:00
d3e9aa2101 petra: complete changes started in 8d0223d6aa + some cleanup"
This was SVN commit r17823.
2016-03-03 16:18:12 +00:00
7403b92785 petra cleanup: use some arrow functions for sort
This was SVN commit r17822.
2016-03-02 17:10:26 +00:00
8d0223d6aa petra: do not anymore assume that workers are necessarily builders and gatherers
This was SVN commit r17821.
2016-03-02 16:58:02 +00:00
8725c3ae7a Diplomacy-manager cleanup.
Move resource-tributing button code to a custom function.
Shorten comment.
Reuse RESOURCES.
Inline tributeResource.

This was SVN commit r17820.
2016-03-02 16:56:44 +00:00
ed1afbebfc Diplomacy-manager cleanup.
Move the text setup to a custom function.
Reuse colorizePlayernameByID.
Add newlines.

This was SVN commit r17819.
2016-03-02 16:44:57 +00:00
17e6b316fa Diplomacy manager cleanup.
Move the diplomatic stance button initialization to a custom function.
Always hide the button if locked-teams is enabled, refs #3702.
Inline setDiplomacy.

This was SVN commit r17818.
2016-03-02 16:38:05 +00:00
23d37f188a cleanup of some missing tabs
This was SVN commit r17817.
2016-03-02 16:25:14 +00:00
e99e7e33ba Diplomacy manager cleanup.
Split openDiplomacy into four smaller functions, starting with
diplomacyFormatAttackRequestButton in this commit.
Hide the button if the user has no allies and after defeat/win.

This was SVN commit r17816.
2016-03-02 16:23:46 +00:00
af396c9bf9 Player-component cleanup.
Remove deprecated for-each and inline a variable.

This was SVN commit r17815.
2016-03-02 15:00:24 +00:00
458b4a6567 Prohibit user-initiated diplomacy-changes in the simulation while ceasefire is active, refs #2749.
This was SVN commit r17814.
2016-03-02 14:43:18 +00:00
012b686e7c Two early returns. Refs #3265.
This was SVN commit r17813.
2016-03-02 13:42:47 +00:00
163af24a6c cleanup in petra, patch by otero
This was SVN commit r17812.
2016-03-01 17:57:19 +00:00
9c6082ec23 fix garrison aura from heros, patch by fatherbushido
This was SVN commit r17811.
2016-03-01 17:19:16 +00:00
04c94da3cb add some missing spaces in previous commit
This was SVN commit r17810.
2016-03-01 17:12:38 +00:00
c9b0db7f5f Techs can now modify an aura
Wonder population bonus is now an aura (reverted when the wonder is
destroyed) with 10 pop (wonder) with an additionnal +40 with the tech
patch by fatherbushido

This was SVN commit r17809.
2016-03-01 17:10:42 +00:00