diff options
| author | Robert Heinrich | 2012-04-22 20:25:10 +0200 |
|---|---|---|
| committer | Robert Heinrich | 2012-04-22 20:25:10 +0200 |
| commit | 760bc8b09f55413873a611a5c5f86344476f479a (patch) | |
| tree | 84fc72d1aac1f92987099f8e79de74b7fcef36d7 /plugins/regrass.cpp | |
| parent | af12e83ac46adc3b455c2a2ccfe8eeba9ec9841a (diff) | |
| download | dfhack-760bc8b09f55413873a611a5c5f86344476f479a.tar.gz dfhack-760bc8b09f55413873a611a5c5f86344476f479a.tar.bz2 dfhack-760bc8b09f55413873a611a5c5f86344476f479a.tar.xz | |
regrass: ignore furrowed tiles (dirt roads)
Diffstat (limited to 'plugins/regrass.cpp')
| -rw-r--r-- | plugins/regrass.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/regrass.cpp b/plugins/regrass.cpp index dec091a9..64aa3a47 100644 --- a/plugins/regrass.cpp +++ b/plugins/regrass.cpp @@ -86,6 +86,10 @@ command_result df_regrass (color_ostream &out, vector <string> & parameters) || cur->occupancy[x][y].bits.building) continue; + // don't touch furrowed tiles (dirt roads made on soil) + if(tileSpecial(cur->tiletype[x][y]) == tiletype_special::FURROWED) + continue; + int mat = tileMaterial(cur->tiletype[x][y]); if ( mat != tiletype_material::SOIL && mat != tiletype_material::GRASS_DARK // refill existing grass, too @@ -93,6 +97,7 @@ command_result df_regrass (color_ostream &out, vector <string> & parameters) ) continue; + // max = set amounts of all grass events on that tile to 100 if(max) { |
