[GS] I am trying to make a unit ability and district adjacent bonus with lua

Unbaraki

Chieftain
Joined
Apr 8, 2019
Messages
9
I am trying to make a melee unit with an great penalty and an great advantage. With royalty penalty to city within 2 tiles radius and be invincible when it attacks.

I managed to have it penalty, but I can't find right Lua hook to make it invincible. Is there any hook let you know unit is hit or attacks?


And I am making Harbor has +2 culture adjacent bonus to City center and Commercial hub adjacent to river gives you +2 bonus, Commercial hub was easy, But I can't find right modifier for Harbor. I thought about doing with Lua, bonus gonna be hard to notice the number.

So I made a new Harbor that had +2 adjacent bonus, but then, Making new Harbor gave you Era score

Is there any modifier to make Harbor to get new bonus or Unique district can't have Era score?
 
Top Bottom