Support for configuring minimal cost for moving between tiles
- Added `movementCostBase` parameter to game config that defines minimal
amount of movement points that will be spent when moving from one tile
on another while offroad (and cost of Fly / Town Portal spells)
- Added `BASE_TILE_MOVEMENT_COST` bonus type that allows modifying
`movementCostBase` on per-hero basis
Example usage for hota-like pathfinding skill
```json
"tileCostReduction" : {
"type" : "BASE_TILE_MOVEMENT_COST",
"val" : -15
}
```
This commit is contained in:
1 parent
b36f5e4026
commit
ec970c7b22
18 files changed
+80
-37
No files matched your search
+1
-1
@@ -84,6 +84,6 @@ RoadType::RoadType():
|
||||
id(Road::NO_ROAD),
|
||||
identifier("empty"),
|
||||
modScope("core"),
|
||||
movementCost(GameConstants::BASE_MOVEMENT_COST)
|
||||
movementCost(0)
|
||||
{}
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
Reference in new issue
Block a user