Skip to content

Add upon gifting unit to City-State trigger - #15358

Open
Fanfblrik wants to merge 3 commits into
yairm210:masterfrom
Fanfblrik:feature/stat-gift-to-city-state
Open

Add upon gifting unit to City-State trigger#15358
Fanfblrik wants to merge 3 commits into
yairm210:masterfrom
Fanfblrik:feature/stat-gift-to-city-state

Conversation

@Fanfblrik

@Fanfblrik Fanfblrik commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Engine support for RekMOD Sweden (Nobel Prize: Gold when gifting a Great Person to a City-State).
  • New trigger: upon gifting a [mapUnitFilter] unit to a City-State.
  • Fired from the City-State gift action (before destroy/gift).
  • Compose as Gain [200] [Gold] <upon gifting a [Great Person] unit to a City-State>.
  • Non-military units matching such a trigger are giftable to City-States (same allowance path as the Influence gift unique).
  • Existing Influence gift unique left as-is.

Test plan

  • Civ with Gold gift trigger: gift GP to CS → +200 Gold; Influence gift unique still applies if present.
  • Without matching filter: no Gold from this trigger.
  • Military gift path unchanged.

Enables Sweden Nobel Prize Gold (and other civ-wide stats) when gifting Great People to City-States.

Co-authored-by: Cursor <cursoragent@cursor.com>
@yairm210

Copy link
Copy Markdown
Owner

Why?

Compose Gain [stat] with upon gifting a [mapUnitFilter] unit to a City-State instead of a dedicated UniqueType.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Fanfblrik Fanfblrik changed the title Add Gain [stat] with unit gift to City-State unique Add upon gifting unit to City-State trigger Aug 10, 2026
@Fanfblrik

Copy link
Copy Markdown
Contributor Author

Good catch — a dedicated gift-stat UniqueType was the wrong shape. Replaced with trigger upon gifting a [mapUnitFilter] unit to a City-State, so Sweden is Gain [200] [Gold] <upon gifting a [Great Person] unit to a City-State>. Existing Influence gift unique left as-is for now.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Fanfblrik

Copy link
Copy Markdown
Contributor Author

Clarifying motivation: this is for RekMOD Sweden (Nobel Prize — Gold on Great Person gift to a City-State). The trigger shape lets that nation UA compose on existing Gain [stat] without a one-off gift UniqueType.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants