| [Freeciv-Dev] (PR#18825) Bug in ruleset file loading[Top] [All Lists][Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
 
| Subject: | [Freeciv-Dev] (PR#18825) Bug in ruleset file loading |  
| From: | "Marko Lindqvist" <cazfi74@xxxxxxxxx> |  
| Date: | Sat, 22 Jul 2006 12:06:22 -0700 |  
| Reply-to: | bugs@xxxxxxxxxxx |  
 
<URL: http://bugs.freeciv.org/Ticket/Display.html?id=18825 >
  Simply adding entries to ruleset causes autogame to differ.
  I have applied only ruleset changes from #18726 without any code 
changes and attached autogame differs between years 1 and 500. Change to 
ruleset is only adding min_speed entries to unit classes.
  This was with revision 12145.
  - ML
 set savename hardReg
set timeout -1
hard
create Uber
#normal
create Cazfi
#novice
create Me
#easy
create Friendo
set aifill 10
set saveturns 25
set endyear 2200
set startunits c
set generator 5
#normal
set gameseed  1101920552
set mapseed   1723760976
set gamelog   30
start
 diff -Nurd -X.diff_ignore freeciv/data/default/units.ruleset 
freeciv/data/default/units.ruleset
--- freeciv/data/default/units.ruleset  2006-07-22 12:42:19.671875000 +0300
+++ freeciv/data/default/units.ruleset  2006-07-22 21:07:04.718750000 +0300
@@ -59,6 +59,7 @@
 ; name          = Name as used in other rulesets
 ; move_type     = Where unit moves; Land, Sea, Both or Air. Air is special 
value for
 ;                 units which can only be attacked by units with "Fighter" flag
+; min_speed     = Minimum speed after damage and effects
 ; hp_loss_pct   = Hitpoints lost each turn if unit not in city or airbase
 ; flags         = List of unit class flags
 ;
@@ -73,30 +74,35 @@
 [unitclass_missile]
 name          = _("Missile")
 move_type     = "Air"
+min_speed     = 1
 hp_loss_pct   = 0
 flags         = "Missile"
 
 [unitclass_land]
 name          = _("Land")
 move_type     = "Land"
+min_speed     = 1
 hp_loss_pct   = 0
 flags         = "TerrainSpeed", "DamageSlows", "CanOccupy"
 
 [unitclass_sea]
 name          = _("Sea")
 move_type     = "Sea"
+min_speed     = 2
 hp_loss_pct   = 0
 flags         = "TerrainSpeed", "DamageSlows"
 
 [unitclass_heli]
 name          = _("Helicopter")
 move_type     = "Both"
+min_speed     = 1
 hp_loss_pct   = 10
 flags         = "CanOccupy"
 
 [unitclass_air]
 name          = _("Air")
 move_type     = "Air"
+min_speed     = 1
 hp_loss_pct   = 0
 flags         = ""
 
 
| [Prev in Thread] | Current Thread | [Next in Thread] |  
[Freeciv-Dev] (PR#18825) Bug in ruleset file loading,
Marko Lindqvist <=
 
 |  |