This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

patch to russian-rev: more railroads


Any comments on the enclosed patch?  I'm not sure it fully solves the
problem of trains not being good for much, but it seems to help.

2002-01-30  Jim Kingdon  <kingdon@panix.com>

	    * lib/russian-rev.g: Increase the number of railroads.
	    * lib/game.dir: Add russian-rev.

Index: lib/game.dir
===================================================================
RCS file: /cvs/xconq/xconq/lib/game.dir,v
retrieving revision 1.6
diff -u -r1.6 game.dir
--- game.dir	2000/11/22 16:36:16	1.6
+++ game.dir	2002/01/30 21:45:22
@@ -47,6 +47,7 @@
 "red-october"
 "rom-civ-war"
 "roman"
+"russian-rev"
 "space"
 "standard"
 "steppes"
Index: lib/russian-rev.g
===================================================================
RCS file: /cvs/xconq/xconq/lib/russian-rev.g,v
retrieving revision 1.5
diff -u -r1.5 russian-rev.g
--- russian-rev.g	2001/09/20 01:50:05	1.5
+++ russian-rev.g	2002/01/30 21:45:23
@@ -15,6 +15,15 @@
         (add swamp alt-percentile-max 23)
         (add (desert plains forest) alt-percentile-min 21)
         ))
+    ("Mostly Sea" mostly-sea
+      (true
+        (add sea alt-percentile-max 68)
+        (add shallows alt-percentile-min 68)
+        (add shallows alt-percentile-max 69)
+        (add swamp alt-percentile-min 69)
+        (add swamp alt-percentile-max 71)
+        (add (desert plains forest) alt-percentile-min 70)
+        ))
     ("All Land" all-land
       (true
         (add sea alt-percentile-max 1)
@@ -77,6 +86,29 @@
 (add road name "railway")
 (add road image-name "railroad")
 (define railway road)
+
+;; The balance between sea and land is a delicate one: Too much land
+;; and fleets become useless; too much sea and railroads become useless.
+(add cell-t* alt-percentile-min (  0  50  51  52  52  52  93  99))
+(add cell-t* alt-percentile-max ( 50  51  53  93  93  93  99 100))
+;; Increase the number of railroads (stdterr by itself will give us
+;; only a bare minimum).
+(table road-chance
+  (city (town city) (80 100))
+  (town (town city) ( 2   5))
+  )
+;; Probably road-to-edge-chance should be a probfraction (e.g. 200 =
+;; two roads from each town to some edge), but for now it is just a
+;; probability.
+(add (town city) road-to-edge-chance 100)
+(set edge-road-density 10000)
+;; Nearly all towns should be connected by road to
+;; somewhere else.
+(add town spur-chance 90)
+(add town spur-range 2)
+(table road-into-chance add
+  ;; We would like long rail lines which extend to most land areas.
+  (plains (desert forest mountains) (80 70 60)))
 
 (define cities (* @))
 (define places (/ * @))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]