Commit Graph

16265 Commits

Author SHA1 Message Date
22f6daf612 Add missing territory to corrals (to prevent decay in connected allied territory).
Increase territory of the storehouse slightly to allow adjacent
buildings.

This was SVN commit r18405.
2016-06-19 14:32:42 +00:00
dbe985cd78 petra: remove some useless return
This was SVN commit r18404.
2016-06-18 17:34:02 +00:00
e8291130bd petra: update list of enemy structures when diplomacy changes
This was SVN commit r18403.
2016-06-18 16:59:34 +00:00
932b0c1e3e Trireme and bireme ship balancing.
The mauryan empire is not known to have the strongest fleet, so reduce
their ships hitpoints to the average for that model.
Redue bireme metal cost to make it an actual alternative to the trireme,
considering population cost and hitpoints.
Remove a hardoded linenumber in a comment.

This was SVN commit r18402.
2016-06-18 14:30:21 +00:00
64d14b9fc6 Fix "supersedes" indentation issue of technologies in 4c22d4631a.
This was SVN commit r18401.
2016-06-18 11:07:44 +00:00
b28dfb42df Fix indentation of auras in 46ead523b8. Patch by fatherbushido, reported by leper, fixes #4062, refs #3792.
This was SVN commit r18400.
2016-06-18 10:45:33 +00:00
09fdf716e9 Session cleanup.
Move chat window and developer overlay to a custom file.
Use String(foo) instead of ""+foo.
Remove a pointless loop and GetGUIObjectByName call in autoCompleteNick.
Remove noisy line-comments.

This was SVN commit r18399.
2016-06-17 15:38:07 +00:00
f4b818bec4 Wonder mode cleanup.
Remove unused, seemingly unusable wonder duration multiplier, refs
#3234.
Replace wonderDuration of the EndGameManager with gameTypeSettings,
since the component should be agnostic about victory condition logic.
Remove an unused cmpEndGameManager.
Inline a variable, few newlines, let intsead of var.

This was SVN commit r18398.
2016-06-17 14:24:30 +00:00
8c69309e7c Missing semicolon, rephrase comment, refs #3216.
This was SVN commit r18397.
2016-06-17 12:08:40 +00:00
f60befe098 Capture statistics summary. Patch by maveric and Imarok, fixes #3216.
Also colorize the headings, use two lines per player and remove
duplication of an ugly regex hack.

This was SVN commit r18395.
2016-06-17 02:27:11 +00:00
df764c0200 Increase vision range proportionally when increasing the attack range. Patch by Imarok, fixes #3989.
This was SVN commit r18394.
2016-06-17 01:11:39 +00:00
a214f83017 Trader cleanup.
Remove unused required goods.
Won't be used since setting the goods individually for every trader is
overkill.

This was SVN commit r18393.
2016-06-16 20:54:31 +00:00
7c9c715ddc Tech tree cleanup.
Newlines.
Eliminate deprecated for each.
One or two simplifications.

This was SVN commit r18392.
2016-06-16 20:26:36 +00:00
a874b3c1c3 Colorize playernames in the kick/ban chat notification, refs #3241.
This was SVN commit r18391.
2016-06-16 17:13:02 +00:00
450973a624 Clean up some code-style issues reported by leper
This was SVN commit r18390.
2016-06-16 14:51:12 +00:00
ed7924f9ca Session GUI cleanup
Use arrow functions.
Inline exchangeResources which was defined in the wrong file.
Remove unused selectRequiredGoods. Related code should be removed likely
too.
Add missing translate.

This was SVN commit r18389.
2016-06-16 01:08:36 +00:00
8aea8d0849 Replace magic number with a readable string, refs #3436.
This was SVN commit r18388.
2016-06-16 00:40:21 +00:00
f25921ba24 improve 2392f6fe8e as these checks are also done in Commands.js, thanks to leper
This was SVN commit r18387.
2016-06-15 21:20:04 +00:00
6da94fef96 petra cleanup, spotted by leper
This was SVN commit r18386.
2016-06-15 21:06:09 +00:00
156b360f06 Print engine version to the logfiles.
This was SVN commit r18385.
2016-06-15 19:26:28 +00:00
ed225e1fc4 Chat cleanup, refs #3870.
Remove toggleChatWindow which duped openChat and closeChat.
Toggling the chat window with hotkeys is pointless due to the focus.
Inline setTeamChat.
Add some newlines, 2 missing semicolons and remove unneeded comments.

This was SVN commit r18384.
2016-06-15 16:54:16 +00:00
8302eeaf73 Rest of the previous commit.
This was SVN commit r18383.
2016-06-15 16:16:55 +00:00
0ce02441ee Simulation cleanup
Use QueryPlayerIDInterface to remove duplication as suggested by leper.
Remove its duplicate GetPlayerComponent.
Add IsOwnedByHelper and IsOwnedByEntityHelper to remove duplicated ally
check functions.
Remove unused function GetPlayerFilter from 17c473f2f3.
Remove unused variables and access to undefined ones identified using
jshint.
Rename cmpPlayerMan.

This was SVN commit r18382.
2016-06-15 16:13:08 +00:00
84d5fb2d34 Tooltip GUI engine cleanup.
Merge some if statements.
Fix whitespace.
Remove unneeded comments and braces.
Remove one duplicated statement out of an if-statement.

