Ethiopian trait bug

Thalassicus

Bytes and Nibblers
Joined
Nov 9, 2005
Messages
11,057
Location
Texas
In the game core, IsLargerCivThan and IsHigherTechThan are methods of the CvUnit class. The game attempts to use these in EnemyUnitPanel.lua for function UpdateCombatOddsCityVsUnit. This causes errors because cities are not units.

The possible solutions are:
  • If the Ethiopian trait is intended to work for all combat situations, move IsLargerCivThan and IsHigherTechThan to be methods of the CvPlayer class.
  • Change the Ethiopian trait to specify it only works for unit-vs-unit battles, and remove calls to these functions from the UpdateCombatOddsCityVsUnit in EnemyUnitPanel.lua.
 
Back
Top Bottom