leper
66bdc460f4
Cleanup damage type related code in cmpDamageReceiver and cmpDamage.
...
If something now deals damage with a damage type for which there is no
armor specified
it will deal full damage (assuming 0 armor). This cannot happen in the
game yet, but
might at some later point.
Reviewed By: bb
Differential Revision: https://code.wildfiregames.com/D865
This was SVN commit r20178.
2017-09-12 22:18:45 +00:00
leper
2534010d0f
Fix build without precompiled headers.
...
Refs 21f69ef574 .
This was SVN commit r20177.
2017-09-12 22:18:39 +00:00
elexis
3312a83f82
Don't overwrite invalid input in numeric fields of the options page following 7a157faf3c.
...
It prevented the user from correcting NaN easily and typing numbers in
some edge cases like floating points numbers (refs D332).
Instead, display a red background if the user typed something invalid.
Agreed with Dariost in irc on 2017-09-05.
Remove unused wrong XML sprite as reported by bb in dd7f38e370 and
distinguish 0 min/max from undefined.
This was SVN commit r20176.
2017-09-12 19:32:50 +00:00
mimo
a5b4dd3744
petra: take field diminishingReturns into account
...
This was SVN commit r20175.
2017-09-12 17:26:23 +00:00
mimo
96219942d2
petra: fix cases where UnitAI (because of autocontinue) would make the AI build some field foundations while it was not needed
...
This was SVN commit r20174.
2017-09-12 16:47:30 +00:00
elexis
486aec18d4
Move Main ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20172.
2017-09-12 03:11:33 +00:00
elexis
d6cb9c845b
Move Debugging ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20171.
2017-09-12 02:25:28 +00:00
elexis
921c5515a6
Move Simulation GUI ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20170.
2017-09-12 01:53:46 +00:00
elexis
5f8be8e0c6
Move Game ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20169.
2017-09-12 01:38:46 +00:00
elexis
fa54a8cd65
Move GUI Manager ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20168.
2017-09-12 00:54:49 +00:00
elexis
21f69ef574
Move networking ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20167.
2017-09-12 00:29:10 +00:00
elexis
0e3a6d811c
Move SavedGame ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20166.
2017-09-11 23:22:28 +00:00
elexis
f1cc54cc18
Move GameView ScriptFunctions to its JS Interface, refs #4772 .
...
Use early returns as initialization checks.
This was SVN commit r20165.
2017-09-11 23:03:27 +00:00
elexis
4d931b57e9
Move ReadJSONFile and WriteJSONFile GUI ScriptFunctions that only handle VFS paths to the VFS JS Interface.
...
This was SVN commit r20164.
2017-09-11 22:21:34 +00:00
elexis
e69a0fb9db
Remove unused clumsy JS GUI ScriptFunctions debug timer from ed7b4b5fca.
...
GetMicroseconds from 7a91d330d3 provides microsecond precise timing.
Refs #4772 .
This was SVN commit r20163.
2017-09-11 22:08:54 +00:00
mimo
8f05358b5e
Template loading from the AI
...
Patch by Sandarac
Reviewed By: mimo
Trac Tickets: #4611
Differential Revision: https://code.wildfiregames.com/D639
This was SVN commit r20162.
2017-09-11 16:23:54 +00:00
fatherbushido
57c8473783
Add ResourceSupply component unit tests.
...
Differential Revision: https://code.wildfiregames.com/D901
This was SVN commit r20161.
2017-09-11 13:00:01 +00:00
elexis
ac0e6fd0d0
Pick the closest match for SimRates like 0.10000000149011612 in the session gamespeed dropdown and warn next time a value can't be displayed.
...
Reported by Grugnas.
This was SVN commit r20160.
2017-09-11 10:16:12 +00:00
mimo
4541543f0e
petra: another fix in foundation properties in view of https://code.wildfiregames.com/D639
...
This was SVN commit r20158.
2017-09-10 17:55:50 +00:00
elexis
32d8283be1
Move the 12MB heightmap data from the JS code of _kali's 9 alpha 21 realworld maps to separate JSON files (following the new JSON function in 871ed04521).
...
Don't use the JSON file ending, so that Atlas and gamesetup don't need
code to avoid parsing these huge files.
This was SVN commit r20157.
2017-09-10 15:54:26 +00:00
elexis
97e1d002f1
Add two missing checks in the EndgameManager for players who already had won or were defeated in d2d43ab46f as reported by fatherbushido, refs #4382 .
...
Add a warning if a Trigger script (like the one on Treasure Islands,
refs #4507 ) tries to marks a player as won who had already won or lost.
Merge a duplicate call in the Player component.
This was SVN commit r20156.
2017-09-10 15:30:53 +00:00
mimo
8e78a2ba0b
Petra: fix in foundation properties when using https://code.wildfiregames.com/D639
...
This was SVN commit r20155.
2017-09-10 12:15:14 +00:00
elexis
921630408d
Create arrays with [], not new Array in random map scripts, as stated by the Coding_Conventions,
...
except Snowflake Searocks which will receive special treatment.
This was SVN commit r20153.
2017-09-10 01:58:04 +00:00
elexis
9750d09032
Fix oversight in 757b6efa43 (don't pick the "random" biome by chance when launching the game with a random biome), refs D852.
...
This was SVN commit r20152.
2017-09-10 01:52:11 +00:00
elexis
f1e352927c
Merge the 14 copies of the player placement code on river maps.
...
This was SVN commit r20151.
2017-09-10 01:04:11 +00:00
elexis
9119b663d8
Fix wrong comma in cc0d4f25da and a mismatched brace in ba36f233fa (hidden by the wrong indentation of a9b963c3a5).
...
This was SVN commit r20150.
2017-09-09 22:57:46 +00:00
elexis
635e608776
Unify 36 copies of the radial playerplacement loop of random mapscripts.
...
Trim unused PlayerAngle, StartAngle and baseRadius variables.
This was SVN commit r20149.
2017-09-09 19:12:28 +00:00
elexis
4477bcfb7e
Replace 55 playerarray sorting loops copies with calls to two random mapgen helper functions.
...
Rename randomizePlayers as it paradoxically called sortPlayers on the
result.
This was SVN commit r20148.
2017-09-09 16:49:35 +00:00
fatherbushido
7bc941cf62
Add Heal component unit tests.
...
Differential Revision: https://code.wildfiregames.com/D898
This was SVN commit r20147.
2017-09-09 16:24:28 +00:00
elexis
45bb3d2a43
Remove 23 copies of the random mapgen terrain init loop (including 16 copies of unused x and z vars).
...
This was SVN commit r20146.
2017-09-09 15:30:44 +00:00
mimo
4d22667ac9
petra cleanup
...
This was SVN commit r20145.
2017-09-09 15:01:35 +00:00
elexis
ba36f233fa
Remove 1400 useless random map script comments.
...
This was SVN commit r20144.
2017-09-09 14:41:50 +00:00
mimo
25282a5552
Petra: fix population bonus of foundation when using https://code.wildfiregames.com/D639
...
This was SVN commit r20143.
2017-09-09 14:38:40 +00:00
elexis
5e019b5818
Don't use the default metal/stone mines of the random biome system in the independent heightmap library (following 7471a0db63) that is only used by a map that doesn't use the random biome system, revealed by cc0d4f25da.
...
Don't mix alpine and mediterranean (rmbiome) mines on Schwarzwald as
before 7471a0db63 . Refs #3764 .
This was SVN commit r20142.
2017-09-09 14:34:15 +00:00
Imarok
ab7089ad61
Command line option for pid+timestamp in OOS dump, mainlog and interestinglog
...
Reviewed by: elexis Fixes #3339
Differential Revision: https://code.wildfiregames.com/D51
This was SVN commit r20141.
2017-09-09 13:16:05 +00:00
elexis
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
elexis
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
mimo
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
elexis
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
elexis
eb4e66aab3
Move VFS GUI script function registration to its interface file.
...
This was SVN commit r20133.
2017-09-08 04:01:26 +00:00
elexis
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
elexis
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
elexis
a7d1cba47b
Fix compulsory JSON syntax error.
...
This was SVN commit r20130.
2017-09-08 02:44:23 +00:00
elexis
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
mimo
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
elexis
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
elexis
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
Itms
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