Commit Graph

17668 Commits

Author SHA1 Message Date
Imarok 9d232fd39a Domesticated animals shouldn't be visible in FOW
Reviewed by: Stan
Refs #3201
Differential Revision: https://code.wildfiregames.com/D891
This was SVN commit r20248.
2017-09-30 16:10:13 +00:00
leper 8629b83ed9 Remove unneeded include.
That was a leftover from a previous iteration of the code.

This was SVN commit r20247.
2017-09-30 15:29:13 +00:00
leper 84674911cc Switch back to an unplaceable filter for templates.
This removes FindAllPlaceableTemplates, replaces the few uses of it by
FindAllTemplates,
and makes that ignore all templates starting with special/ in addition
to those starting
with template_.

Now modders can use entirely different template organization schemes
(more folders, different
folders, etc) without having to edit a file that was never well
documented.

In conjunction with a few of the template moving patches preceding this
rubble/ and other/catafalque
are now placeable. The former now does not decay anymore and users that
want that should use the
decay| filter, the latter will be taken care of in #4762.

Return to making FindAllTemplates return all placeable templates again
(switch to unplaceable filter).

To reiterate the main point: Only templates starting with special/ or
template_ will not show up as
placeable in Atlas (or show up to code querying for all (placeable)
templates. If you want to add more
of those use one of these naming schemes (and possibly subfolders in
special/).

Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D935
This was SVN commit r20246.
2017-09-30 15:22:51 +00:00
fatherbushido 40cafe5049 Remove unneeded Vision and UnitMotion properties from gaia templates.
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D941
This was SVN commit r20245.
2017-09-30 14:57:12 +00:00
leper b78896dfa6 Make rubble non-decaying by default.
Explicitly specify that the rubble placed on death is decaying.
This breaks quite a few mods, then again the fix is a simple sed
command.
Run within your mod root directory:
sed -i 's,>rubble/,>decay|rubble/,' `find simulation/templates -name
'*.xml'`

For fields you can just edit the few templates manually and specify
decay_60 instead.

Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D938
This was SVN commit r20244.
2017-09-30 13:50:39 +00:00
leper ff7511d9fc Move special_filter/ templates to special/filter/.
This should help with simplifying the (un)placeable filtering again.

Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D934
This was SVN commit r20242.
2017-09-30 07:14:35 +00:00
leper a85c532f8f Move formations/ templates to special/formations/.
This should help with simplifying the (un)placeable filtering again.

Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D933
This was SVN commit r20241.
2017-09-30 06:51:56 +00:00
fatherbushido 8c15a81c58 Removed health leftover from Seleucid wonder.
Patch By: Nescio
Differential Revision: https://code.wildfiregames.com/D936
This was SVN commit r20240.
2017-09-29 18:52:05 +00:00
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