This was SVN commit r18381.
2016-06-15 15:40:05 +00:00
997ea01b2b Fix typo in 366085e037 as reported by mimo.
This was SVN commit r18380.
2016-06-14 21:29:37 +00:00
a296909f91 GUI engine cleanup.
Merge a check.
Remove unneeded comments and braces.
Some whitespace fixes.

This was SVN commit r18379.
2016-06-14 15:06:39 +00:00
a9426a3f26 Distinguish private and public room level messages in the lobby. Patch by scythetwirler, refs #3865.
This was SVN commit r18378.
2016-06-14 14:07:52 +00:00
8d9255eaee Lobby cleanup.
Remove duplicate assignments in updateGameSelection.
Add function senderFont to remove duplication.
Add newlines to reduce line length and have properties of different
objects start on the same level of indentation.
Use logical OR instead of ternary in two occurances (mapTypeIdx).

This was SVN commit r18377.
2016-06-14 13:28:54 +00:00
b65594832d Lobby cleanup.
Use let instead of var.
Merge redundant assignment in updateSubject.

This was SVN commit r18376.
2016-06-14 12:34:46 +00:00
fb5e738920 Lobby cleanup. Patch by scythetwirler, refs #3865.
Replace an ugly workaround of ccb534259d with a proper check.

This was SVN commit r18375.
2016-06-14 12:17:37 +00:00
949f22b67d Victory check cleanup.
Use let instead of var.
Add newlines and a missing semicolon.
Remove an excess semicolon.

This was SVN commit r18374.
2016-06-14 11:18:28 +00:00
62061557db Host on arbitrary UDP ports. Patch in cooperation with Imarok, fixes #3575.
This was SVN commit r18372.
2016-06-13 16:56:14 +00:00
7b655b7ea6 Implement multiplayer dialog retries, fixes #4035, refs #3575.
Cleanup:
Move all code to hide elements to switchSetupPage.
Remove nasty second argument from switchSetupPage by just hiding every
page.
To avoid another state variable, immediately set g_IsConnecting to true
by calling startConnectionStatus when trying to host.
Use .some instead of a loop.

This was SVN commit r18371.
2016-06-13 14:29:52 +00:00
320798f901 Don't select "everyone" but the previously selected chat addressee when someone connected or disconnected. Fixes #3956.
This was SVN commit r18369.
2016-06-12 21:11:01 +00:00
31decd6274 Messed up variable name in 9dc66a27d8.
This was SVN commit r18368.
2016-06-12 15:29:43 +00:00
929711febb Fix skirmish entities to use Hellenic actors after removing the Athenian duplicates.
This was SVN commit r18367.
2016-06-12 15:13:09 +00:00
9dc66a27d8 Pass pointer by ref.
This was SVN commit r18366.
2016-06-12 14:37:13 +00:00
6e2106edd8 Fix whitespace, refs #3000.
This was SVN commit r18365.
2016-06-12 13:54:00 +00:00
38c7d7224a Elephants are not expected to capture buildings.
This was SVN commit r18363.
2016-06-11 16:07:28 +00:00
a0960f4f89 Show the player color and name of units from other players garrisoned in allied buildings. Fixes #4052.
This was SVN commit r18362.
2016-06-11 15:02:34 +00:00
d7d1d8ccb5 Implement buttons for up to 10 heroes. Patch by Clockwork-Muse, fixes #3000.
This was SVN commit r18361.
2016-06-11 13:46:04 +00:00
759aaa2264 Fixes a bug introduced in 0bf90da597 that prevents entity placement on some rectangular maps e.g. Phoenician Levant and Corsica vs Sardinia. Also fixes a typo in the Phoenician Levant .js and .json files. Fixes #4012
This was SVN commit r18360.
2016-06-11 11:16:07 +00:00
ab9cef172b Savegame cleanup.
Implement loading of multiplayer savegames that were created by
observers.

This was SVN commit r18359.
2016-06-11 00:30:11 +00:00
001c411cc2 Remove a division by a fixed equal to one in NearestNavcell in the short-range pathfinder which was from profiling on VC2013/windows 7 responsible for about 10% of ComputeShortPath.
This was SVN commit r18358.
2016-06-10 22:57:28 +00:00
c94cd66a57 Savegame cleanup.
Remove the player assignments altogether (506350d6fa) as the C++ part
already saves the playerID.
Grab the playerID directly from the game instead of passing it around
needlessly.

This was SVN commit r18357.
2016-06-10 19:04:57 +00:00
6ba90a2555 Session cleanup.
Move message polling code from onTick to messages.js and blend it in.

This was SVN commit r18356.
2016-06-10 13:17:47 +00:00
506350d6fa Savegame, session and gamesetup cleanup.
Don't save the player assignments to savegames as
the GUIDs are outdated and the GUI data only applies to the player that
saved the game.
Remove unneeded argument from getPlayerData.
Remove invalid (ready should be status) and unneeded playerAssignment
data when selecting a map in singleplayer mode.
Show filenames of saved games in the debug log.

This was SVN commit r18355.
2016-06-10 13:03:13 +00:00
a792503cab completes the ai adaptation to cost multipliers, fixes #4003
This was SVN commit r18353.
2016-06-09 19:28:54 +00:00
dd823dd572 ai cleanup
This was SVN commit r18352.
2016-06-09 19:25:40 +00:00
41bc367bd1 Messed up 01603708de
This was SVN commit r18350.
2016-06-09 17:45:50 +00:00