Commit Graph

17660 Commits

Author SHA1 Message Date
mimo a9f95feb42 fix missing parenthese in 49758c8337 and some other minor changes"
This was SVN commit r20239.
2017-09-29 16:58:25 +00:00
fatherbushido b1d71bfb43 Add a new function to emit a sound from a position not attached to an entity. Use it to improve the attack impact sound code and allow to emit that sound even if the attacker died meanwhile. Use the sound provided by Pureon for catapult. Fix #4779.
Patch By: Mate-86
Differential Revision: https://code.wildfiregames.com/D921
This was SVN commit r20236.
2017-09-28 19:26:07 +00:00
mimo 49758c8337 petra: various minor fixes
This was SVN commit r20234.
2017-09-27 18:58:51 +00:00
elexis 995f9b5975 Northern lights river cleanup following 7d0cc59136.
This was SVN commit r20233.
2017-09-27 14:35:46 +00:00
fatherbushido bebcd56a84 Leftover in fb6748d723.
This was SVN commit r20231.
2017-09-26 10:06:31 +00:00
fatherbushido fb6748d723 Use relative templates for unit speed. No significant value change. It makes balancing easier and will permit to change the speed of all units by changing one number. Refs #4352.
Differential Revision: https://code.wildfiregames.com/D930
This was SVN commit r20230.
2017-09-25 18:27:18 +00:00
mimo c6c02eb081 petra: refactor a bit the defense code to ease future changes
This was SVN commit r20229.
2017-09-25 17:20:15 +00:00
bb 6b9acadda4 Match house obstructions visually and cleanup some related template data.
No more loot for ptol building
Equal territory influence for small houses

Patch By: temple
Differential Revision: https://code.wildfiregames.com/D723
This was SVN commit r20227.
2017-09-24 16:15:13 +00:00
bb 026b04d345 Improve acoustic GUI notifications
Patch By: Polakrity
Reviewed By: elexis, bb
Differential Revision: https://code.wildfiregames.com/D821
This was SVN commit r20226.
2017-09-24 12:20:11 +00:00
bb b1f0bd2974 Resize storehouse so obstructions matches visually
Patch By: temple
Differential Revision: https://code.wildfiregames.com/D727
This was SVN commit r20225.
2017-09-24 11:28:23 +00:00
bb 9c23af265a Align session panels
Patch By: temple
Reviewed By: elexis, bb
Differential Revision: https://code.wildfiregames.com/D922
This was SVN commit r20224.
2017-09-24 10:13:34 +00:00
mimo 12bd37f70b Revisit the random walk of animals
Reviewed By: O2 JS Simulation, bb
Differential Revision: https://code.wildfiregames.com/D927
This was SVN commit r20223.
2017-09-24 09:44:59 +00:00
elexis d3301a6161 Fix division by zero in 0d0bc32736 and 25682da568 for the gulf map layout with only one player.
This was SVN commit r20222.
2017-09-23 13:28:43 +00:00
elexis 1f1a9ffbf1 Fix oversights in ba36f233fa (missing brace removal in latium) and 635e608776 (missing startAngle argument).
missing starting

This was SVN commit r20221.
2017-09-23 13:23:49 +00:00
Pureon 03862937a6 Removed stereo channel
This was SVN commit r20219.
2017-09-22 21:41:25 +00:00
bb 69ad6f9b97 Make corral obstruction and footprint match the actual building size.
Use correct rubbles and foundation actors also.

Patch By: temple
Differential Revision: https://code.wildfiregames.com/D728
This was SVN commit r20218.
2017-09-22 19:21:58 +00:00
mimo 3fa38fe480 petra: some fixes in attacks (choice of target and withdrawal)
This was SVN commit r20217.
2017-09-22 17:53:01 +00:00
fatherbushido 4e62ad38fe Remove some wrong references in root templates.
Differential Revision: https://code.wildfiregames.com/D923
This was SVN commit r20216.
2017-09-22 16:58:31 +00:00
fatherbushido da03e1a528 Get rid of special_units templates for packable siege units. Refs #1718.
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D925
This was SVN commit r20215.
2017-09-22 16:11:45 +00:00
bb 3d95c43430 Add footprint and obstruction sizes in skirmish farmstead fixing 2e02c88d2c
Using the policy to add the largest sizes of the civ-specific structures
to the default_skirmish template, to prevent overlapping.

