JFD
Kathigitarkh
I'd like to request a few things in order to improve the stability of my ExCE mod (which I'll be working on for CBP compatibility as a bribe ) - hopefully they're feasible.
Would it be possible to add an "AdjacentSpawnLocationUnitFreePromotion" to the Terrains and Features table. This would allow a promotion to be added to units that spawn adjacent to a specific terrain or feature, and to add "SpawnLocationUnitFreePromotion" to the Features table (good for Marsh or Flood Plains, for me).
And would it be possible to add a way to negate the "LocationUnitFreePromotion", such as with another promotion? To put it anecdotally, in ExCE, ocean terrain affords the Scurvy Promotion (I want information displayed as to the risks, hence I don't just use TerrainTurnDamage). However, there is a corresponding Scurvy Immunity promotion that is intended to remove the Scurvy Promotion. So could you add a "LocationUniFreePromotionNegatingPromotion" column or something along those lines? So that if the unit has that promotion and enters a terrain/feature with an applicable LocationUniFreePromotion, the free promotion from that column is not applied (or removed if it is on the unit; though this is less needed for me, as that can be handled with less strenuous Lua). Incidentally, does "LocationUnitFreePromotion" obey Promotion_UnitCombat rules?
Finally, would it be possible to make it so that embarked units are affected by LocationUnitFreePromotion? Though it'd only be needed for me if the above can be done somehow.
Thanks for anything you can help with.
EDIT: One more: is there any way to allow Game.GetGreatWorkTooltip(greatWorkIndex, playerID) to be intercepted? To support Whowards GreatWorkYieldTypes component.
In case it's worth something to you, player:GetBuildingOfClosestGreatWorkSlot(iX, iY, iGreatWorkSlotType) seems to exist
Would it be possible to add an "AdjacentSpawnLocationUnitFreePromotion" to the Terrains and Features table. This would allow a promotion to be added to units that spawn adjacent to a specific terrain or feature, and to add "SpawnLocationUnitFreePromotion" to the Features table (good for Marsh or Flood Plains, for me).
And would it be possible to add a way to negate the "LocationUnitFreePromotion", such as with another promotion? To put it anecdotally, in ExCE, ocean terrain affords the Scurvy Promotion (I want information displayed as to the risks, hence I don't just use TerrainTurnDamage). However, there is a corresponding Scurvy Immunity promotion that is intended to remove the Scurvy Promotion. So could you add a "LocationUniFreePromotionNegatingPromotion" column or something along those lines? So that if the unit has that promotion and enters a terrain/feature with an applicable LocationUniFreePromotion, the free promotion from that column is not applied (or removed if it is on the unit; though this is less needed for me, as that can be handled with less strenuous Lua). Incidentally, does "LocationUnitFreePromotion" obey Promotion_UnitCombat rules?
Finally, would it be possible to make it so that embarked units are affected by LocationUnitFreePromotion? Though it'd only be needed for me if the above can be done somehow.
Thanks for anything you can help with.
EDIT: One more: is there any way to allow Game.GetGreatWorkTooltip(greatWorkIndex, playerID) to be intercepted? To support Whowards GreatWorkYieldTypes component.
Better yet:
pPlayer:GetCityOfClosestGreatWorkSlot(iX, iY, iGreatWorkSlotType)
iGreatWorkSlotType being something like GameInfoTypes.GREAT_WORK_SLOT_ART_ARTIFACT. Note that if there are no open slots of the specified iGreatWorkSlotType available, the function returns nil.
In case it's worth something to you, player:GetBuildingOfClosestGreatWorkSlot(iX, iY, iGreatWorkSlotType) seems to exist