Home › Enums › YieldTypes

Available out of the box. Usable from Lua in the unmodified game.

YieldTypes

Lua constant table YieldTypes. Engine enum: GameCore::YieldTypes.

The table name and the Lua key column come from the Civilization VI Modding Companion (ChimpanG, expanded and maintained by WildW). The engine names and values come from the game library's debug info. Every member the Companion lists has the same value in the engine enum, which is how the two were matched.

6 of 14 engine members are listed by the Companion. The others exist in the engine, but we do not know whether Lua exposes them, so use the Lua key column as the safe set.

Lua key Engine name Value
not listed NO_YIELD -1
FOOD OLD_YIELD_FOOD 0
PRODUCTION OLD_YIELD_PRODUCTION 1
GOLD OLD_YIELD_GOLD 2
SCIENCE OLD_YIELD_SCIENCE 3
CULTURE OLD_YIELD_CULTURE 4
FAITH OLD_YIELD_FAITH 5
not listed OLD_NUM_YIELD_TYPES 6
not listed HASH_YIELD_FOOD 619730924
not listed HASH_YIELD_PRODUCTION -1155936758
not listed HASH_YIELD_GOLD -1218354358
not listed HASH_YIELD_SCIENCE 981596331
not listed HASH_YIELD_CULTURE -348170776
not listed HASH_YIELD_FAITH 2131725942