How add a ranged attack to district?

Mtgkuvalda

Chieftain
Joined
Apr 22, 2018
Messages
53
I reworking lavra and want to add ranged attack, like in encampment and oppidium. I tried to transfer this property of the oppidium and failed: lavra only got hit points and armor from the walls, but can't shoot. The only difference between the oppidium and encampment from other areas I found in these lines:
<PlunderType>NO_PLUNDER</PlunderType>
<ZOC>true</ZOC>
<HitPoints>100</HitPoints>
<CaptureRemovesBuildings>true</CaptureRemovesBuildings>

I didn't find the function responsible for ranged attack anywhere. Do you know where it can be found?
 
I found it! It turns out that they wrote a separate line for XP2 for the oppidum:
<Districts_XP2>
<Row DistrictType="DISTRICT_OPPIDUM" AttackRange="2"/>
</Districts_XP2>

Strange, since this ability does not seem to relate to the properties of this add-on in any way. In addition, in NFP, they seemed to try to optimize expansions for all add-ons and vanilla separately.
 
Back
Top Bottom