Page MenuHomeWildfire Games

Changes to Fields of Meroe
ClosedPublic

Authored by lyv on Mar 25 2018, 7:41 PM.

Details

Summary

Added more mines and a crossable shallow to the river.

Test Plan

Make sure the passage is crossable and whether mine count is appropriate.

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

lyv created this revision.Mar 25 2018, 7:41 PM
Owners added a subscriber: Restricted Owners Package.Mar 25 2018, 7:41 PM
Vulcan added a subscriber: Vulcan.Mar 25 2018, 7:53 PM

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Default...
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 122| 122| 	"landFunc": (position, shoreDist1, shoreDist2) => {
| 123| 123| 		for (let riv of riverTextures)
| 124| 124| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 125|    |-				{
|    | 125|+			{
| 126| 126| 					riv.tileClass.add(position);
| 127| 127| 					if (riv.terrain)
| 128| 128| 						createTerrain(riv.terrain).place(position);
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 4 tabs but found 5.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 123| 123| 		for (let riv of riverTextures)
| 124| 124| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 125| 125| 				{
| 126|    |-					riv.tileClass.add(position);
|    | 126|+				riv.tileClass.add(position);
| 127| 127| 					if (riv.terrain)
| 128| 128| 						createTerrain(riv.terrain).place(position);
| 129| 129| 				}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 4 tabs but found 5.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 124| 124| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 125| 125| 				{
| 126| 126| 					riv.tileClass.add(position);
| 127|    |-					if (riv.terrain)
|    | 127|+				if (riv.terrain)
| 128| 128| 						createTerrain(riv.terrain).place(position);
| 129| 129| 				}
| 130| 130| 	}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 125| 125| 				{
| 126| 126| 					riv.tileClass.add(position);
| 127| 127| 					if (riv.terrain)
| 128|    |-						createTerrain(riv.terrain).place(position);
|    | 128|+					createTerrain(riv.terrain).place(position);
| 129| 129| 				}
| 130| 130| 	}
| 131| 131| });
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 126| 126| 					riv.tileClass.add(position);
| 127| 127| 					if (riv.terrain)
| 128| 128| 						createTerrain(riv.terrain).place(position);
| 129|    |-				}
|    | 129|+			}
| 130| 130| 	}
| 131| 131| });
| 132| 132| Engine.SetProgress(10);

Link to build: https://jenkins.wildfiregames.com/job/differential/310/display/redirect

Thanks for the crossing, otherwise I think it's too hard to continually ferry units across the river.

About the part that ships can't cross, that's geographically and historically accurate. Land trade was important because of that.

