1
0
forked from 0ad/0ad
Commit Graph

17579 Commits

Author SHA1 Message Date
84d2b89fef Fix missing conversion of biome environment constants in 871ed04521 as reported by fatherbushido, fixes #4766.
Remove wrong defaultbiome copypasta.

This was SVN commit r20140.
2017-09-09 12:30:35 +00:00
74bfe5fd55 Add biome descriptions.
Display biomes in the objectives dialog and gamesetup map description
panel.
Complete the mod support of 871ed04521 by leaving the code
biome-agnostic.
Fix an oversight in unknown nomad in 2c5a6052ea.

Differential Revision: https://code.wildfiregames.com/D884
Strings By: Hannibal_Barca
This was SVN commit r20139.
2017-09-09 00:10:08 +00:00
bb
339c1f2210 Add missing and remove redundant phase required technology entries from templates
Patch By: Nescio
Differential Revision: https://code.wildfiregames.com/D887
This was SVN commit r20138.
2017-09-08 21:23:51 +00:00
76a2cd43d0 Fix broken Autogarrison in 1638727c23
Patch by Stan

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D885
This was SVN commit r20137.
2017-09-08 18:04:19 +00:00
1cdc8f1356 Mark simulation component template and entity properties as read-only in simulation tests (as they are in actual games).
Thus throw errors if a simulation test tries to alternate the template
instead of silently passing tests with wrong values (as happened tests
fixed by ff90bb8490).
Remove the two clones from simulation components that were only relevant
for that test.
Add test to test the test.

Differential Revision: https://code.wildfiregames.com/D871
Fixes #4759
setup.js and setup_test.js Reviewed By: leper

This was SVN commit r20134.
2017-09-08 04:22:53 +00:00
eb4e66aab3 Move VFS GUI script function registration to its interface file.
This was SVN commit r20133.
2017-09-08 04:01:26 +00:00
47ac189e62 Remove unnecessary, terribly named random biome getter functions.
Refs #892 / bc805bd357
Proposed by leper in irc on 2016-06-15
Discussed with FeXoR in irc on 2016-04-10

This was SVN commit r20132.
2017-09-08 03:26:06 +00:00
dcba05e881 Remove biome constants, so that mods can remove biomes without triggering reference errors, refs 871ed04521.
This was SVN commit r20131.
2017-09-08 02:49:49 +00:00
a7d1cba47b Fix compulsory JSON syntax error.
This was SVN commit r20130.
2017-09-08 02:44:23 +00:00
871ed04521 Move biome definitions to JSON and JS files, so that mods can easily remove or add new biomes, refs cc0d4f25da.
Move environment biome constants from JS to JSON.

This was SVN commit r20129.
2017-09-08 02:15:54 +00:00
b4cf5d0a73 petra: further improve performance in structure placement
Differential Revision: https://code.wildfiregames.com/D875
This was SVN commit r20128.
2017-09-07 17:21:24 +00:00
cc0d4f25da Move random biome system to a separate mapgen library.
Proposed library and directoryname agreed with FeXoR.
Make the rmgen/ biome agnostic by moving the biome constants in
createForests to the randombiome globals.
Don't pass a non-randombiome constant in gulf of bothnia to the
createForests function that expected a randombiome constant, refs
e17dd1ac12, accepted by Grugnas.
Remove unused trivial unrecommended randomizeBiome function,
make Biomes autocompletable in the gamesetup chat, refs D852.

This was SVN commit r20127.
2017-09-07 15:34:15 +00:00
e95f4e9744 Unify deepcopy and clone.
Delete clone globalscripts function introduced by 9f47ed536d.
Rename the better supported deepcopy function to clone.
Delete unused Vector2D and Vector3D clone prototype functions that can
just use clone if needed.

Differential Revision: https://code.wildfiregames.com/D870
Reviewed By: leper
This was SVN commit r20125.
2017-09-06 20:58:27 +00:00
e1bf09977c Fix the "Thermistocles" typo in the helmet prop file name. Refs 4d31ff14eb.
Reviewed By: Stan
Differential Revision: https://code.wildfiregames.com/D604
This was SVN commit r20124.
2017-09-06 20:56:13 +00:00
bb
f42205b2d7 Improve wolve target-finder performance
Don't use 3D coordinates since the map is flat.
Don't loop over all targets when there are enough targets in 200m
Wolves spawned at same spawnpoint can be treated as they have the same
position
some of it proposed and reviewed by elexis

