Menu

#127 Add a tag to allow units to ignore terrainimpassable tags when within their own borders

Future
open
nobody
None
5
2013-10-18
2013-06-27
Phil Hall
No

request from MagisterCultuum:

Could you make a tag (maybe called <bownborderspassable>) that allows units with <terrainimpassables> andFeatureImpassables> to still be able to pass through those normally impassable features and terrains so long as they are within the owner's (teams') cultural borders?</terrainimpassables></bownborderspassable>

Currently CvUnit.cpp's bool CvUnit::canMoveInto(const CvPlot* pPlot, bool bAttack, bool bDeclareWar, bool bIgnoreLoad) const checks if (DOMAIN_SEA != getDomainType() || pPlot->getTeam() != getTeam()) to allow things like workboats and galley's to cross oceans within cultural borders. If it checked for this tag rather than for DOMAIN_SEA, then I could let Balors and the Seven Demon Lords freely move in their own territory but never be able to leave hell terrain otherwise.

Discussion

  • Phil Hall

    Phil Hall - 2013-06-27

    <terrainimpassables> and <featureimpassables></featureimpassables></terrainimpassables>

     
  • Phil Hall

    Phil Hall - 2013-06-27

    TerrainImpassables and FeatureImpassables

     
  • Phil Hall

    Phil Hall - 2013-10-18
    • Group: Version 2.51 --> Future
     

Log in to post a comment.

MongoDB Logo MongoDB