binaries/data/mods/public/maps/random/fields_of_meroe.js
145 ↗(On Diff #6273)

PI/2 can be avoided by switching X/Y I guess.
In rP21620 is an example showing how one can replace this helper function with a more familiar createArea call.

Also it would be good to have scaleByMapSize(2, 4) passages, right?
(Perhaps they don't need a minimm distance if it's too timeconsuming to implement)

153 ↗(On Diff #6273)

Was wondering if we should have bumps and stones around the area too (NearTileClasses(clPassage) constrained to the water area).

375 ↗(On Diff #6273)

ByAreas, otherwise you get too few rocks, also performance

lyv added inline comments.Mar 26 2018, 3:26 PM
binaries/data/mods/public/maps/random/fields_of_meroe.js
145 ↗(On Diff #6273)

I actually wanted to include the fifth and sixth(?) cataracts. But couldnt get the constraint to work, and i guess its not geographically accurate when two are too close.

elexis added inline comments.Mar 26 2018, 3:31 PM
binaries/data/mods/public/maps/random/fields_of_meroe.js
145 ↗(On Diff #6273)

I forgot, exactly two of them. We should have it as a code comment if we don't add it to the map description (the latter wouldn't be inadvisable as it teaches the players some relevant history and geography).

A simple implementation of two cataracts would be for (let x of randFloat(0.15, 0.35), randFloat(0.65, 0.85))

lyv updated this revision to Diff 6301.Apr 2 2018, 1:50 PM
elexis added inline comments.Apr 2 2018, 2:08 PM
binaries/data/mods/public/maps/random/fields_of_meroe.js
137 ↗(On Diff #6301)

areaPassage

159 ↗(On Diff #6301)

may use undefined too

145 ↗(On Diff #6273)

Is it intended that start and end use two different angles?

Use a constant for -1

lyv updated this revision to Diff 6302.Apr 2 2018, 2:23 PM
lyv updated this revision to Diff 6308.Apr 3 2018, 3:35 PM

Fixed an oversight

elexis added a comment.Apr 5 2018, 1:38 PM

Besides aRock, this contains the fixes to the inline comments: https://pastebin.com/8ikR3vX1

binaries/data/mods/public/maps/random/fields_of_meroe.js
138 ↗(On Diff #6308)

Can move the PI/2 and riverAngle here too to remove a bit of duplication

148 ↗(On Diff #6308)

\n}

152 ↗(On Diff #6308)

Constants for heights

156 ↗(On Diff #6308)

100 retries shouldn't be needed now that it always tries to place within that area.
Also since it doesn't have a constraint, it always succeeds.

376 ↗(On Diff #6308)

aRockA doesnt fit to water, should avoid it
\n

385 ↗(On Diff #6308)

This one needs more retries, because it choses a random point on the map and its unlikely that its near the cataract. (An alternative would be to create an area around the passage and then use createObjectGroupsByAreas, but that doesn't seem worth the lines of code)

lyv updated this revision to Diff 6321.Apr 5 2018, 2:17 PM
Vulcan added a comment.Apr 5 2018, 3:02 PM

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Default...
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 124| 124| 	"landFunc": (position, shoreDist1, shoreDist2) => {
| 125| 125| 		for (let riv of riverTextures)
| 126| 126| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 127|    |-				{
|    | 127|+			{
| 128| 128| 					riv.tileClass.add(position);
| 129| 129| 					if (riv.terrain)
| 130| 130| 						createTerrain(riv.terrain).place(position);
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 4 tabs but found 5.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 125| 125| 		for (let riv of riverTextures)
| 126| 126| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 127| 127| 				{
| 128|    |-					riv.tileClass.add(position);
|    | 128|+				riv.tileClass.add(position);
| 129| 129| 					if (riv.terrain)
| 130| 130| 						createTerrain(riv.terrain).place(position);
| 131| 131| 				}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 4 tabs but found 5.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 126| 126| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 127| 127| 				{
| 128| 128| 					riv.tileClass.add(position);
| 129|    |-					if (riv.terrain)
|    | 129|+				if (riv.terrain)
| 130| 130| 						createTerrain(riv.terrain).place(position);
| 131| 131| 				}
| 132| 132| 	}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 127| 127| 				{
| 128| 128| 					riv.tileClass.add(position);
| 129| 129| 					if (riv.terrain)
| 130|    |-						createTerrain(riv.terrain).place(position);
|    | 130|+					createTerrain(riv.terrain).place(position);
| 131| 131| 				}
| 132| 132| 	}
| 133| 133| });
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 128| 128| 					riv.tileClass.add(position);
| 129| 129| 					if (riv.terrain)
| 130| 130| 						createTerrain(riv.terrain).place(position);
| 131|    |-				}
|    | 131|+			}
| 132| 132| 	}
| 133| 133| });
| 134| 134| Engine.SetProgress(10);
|    | [NORMAL] ESLintBear (semi):
|    | Missing semicolon.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 168| 168| 		undefined,
| 169| 169| 		scaleByMapSize(20, 50),
| 170| 170| 		20,
| 171|    |-		[areaPassage])
|    | 171|+		[areaPassage]);
| 172| 172| }
| 173| 173| 
| 174| 174| var [playerIDs, playerPosition] = playerPlacementRandom(sortAllPlayers(), avoidClasses(clRiver, 15, clPlayer, 30));

binaries/data/mods/public/maps/random/fields_of_meroe.js
| 171| »   »   [areaPassage])
|    | [NORMAL] JSHintBear:
|    | Missing semicolon.

Link to build: https://jenkins.wildfiregames.com/job/differential/345/display/redirect

elexis added inline comments.Apr 5 2018, 6:53 PM
binaries/data/mods/public/maps/random/fields_of_meroe.js
288 ↗(On Diff #6321)

This calls the officially Deprecated function which is bugged and places too few mines. See #4695.

lyv updated this revision to Diff 6324.Apr 6 2018, 2:44 PM
Vulcan added a comment.Apr 6 2018, 2:49 PM

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Default...
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 123| 123| 	"landFunc": (position, shoreDist1, shoreDist2) => {
| 124| 124| 		for (let riv of riverTextures)
| 125| 125| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 126|    |-				{
|    | 126|+			{
| 127| 127| 					riv.tileClass.add(position);
| 128| 128| 					if (riv.terrain)
| 129| 129| 						createTerrain(riv.terrain).place(position);
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 4 tabs but found 5.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 124| 124| 		for (let riv of riverTextures)
| 125| 125| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 126| 126| 				{
| 127|    |-					riv.tileClass.add(position);
|    | 127|+				riv.tileClass.add(position);
| 128| 128| 					if (riv.terrain)
| 129| 129| 						createTerrain(riv.terrain).place(position);
| 130| 130| 				}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 4 tabs but found 5.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 125| 125| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 126| 126| 				{
| 127| 127| 					riv.tileClass.add(position);
| 128|    |-					if (riv.terrain)
|    | 128|+				if (riv.terrain)
| 129| 129| 						createTerrain(riv.terrain).place(position);
| 130| 130| 				}
| 131| 131| 	}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 126| 126| 				{
| 127| 127| 					riv.tileClass.add(position);
| 128| 128| 					if (riv.terrain)
| 129|    |-						createTerrain(riv.terrain).place(position);
|    | 129|+					createTerrain(riv.terrain).place(position);
| 130| 130| 				}
| 131| 131| 	}
| 132| 132| });
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 127| 127| 					riv.tileClass.add(position);
| 128| 128| 					if (riv.terrain)
| 129| 129| 						createTerrain(riv.terrain).place(position);
| 130|    |-				}
|    | 130|+			}
| 131| 131| 	}
| 132| 132| });
| 133| 133| Engine.SetProgress(10);
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 145| 145| 		"tileClass": clCataract,
| 146| 146| 		"startHeight": heightCataract,
| 147| 147| 		"endHeight": heightCataract,
| 148|    |-		"constraints": new HeightConstraint(-Infinity, 0)});
|    | 148|+		"constraints": new HeightConstraint(-Infinity, 0) });
| 149| 149| 
| 150| 150| 	createAreasInAreas(
| 151| 151| 		new ClumpPlacer(4, 0.4, 0.6),
|    | [NORMAL] ESLintBear (semi):
|    | Missing semicolon.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 161| 161| 		undefined,
| 162| 162| 		scaleByMapSize(20, 50),
| 163| 163| 		50,
| 164|    |-		[areaPassage])
|    | 164|+		[areaPassage]);
| 165| 165| }
| 166| 166| 
| 167| 167| var [playerIDs, playerPosition] = playerPlacementRandom(sortAllPlayers(), avoidClasses(clRiver, 15, clPlayer, 30));