Reviewed By: fatherbushido, temple
Differential Revision: https://code.wildfiregames.com/D919
This was SVN commit r20214.
2017-09-22 15:34:03 +00:00
Pureon 6c5b67e890 Some new siege projectile impact sounds
This was SVN commit r20211.
2017-09-21 22:40:39 +00:00
mimo c1684ccd5f ConquestCritical consistency
Patch by Nescio

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D892
This was SVN commit r20210.
2017-09-20 18:00:20 +00:00
mimo 11009c56b7 petra: do not try to defend some structures in blinking territories that the AI has no chance to defend.
(Will only be effective when D910 is commited as currently the blinking
tiles are not transfered to the AI)

This was SVN commit r20209.
2017-09-20 17:54:53 +00:00
fatherbushido 2a46552c2e Fix a wrong sound file reference.
This was SVN commit r20208.
2017-09-20 13:04:16 +00:00
mimo 123f732a15 petra: fix a bug when choosing the best unit for a given task, and cleanup a bit that function from unused stuff
This was SVN commit r20206.
2017-09-19 20:30:10 +00:00
fatherbushido 7992277692 Delayed damage. When a projectile hits the ground, it makes its damage (or its splash damage) a specified time later. It can be use for grenades. Refs #1911.
Patch By: Mate-86
Differential Revision: https://code.wildfiregames.com/D748
This was SVN commit r20204.
2017-09-18 17:00:36 +00:00
leper 725aa8a686 Move damage types definition to a new helper similar to how resources are handled.
This should make adding new damage types a little easier, however such
an
extension would still need changes to the AI, and to all templates that
have Armour, Attack, or DeathDamage.

Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D866
This was SVN commit r20203.
2017-09-18 16:33:56 +00:00
bb 2e02c88d2c Cleanup farmstead size related template data.
Make sizes match the actual building
Use correct foundation and rubble
Make clean use of the parent structure

Patch By: temple
Differential Revision: https://code.wildfiregames.com/D726
This was SVN commit r20202.
2017-09-18 12:21:02 +00:00
leper 1c47c5ad44 Rename cmpPosition's IsFloating to CanFloat.
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D916
This was SVN commit r20201.
2017-09-18 09:54:54 +00:00
fatherbushido b49ca424c7 Remove some leftovers in wonders templates.
Differential Revision: https://code.wildfiregames.com/D917
This was SVN commit r20200.
2017-09-18 09:33:14 +00:00
fatherbushido 6ecba5025b Add test for height and water logic in Position component. Refs 38cca12ec6.
Reviewed By: leper
Differential Revision: https://code.wildfiregames.com/D915
This was SVN commit r20199.
2017-09-18 08:46:11 +00:00
leper 38cca12ec6 Add float depth support to cmpPosition.
This allows for amphibious units (swimming animals, tanks, etc).
The specified depth is the distance from the water surface where the
unit will start to float. Should most likely be a little less than
the height of the actor.

Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D842
This was SVN commit r20196.
2017-09-18 03:55:33 +00:00
leper fd034c9bcd Use white text in the mod selection screen. Patch by Nescio.
Differential Revision: https://code.wildfiregames.com/D911
This was SVN commit r20195.
2017-09-18 03:08:25 +00:00
fatherbushido b3db71aa63 Fix an issue with tests. Allow to mock several components for the system entity. Reviewed by leper.
Differential Revision: https://code.wildfiregames.com/D848
This was SVN commit r20194.
2017-09-17 07:06:09 +00:00
fatherbushido 6f8dddef5a Tag exhausted resource as not available in ResourceSupply component. Fix #4507. Reviewed by leper.
Differential Revision: https://code.wildfiregames.com/D902
This was SVN commit r20193.
2017-09-17 05:40:33 +00:00
fatherbushido 015f9bbf33 Remove a Brit fortress bonus. Agreed by scythetwirler.
Differential Revision: https://code.wildfiregames.com/D913
This was SVN commit r20192.
2017-09-17 05:21:14 +00:00
fatherbushido e8ff10620b Add a generic healer hero template and make the mauryan healer hero inherit from it. Follow discussion with elexis.
Differential Revision: https://code.wildfiregames.com/D912
This was SVN commit r20191.
2017-09-16 15:53:47 +00:00
fatherbushido 455ab4b9e2 Fix some format specifiers in debug strings. Reviewed by leper.
Differential Revision: https://code.wildfiregames.com/D909
This was SVN commit r20190.
2017-09-16 15:28:01 +00:00
elexis d970c5019a Remove some more recursive duplication in the rmgen library (painting terrain based on height).
This was SVN commit r20189.
2017-09-16 10:28:49 +00:00
bb 0353b9ff49 Change comment for the MatchesClassList function so we can use it for other things aswell
Useful for f.e. required techs and attack types

