Resource icon

[XML+Python] Celebrity Promotion 2016-10-05

The celebrity promotion allows a unit to increase the happiness of a city by 1 :), when it's stationed in it.

All changes are labeled with "celebrity", it has 3 parts.
Part 1: Changes the :) in the city depending on the promotion, and teaches the AI in an simple way, that the unit has to stay for a moment in a city, when the city is unhappy.
Part 2: AI changes, so that the promotion will maybe be applied, when the unit is promoted in an unhappy city.
Part 3: Changes city happiness directly after promoting.

Small bug (can't be changed): Airlifting a unit with the promotion will not affect the city which airlifts, and the city where the unit arrives.


This modcomp was originally requested by cfkane for his Fictionalization IV Mod.

The button is from ohcrapitsnico, from this button pack.

Edit: Re-uploaded on September, 23th, 5:50 PM forum time.
- Fixed a bug, which could lead to an invalid promoting order for the AI.
- Fixed a bug, which could maybe have lead to OOS problems in multiplayer. Credits for finding both bugs go to EmperorFool
- Added a new button by hrochland

Re-uploaded on October, 9th 2009, 5:21 PM forum time.
- Fixed the typo, which was mentioned by SaibotLieh
- Fixed the bug, that happiness would not be applied to a city, when a unit was build, which had the celebrity promotion as initial promotion.

Re-uploaded on October, 22nd 2012, 16:23 forum time
- Fixed the bug that happiness was not substracted when a unit with the promotion was killed inside a city (new part in CvEventManager, marked as part #5)
- Fixed the bug that happiness was not substracted when units with the promotion were moved outside the city within a transport (change inside part #1)

Thanks to platyping for both hints :).
  • celebritypromotion_vh0.jpg
    celebritypromotion_vh0.jpg
    93.7 KB · Views: 114
Author
The_J
Downloads
420
Views
420
First release
Last update

Ratings

4.00 star(s) 4 ratings

More resources from The_J

Back
Top Bottom