binaries/data/mods/public/maps/random/fields_of_meroe.js
| 164| »   »   [areaPassage])
|    | [NORMAL] JSHintBear:
|    | Missing semicolon.

Link to build: https://jenkins.wildfiregames.com/job/differential/347/display/redirect

lyv updated this revision to Diff 6325.Apr 6 2018, 4:21 PM
Vulcan added a comment.Apr 6 2018, 4:25 PM

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Default...
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 123| 123| 	"landFunc": (position, shoreDist1, shoreDist2) => {
| 124| 124| 		for (let riv of riverTextures)
| 125| 125| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 126|    |-				{
|    | 126|+			{
| 127| 127| 					riv.tileClass.add(position);
| 128| 128| 					if (riv.terrain)
| 129| 129| 						createTerrain(riv.terrain).place(position);
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 4 tabs but found 5.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 124| 124| 		for (let riv of riverTextures)
| 125| 125| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 126| 126| 				{
| 127|    |-					riv.tileClass.add(position);
|    | 127|+				riv.tileClass.add(position);
| 128| 128| 					if (riv.terrain)
| 129| 129| 						createTerrain(riv.terrain).place(position);
| 130| 130| 				}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 4 tabs but found 5.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 125| 125| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 126| 126| 				{
| 127| 127| 					riv.tileClass.add(position);
| 128|    |-					if (riv.terrain)
|    | 128|+				if (riv.terrain)
| 129| 129| 						createTerrain(riv.terrain).place(position);
| 130| 130| 				}
| 131| 131| 	}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 126| 126| 				{
| 127| 127| 					riv.tileClass.add(position);
| 128| 128| 					if (riv.terrain)
| 129|    |-						createTerrain(riv.terrain).place(position);
|    | 129|+					createTerrain(riv.terrain).place(position);
| 130| 130| 				}
| 131| 131| 	}
| 132| 132| });
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 127| 127| 					riv.tileClass.add(position);
| 128| 128| 					if (riv.terrain)
| 129| 129| 						createTerrain(riv.terrain).place(position);
| 130|    |-				}
|    | 130|+			}
| 131| 131| 	}
| 132| 132| });
| 133| 133| Engine.SetProgress(10);
|    | [NORMAL] ESLintBear (object-curly-spacing):
|    | A space is required before '}'.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 145| 145| 		"tileClass": clCataract,
| 146| 146| 		"startHeight": heightCataract,
| 147| 147| 		"endHeight": heightCataract,
| 148|    |-		"constraints": new HeightConstraint(-Infinity, 0)});
|    | 148|+		"constraints": new HeightConstraint(-Infinity, 0) });
| 149| 149| 
| 150| 150| 	createAreasInAreas(
| 151| 151| 		new ClumpPlacer(4, 0.4, 0.6),
|    | [NORMAL] ESLintBear (semi):
|    | Missing semicolon.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 161| 161| 		undefined,
| 162| 162| 		scaleByMapSize(20, 50),
| 163| 163| 		50,
| 164|    |-		[areaPassage])
|    | 164|+		[areaPassage]);
| 165| 165| }
| 166| 166| 
| 167| 167| var [playerIDs, playerPosition] = playerPlacementRandom(sortAllPlayers(), avoidClasses(clRiver, 15, clPlayer, 30));

