Commit Graph

17350 Commits

Author SHA1 Message Date
elexis ac6ca9d50a Prevent animals and resources on lava on Pompeii.
Refs: https://code.wildfiregames.com/D588
Patch By: Phormio
This was SVN commit r19722.
2017-06-03 00:49:36 +00:00
elexis dd9a8706f9 Complete the move of random number helper functions from the random map library (0e0ed94926, refs #6) to globalscripts.
Differential Revision: https://code.wildfiregames.com/D596
Patch By: bb
3c56638e8b introduced pickRandom and its petra chat application,
08fbf223f6 used the randFloat function more often, introduced randBool
and randIntInclusive/Exclusive
        to replace randInt (whose behavior and argument meaning depended
on the number of arguments) calls in the GUI and simulation,
ddfc985586 changed randInt to pickRandom for random maps,
da2b89583a introduced randBool with a probability and replaced
deprecated randInt calls for random maps,
175cded64a replaced randInt calls with randIntInclusive/Exclusive for
random maps except the Unknown,
a227a7f45b removed optional arguments of randFloat,
this commit replaces the remaining occurances in the Unknown maps,
thus fixes #4326 (old patch from refs #3102).

This was SVN commit r19721.
2017-06-03 00:28:34 +00:00
elexis 467824e727 Fix JSdoc, a missing explicit return, a missing warning, a typo and a jshint redeclaration warning of one rmgen2 function.
Fixes #4608
Differential Revision: https://code.wildfiregames.com/D593
Reviewed By: mimo
This was SVN commit r19720.
2017-06-02 22:25:33 +00:00
elexis 01710cd0be Rename the late observer setting "no one" to "disabled".
Revert the unintentional revert of 9b28ce3463 in 31d1536e52.

Differential Revision: https://code.wildfiregames.com/D583
Reviewed By: causative
This was SVN commit r19719.
2017-06-02 22:11:05 +00:00
elexis 51f62818f7 Fix all broken checks for the absent (random-mapgen+simulation) Seed property in the engine, refs #3965.
Hence display the originally intended useful warnings (instead of the
characterless JS "Script value conversion check failed" warning and
skipping the intended warnings).

This was SVN commit r19718.
2017-06-02 15:07:58 +00:00
mimo a219f59108 fix 72f6e02747 with two missing lines
This was SVN commit r19715.
2017-06-01 19:34:42 +00:00
mimo 6dfa20c745 petra: fix an garrison/ungarrison loop due to d1108516af
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D579
This was SVN commit r19714.
2017-06-01 19:31:35 +00:00
s0600204 f38c0c3876 Fix df89091c48 not handling upgradeable units correctly.
Tested By: wowgetoffyourcellphone
Refs: #4079
Differential Revision: https://code.wildfiregames.com/D517
This was SVN commit r19711.
2017-06-01 18:28:49 +00:00
mimo 862f2e08b1 petra: remove an unused var
This was SVN commit r19710.
2017-06-01 18:04:40 +00:00
mimo dde0d9e3b1 Fix formation problems reported in #4599: fix units not removed from formation when switching to the null formation and fix the display of formation icon when only one entity selected
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D582
This was SVN commit r19709.
2017-06-01 18:03:24 +00:00
Imarok e6d782c2e9 Plus symbol for heal range overlay
Reviewed by: Sandarac
Differential Revision: https://code.wildfiregames.com/D571
This was SVN commit r19708.
2017-06-01 17:53:41 +00:00
elexis d724347812 Spawn attackers at the gaia civic centers on Danubius, so as to make the more frightening and incentivize its destruction.
Differential Revision: https://code.wildfiregames.com/D380
Reviewed By: Sandarac
This was SVN commit r19707.
2017-06-01 17:33:07 +00:00
elexis f4ba646972 Technology to rank up mercenaries, making them a more reasonable choice.
Differential Revision: https://code.wildfiregames.com/D407
Patch By: Grugnas
Reviewed By: fatherbushido
Numbers confirmed by borg-

This was SVN commit r19706.
2017-06-01 15:55:42 +00:00
elexis 23b02c31ed Danubius bugfixes, refs D380, D371, D204.
Fix broken targetClass parsing as reported by bb on 2017-04-19.

More space between islands and the shoreline as proposed by causative.

Fix typo reported by Sandarac.

Revert the terrible decision to set attackers to violent,
which caused siege engines to change the target from the civic center to
the units that attacked it and
ships to become stuck at the shoreline more often trying to fight back
against unreachable towers.

This was SVN commit r19705.
2017-06-01 13:29:08 +00:00
FeXoR ca654e3f79 Add random map Wild Lake. Patch by FeXoR. Reviewed by elexis and Imarok.
Differential Revision: https://code.wildfiregames.com/D548
This was SVN commit r19704.
2017-06-01 08:46:00 +00:00
elexis 61261d14fc STUN + XMPP ICE implementation.
Allows lobby players to host games without having to configure their
router.

Differential Revision: https://code.wildfiregames.com/D364
Fixes #2305
Patch By: fcxSanya.
StunClient based on code by SuperTuxKart, relicensed with approval of
the according authors hilnius, hiker, Auria, deveee, Flakebi, leper,
konstin and KroArtem.
Added rfc5245 (ejabberd) support, a GUI option, refactoring and segfault
fixes by myself.

Tested By: user1, Sandarac, Sestroretsk1714, Vladislav, Grugnas,
javiergodas
Partially Reviewed By: leper, Philip, echotangoecho
This was SVN commit r19703.
2017-06-01 06:33:52 +00:00
mimo cc2440c00b Petra: diplomacyManager cleanup
Patch by Sandarac

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D581
This was SVN commit r19701.
2017-05-31 19:08:39 +00:00
elexis f011b7d18e Fix a typo in b052831529 that caused sprintf errors as reported by Sandarac.
This was SVN commit r19700.
2017-05-31 18:01:31 +00:00
elexis 77c4e649af Replace hardcoded copies of a C++ simulation constant in JS used to compute the mapsize with a call to a new getter in the C++ interface.
Differential Revision: https://code.wildfiregames.com/D577
Patch By: Sandarac
This was SVN commit r19699.
2017-05-31 16:43:57 +00:00
mimo 72f6e02747 petra: fight back when a cc is captured instead of retreating
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D575
This was SVN commit r19698.
2017-05-31 16:27:31 +00:00
fatherbushido 2e5138bad9 Reduce slightly armor of gaul fanatic unit and make the run speed more consistent. The purpose is to balance it a bit more but also keep and emphasize the specificity of that unit. Reviewed by elexis.
Differential Revision: https://code.wildfiregames.com/D569
This was SVN commit r19697.
2017-05-30 21:45:54 +00:00
mimo 80b5c2dae1 fix a ai error following d5dcb0c61e, fixes #4602
This was SVN commit r19696.
2017-05-30 19:45:09 +00:00
fatherbushido 5a30156bb3 Use multiplication instead of addition in the steel working technology. Patch by temple.
Differential Revision: https://code.wildfiregames.com/D552
This was SVN commit r19695.
2017-05-30 17:13:59 +00:00
fatherbushido d5db047c9a Allow walls and fields to be captured by territory but not by capture attack, by using restricted classes. Reviewed by mimo and Imarok.
Differential Revision: https://code.wildfiregames.com/D450
This was SVN commit r19694.
2017-05-29 20:27:09 +00:00
fatherbushido 5de66b24b1 Tweak many auras. Do some cleaning, increase or decrease some effects to induce more choices. Add an aura to Alexander. Change the effect of the effect of Marcellus and add an aura to Scipio based on a design doc. Fix some strings. Commented by elexis. Largelly discussed and reviewed by Grugnas and borg-.
Differential Revision: https://code.wildfiregames.com/D541
This was SVN commit r19693.
2017-05-29 20:18:08 +00:00
mimo b43f6e519a petra cleanup following 0f6cc9ee62: code cleanup + distant berries gatherer are reallowed in maps with disabled field and corrals.
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D566
This was SVN commit r19692.
2017-05-29 18:22:24 +00:00
fatherbushido 8387195fd2 Rework heros costs. Make their costs more consistent with champions costs and so make them more expensive. Use relative templates for costs and armor. Adjust attack repeat time with last champions changes. Patch by Grugnas.
Differential Revision: https://code.wildfiregames.com/D225
This was SVN commit r19691.
2017-05-29 17:22:40 +00:00
elexis a7c09a500d That what leper said. Refs 9ff7ec3465, 31d1536e52.
This was SVN commit r19688.
2017-05-29 02:56:34 +00:00
elexis 7b92b518f3 Rephrase a hero tooltip and update the roman army camp description following D405 as reported by Hannibal Barca.
Differential Revision: https://code.wildfiregames.com/D564
Reviewed By: fatherbushido
This was SVN commit r19687.
2017-05-29 02:25:01 +00:00
s0600204 10f8d019e5 Add a test for the Upgrade Component, focusing on tech modifications.
Also tests the appropriate function in `globalscripts/Templates.js`.

Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D519
This was SVN commit r19686.
2017-05-28 21:09:16 +00:00
elexis 31d1536e52 Optionally allow late observers for buddies only.
Differential Revision: https://code.wildfiregames.com/D549
Fixes #4528
Reviewed By: fpre
This was SVN commit r19685.
2017-05-28 18:05:08 +00:00
elexis d44a407fc4 That what mimo said.
This was SVN commit r19684.
2017-05-28 17:45:17 +00:00
mimo feedca18cd fix an absurd concern due to a crazy rule which push people to raise a concern for such thing, causing much more effort to raise and then accept the fix rather than simply fix it
This was SVN commit r19683.
2017-05-28 17:34:18 +00:00
elexis 87305cc727 Give the mauryan hero healer Chanakya a heal aura just like the briton hero Cunobelin has,
because that aura is an order of magnitude more useful, making that hero
a viable choice.
Nerf Cunobelin aura by 20%, since 100 units can fit easily into the aura
range and heal while fighting and moving too.

Differential Revision: https://code.wildfiregames.com/D565
Reviewed By: fatherbushido
Numbers contested by borg-, PhyZic (proposed 0.5) and Grugnas and
nigel87 (proposed 1.0)

This was SVN commit r19682.
2017-05-28 14:58:57 +00:00
mimo 0f6cc9ee62 petra: do not gather berries too far
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D560
This was SVN commit r19681.
2017-05-28 09:02:00 +00:00
elexis 097d76f319 Heal range visualization.
Differential Revision: https://code.wildfiregames.com/D432
Patch By: Sandarac
This was SVN commit r19679.
2017-05-28 05:07:10 +00:00
elexis f99adf65a2 Disable the diplomacy buttons of the current diplomatic stance to prevent useless diplo changes in the GUI.
Differential Revision: https://code.wildfiregames.com/D461
Patch By: Sandarac
This was SVN commit r19678.
2017-05-28 02:45:21 +00:00
elexis 247e4c6451 Add fish to the map Gear.
Fixes #4240
Patch By: odoaker
This was SVN commit r19677.
2017-05-28 02:32:29 +00:00
elexis 8b7438af5d Fix impassable berries on Ardennes Forest.
Fixes #4295
Patch By: odoaker
This was SVN commit r19676.
2017-05-28 01:20:37 +00:00
Imarok ed38491622 Allow to show capture, resource and health bar at the same time. (needed for D450)
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D516
This was SVN commit r19675.
2017-05-27 20:38:05 +00:00
Imarok 80635665f7 Fix replay menu loading time by using a cache file
Reviewed by: elexis
Fixes #3433
Differential Revision: https://code.wildfiregames.com/D39
This was SVN commit r19674.
2017-05-27 20:17:57 +00:00
Imarok d096c2f09c Update teamboni in civ.jsons
Reviewed by: fatherbushido
refs #4082
Differential Revision: https://code.wildfiregames.com/D460
This was SVN commit r19673.
2017-05-27 20:14:29 +00:00
elexis e63dc65594 Add raindrops to Extinct Volcano.
Differential Revision: https://code.wildfiregames.com/D539
Reviewed By: FeXoR
This was SVN commit r19672.
2017-05-27 20:00:23 +00:00
mimo 743609289a Adjust size of tutorial window by increasing its width and decrease height, to make it a bit less intrusive.
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D559
This was SVN commit r19671.
2017-05-27 14:09:29 +00:00
Itms 3d53614bce Add a script to lint the translations with Dennis.
Two of our printf calls are not compatible with python-format and will
be ignored until Dennis supports the corresponding formats. Also removed
meaningless enclosing characters that were wrongly considered HTML.

Reviewed By: leper
Differential Revision: https://code.wildfiregames.com/D214
This was SVN commit r19669.
2017-05-27 12:26:26 +00:00
FeXoR 4a78efe0e3 Fixes an error while placing Cartaginian walls ingame.
Differential Revision: https://code.wildfiregames.com/D343
Patch By: Grugnas
This was SVN commit r19668.
2017-05-27 10:59:29 +00:00
elexis 9ff7ec3465 Scale the cursor according to the GUI scale (HiDPI support).
Differential Revision: https://code.wildfiregames.com/D320
Fixes #3875
Patch By: Dariost
Reviewed By: domdomegg
This was SVN commit r19667.
2017-05-27 09:24:04 +00:00
elexis a3913080cc Option to prevent joining clients from becoming automatically assigned to unused playerslots.
Thus the controller doesn't have to unassign every unwanted client
immediately in order to minimize frustration for those clients.
Option to automatically assign joining buddies to playerslots as a
better approximation for frequent players.

Differential Revision: https://code.wildfiregames.com/D546
Reviewed By: fpre
This was SVN commit r19666.
2017-05-27 08:09:10 +00:00
elexis b366ae0829 Swap the colors too when swapping players in the gamesetup.
Differential Revision: https://code.wildfiregames.com/D287
Patch By: fpre
This was SVN commit r19665.
2017-05-27 07:31:15 +00:00
fatherbushido 3a0e1bc52a Use multiplication instead of addition in some Persian technology. Patch by temple. Reviewed by scythetwirler.
Differential Revision: https://code.wildfiregames.com/D551
This was SVN commit r19664.
2017-05-26 20:46:05 +00:00