Reviewed By: leper
Differential Revision: https://code.wildfiregames.com/D869
This was SVN commit r20188.
2017-09-15 16:07:04 +00:00
elexis bf5370ac02 Unify 34 copies of the civic center tile class setting of random map scripts.
This was SVN commit r20186.
2017-09-15 03:52:50 +00:00
elexis 7d0cc59136 Reverse engineer and unify the 14 copies of the river drawing random mapgen code.
Splits unrecognizably blended magic numbers and makes them available for
map editors.

Removes copied terms of copies of conditions of copied of functions,
unused variables, overwritten values, checks that are always true, dead
code from checks that are always false and
things like 9 pairs of unneeded parentheses in a single line that was
copied several times.

Remove the useless RectPlacer terrain painting call on Guadalquivir
River.
Make danubius river borders parallel and drop thetha/seed differences.
Use planar instead of slopy water ground level for Phoenician Levant.

Copied and obscured by
a9b963c3a5 Aegan Sea, Guadalquivir River, Hyrcanian Shores, Phoenician
Levan, Nile,
0d0bc32736 Unknown,
25682da568 Unknown Land,
7f8adcf8cb Unknown Nomad,
5ef6d1f92b English Channel,
5bea1e7b87 Kerala,
026dcf10eb Danubius.

This was SVN commit r20185.
2017-09-15 03:24:35 +00:00
mimo a507fe1101 petra: remove some unused code + some minor tunings
This was SVN commit r20184.
2017-09-14 18:57:33 +00:00
leper e55c8bda07 Move placeable templates out of special/.
special/ should not contain placeable templates. Now we can switch to a
blacklist
approach for placeable templates in Atlas. This should make it easier
for modders
to use a different folder structure than the public mod and having their
templates
show up in Atlas without having to modifiy templates.
Non-placeable templates should exist in only a few different locations
which are
unlikely to change often, and are relatively unlikely to be added
regularly by
modders.

Reviewed By: elexis; some disagreement with FeXoR and Stan on the naming
of the trigger points
Differential Revision: https://code.wildfiregames.com/D877
This was SVN commit r20181.
2017-09-13 01:35:20 +00:00
leper f6683fcbce Fix SpiderMonkey build on FreeBSD 12. Fixes #4765.
Patch By: madpilot
Differential Revision: https://code.wildfiregames.com/D886
This was SVN commit r20180.
2017-09-13 00:10:27 +00:00
leper 189da09a7e Make FromJSProperty actually part of ScriptInterface.
Reviewed By: Imarok
Differential Revision: https://code.wildfiregames.com/D876
This was SVN commit r20179.
2017-09-12 22:52:15 +00:00
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