Patch By: temple
Differential Revision: https://code.wildfiregames.com/D185
This was SVN commit r20123.
2017-09-06 08:59:56 +00:00
bb
63ca7ad672 Split VictoryDuration in RelicDuration and WonderDuration
As proposed by leper in 35377c51a7
refs #4014

Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D874
This was SVN commit r20122.
2017-09-06 08:44:26 +00:00
a46b44e4dc Allow specifying the gravity affecting projectiles.
This allows for differently shaped flight curves for projectiles (e.g.
mortars, magical projectiles).

Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D864
This was SVN commit r20120.
2017-09-06 00:23:13 +00:00
154ff3c517 Factor out resource generation in cmpTrader.
This makes it easier to change who gets the resources (refs #4314).

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D872
This was SVN commit r20119.
2017-09-06 00:18:05 +00:00
757b6efa43 Fix missing harbor and wild lake random biome implementation.
Fix random biome gamesetup option and colorize the random item as
proposed by bb.
Remove duplicate biome getter in rmgen2.

Reviewed By: Grugnas
This was SVN commit r20118.
2017-09-05 22:34:57 +00:00
2c5a6052ea Allow selecting the biome on all maps that support the random biome system, refs D852.
Fix numeric biome indices in unknown_land, unknown_nomad and
island_stronghold.

Differential Revision: https://code.wildfiregames.com/D873
Patch By: Grugnas
This was SVN commit r20117.
2017-09-05 16:16:25 +00:00
bb
deba66c376 Allow arbitrary order between dropdowns and checkboxes in gamesetup
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D862
This was SVN commit r20116.
2017-09-05 15:58:21 +00:00
f2550705d3 Select the biome of the random map in the gamesetup.
Differential Revision: https://code.wildfiregames.com/D852
Based on patch by: Grugnas
This was SVN commit r20115.
2017-09-05 12:57:22 +00:00
38865845d3 Stop using postfix increment in a few places.
Pointed out by cppcheck.

Reviewed By: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D414
This was SVN commit r20113.
2017-09-04 22:00:04 +00:00
4551e911a4 Cleanup of damage type related code in cmpDeathDamage.
This fixes a broken use of a function, removes an unused parameter,
fixes the incorrect property name in the gui.

Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D868
This was SVN commit r20112.
2017-09-04 21:22:11 +00:00
c4f6371940 Move lobby panels to custom file, so that they could be shown in a dialog as well.
Refs #4106, D817
Patch By: fpre / ffffffff
This was SVN commit r20111.
2017-09-04 20:47:42 +00:00
b3d1d02e53 Move prelobby files to a separate directory (to prepare splitting the lobby code into several files).
Refs #4106, D817

This was SVN commit r20110.
2017-09-04 19:41:40 +00:00
7cd3689f03 Fix a nearly hidden gamesetup bug that exists since at least alpha 19, revealed by 9cb0a60d73 / D829, reported by mimo.
When substituting missing map- or player-assignment-data, the original
player assignments object was assigned, thus unintentionally modified
when the assignments were modified.

Reviewed By: mimo
This was SVN commit r20109.
2017-09-04 19:03:19 +00:00
a3b9d16eff Petra: Look for aquatic treasure on naval maps
Patch by Sandarac

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D765
This was SVN commit r20108.
2017-09-04 18:06:02 +00:00
bce425ede5 petra: add some protections for non-existing templates
Differential Revision: https://code.wildfiregames.com/D867
This was SVN commit r20107.
2017-09-04 16:58:00 +00:00
5cc7fd27d7 Fix oversight in dd7f38e370 (thought undefined was converted to emptystring instead of "undefined"), refs D805.
This was SVN commit r20106.
2017-09-04 11:49:03 +00:00
3aca693db1 Add +1 tab indentation following dd7f38e370 / D805 for the lines not affected by 892876a571.
This was SVN commit r20103.
2017-09-03 22:08:13 +00:00
892876a571 Remove unneeded parameters nesting from the options page following c20ee2ad5e, refs #2596.
Add +1 tab for the affected lines following dd7f38e370, refs D805.

This was SVN commit r20102.
2017-09-03 21:59:45 +00:00
dd7f38e370 Use tabs for the options page and rewrite it altogether.
Removes a lot of JS and XML duplication, unneeded for-loops.
Display min/max in the tooltip for number inputs.
Increase the width for dropdowns and dynamically maximize the width of
the label.
Remember the selected tab when hotloading the page.

Differential Revision: https://code.wildfiregames.com/D805
Refs #3737
Graphical design agreed with: scythetwirler, mimo, Itms, fpre, Imarok,
bb, leper, brian, feneur, implodedok
Testing By: Vladislav, mimo
This was SVN commit r20101.
2017-09-03 21:38:50 +00:00
9cb0a60d73 Deepfreeze Aura, Technology and Resource Templates, Simulation states, GameAttributes and few other JS objects.
This reveals unintentional modifications to these objects which would
most often imply hidden bugs.

Differential Revision: https://code.wildfiregames.com/D829
Fixes #4257
Refs #3647

This was SVN commit r20100.
2017-09-03 16:37:09 +00:00
1b47451d32 Add deepfreeze function to recursively mark JS Objects as read-only.
Refs #4257, D829
Proofread By: leper
This was SVN commit r20099.
2017-09-03 12:50:45 +00:00
8707c2106b petra: some small tunings in defenseManager + various cleanup
This was SVN commit r20098.
2017-09-02 13:45:02 +00:00
ec3b1be38b Display the targer marker in the shroud of darkness as well.
Patch By: wowgetoffyourcellphone
Refs D606

This was SVN commit r20097.
2017-09-02 10:18:23 +00:00
5c01b50ca4 Add FALLTHROUGH, which in the best case is just [[fallthrough]].
Note that this does not fix the warnings in AtlasObjectXML, someone
interested
in fixing those should check whether using ICU would be a nicer
solution.

Reviewed By: echotangoecho
Differential Revision: https://code.wildfiregames.com/D740
This was SVN commit r20095.
2017-09-01 20:04:53 +00:00
faa1a3fd41 petra: update some entities collections when diplomacy changes
Differential Revision: https://code.wildfiregames.com/D858
This was SVN commit r20094.
2017-09-01 17:38:49 +00:00
a7d7a74d08 petra: improve performance of building placement
This was SVN commit r20093.
2017-09-01 17:33:10 +00:00
86d5b4e7e4 Options page cleanup.
Invert the dependencies property to remove one loop.
(Keep the dependencies property because recursive parsing would increase
the complexity.)
Maximize the option label width to remove a magic number.
Use a constant for the remaining magic number, as proposed by Vladislav
in D805.
Remove an unneeded dependency boolean type check.

This was SVN commit r20092.
2017-09-01 14:23:36 +00:00
7a157faf3c Allow the GUI to subscribe to text edit events to redeem three workarounds in the options page.
Differential Revision: https://code.wildfiregames.com/D860
Refs #2451, #3511, 5c61f68600 (registerChanges), 7fa2962c45
(onMouseLeave), e909567004 (onPress)
Reviewed By: Vladislav
This was SVN commit r20091.
2017-09-01 12:06:18 +00:00
2cb6139761 Fix typo in f8d53d8f7b / D786 and some whitespace in CInput.cpp
This was SVN commit r20088.
2017-09-01 01:51:48 +00:00
beb7c4ae34 Main Menu cleanup.
Remove unused names, CData and comments.
Add missing quotes and fix whitespace.

This was SVN commit r20087.
2017-08-31 18:22:09 +00:00
8a066abe69 move the Introductory_Tutorial to the tutorial folder
This was SVN commit r20086.
2017-08-31 18:07:03 +00:00
f80ae9236a add missing file in previous commit
This was SVN commit r20085.
2017-08-31 18:03:17 +00:00
744581a255 Remove the tutorial-ai which is obsolete
Discussed with Elexis

Differential Revision: https://code.wildfiregames.com/D526
This was SVN commit r20084.
2017-08-31 17:48:50 +00:00
6ed9017253 fix typo in LongPathfinder
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D847
This was SVN commit r20082.
2017-08-30 16:41:10 +00:00
db73e97185 Focus on deleted entities in observermode if the follow-player feature is enabled, refs #3743.
This was SVN commit r20081.
2017-08-30 13:42:25 +00:00
8653d0631c Unify two indistinguishable session sprites.
This was SVN commit r20080.
2017-08-30 13:22:53 +00:00