binaries/data/mods/public/maps/random/fields_of_meroe.js
| 164| »   »   [areaPassage])
|    | [NORMAL] JSHintBear:
|    | Missing semicolon.

Link to build: https://jenkins.wildfiregames.com/job/differential/348/display/redirect

Now there is the createPassage call again.

lyv updated this revision to Diff 6340.Apr 7 2018, 1:18 PM
Vulcan added a comment.Apr 7 2018, 1:22 PM

Successful build - Chance fights ever on the side of the prudent.

Linter detected issues:
Executing section Default...
Executing section Source...
Executing section JS...
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 124| 124| 	"landFunc": (position, shoreDist1, shoreDist2) => {
| 125| 125| 		for (let riv of riverTextures)
| 126| 126| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 127|    |-				{
|    | 127|+			{
| 128| 128| 					riv.tileClass.add(position);
| 129| 129| 					if (riv.terrain)
| 130| 130| 						createTerrain(riv.terrain).place(position);
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 4 tabs but found 5.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 125| 125| 		for (let riv of riverTextures)
| 126| 126| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 127| 127| 				{
| 128|    |-					riv.tileClass.add(position);
|    | 128|+				riv.tileClass.add(position);
| 129| 129| 					if (riv.terrain)
| 130| 130| 						createTerrain(riv.terrain).place(position);
| 131| 131| 				}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 4 tabs but found 5.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 126| 126| 			if (riv.left < +shoreDist1 && +shoreDist1 < riv.right || riv.left < -shoreDist2 && -shoreDist2 < riv.right)
| 127| 127| 				{
| 128| 128| 					riv.tileClass.add(position);
| 129|    |-					if (riv.terrain)
|    | 129|+				if (riv.terrain)
| 130| 130| 						createTerrain(riv.terrain).place(position);
| 131| 131| 				}
| 132| 132| 	}
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 5 tabs but found 6.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 127| 127| 				{
| 128| 128| 					riv.tileClass.add(position);
| 129| 129| 					if (riv.terrain)
| 130|    |-						createTerrain(riv.terrain).place(position);
|    | 130|+					createTerrain(riv.terrain).place(position);
| 131| 131| 				}
| 132| 132| 	}
| 133| 133| });
|    | [NORMAL] ESLintBear (indent):
|    | Expected indentation of 3 tabs but found 4.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 128| 128| 					riv.tileClass.add(position);
| 129| 129| 					if (riv.terrain)
| 130| 130| 						createTerrain(riv.terrain).place(position);
| 131|    |-				}
|    | 131|+			}
| 132| 132| 	}
| 133| 133| });
| 134| 134| Engine.SetProgress(10);
|    | [NORMAL] ESLintBear (semi):
|    | Missing semicolon.
|----|    | /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
|    |++++| /mnt/data/jenkins-phabricator/workspace/differential/binaries/data/mods/public/maps/random/fields_of_meroe.js
| 168| 168| 		undefined,
| 169| 169| 		scaleByMapSize(20, 50),
| 170| 170| 		20,
| 171|    |-		[areaPassage])
|    | 171|+		[areaPassage]);
| 172| 172| }
| 173| 173| 
| 174| 174| var [playerIDs, playerPosition] = playerPlacementRandom(sortAllPlayers(), avoidClasses(clRiver, 15, clPlayer, 30));

binaries/data/mods/public/maps/random/fields_of_meroe.js
| 171| »   »   [areaPassage])
|    | [NORMAL] JSHintBear:
|    | Missing semicolon.

Link to build: https://jenkins.wildfiregames.com/job/differential/358/display/redirect

elexis accepted this revision.Apr 9 2018, 2:11 PM

Thanks (-_-)

binaries/data/mods/public/maps/random/fields_of_meroe.js
152 ↗(On Diff #6340)

keeping this

158 ↗(On Diff #6340)

should add a positive failFraction, because on tiny map sometimes all tries fail

250 ↗(On Diff #6340)

keep this print

291 ↗(On Diff #6340)

metal wasnt placed yet

317 ↗(On Diff #6340)

clMetal, 15

322 ↗(On Diff #6340)

animals dont ignore mines

This revision is now accepted and ready to land.Apr 9 2018, 2:11 PM
This revision was automatically updated to reflect the committed changes.