tile content iterator with runstate tweak - returns optional runstate
This commit is contained in:
parent
012d61603a
commit
76cc6a6938
4 changed files with 12 additions and 12 deletions
|
|
@ -51,9 +51,9 @@ pub fn tile_opaque(tt: TileType) -> bool {
|
|||
|
||||
pub fn tile_cost(tt: TileType) -> f32 {
|
||||
match tt {
|
||||
TileType::Road => 0.8,
|
||||
TileType::Road => 0.5,
|
||||
TileType::Grass => 1.1,
|
||||
TileType::ShallowWater => 1.2,
|
||||
TileType::ShallowWater => 1.3,
|
||||
_ => 1.0,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue