FlavorType (Civ5 Type)

From Civilization Modding Wiki
Jump to navigationJump to search

This page is a part of the Lua and UI Reference (Civ5).


ID.png The FlavorType pseudo-type is actually a regular integer. Pseudo-types do not exist in Lua, they only serve a documentation purpose on the wiki!
  • DB.png Integers labeled as FlavorType corresponds to the ID column of the Flavors XML table.


XML: the Flavors table

Here are the ID and Type columns found in this table.

ID Type
0 FLAVOR_OFFENSE
1 FLAVOR_DEFENSE
2 FLAVOR_CITY_DEFENSE
3 FLAVOR_MILITARY_TRAINING
4 FLAVOR_RECON
5 FLAVOR_RANGED
6 FLAVOR_MOBILE
7 FLAVOR_NAVAL
8 FLAVOR_NAVAL_RECON
9 FLAVOR_NAVAL_GROWTH
10 FLAVOR_NAVAL_TILE_IMPROVEMENT
11 FLAVOR_AIR
12 FLAVOR_EXPANSION
13 FLAVOR_GROWTH
14 FLAVOR_TILE_IMPROVEMENT
15 FLAVOR_INFRASTRUCTURE
16 FLAVOR_PRODUCTION
17 FLAVOR_GOLD
18 FLAVOR_SCIENCE
19 FLAVOR_CULTURE
20 FLAVOR_HAPPINESS
21 FLAVOR_GREAT_PEOPLE
22 FLAVOR_WONDER
23 FLAVOR_RELIGION
24 FLAVOR_DIPLOMACY
25 FLAVOR_SPACESHIP
26 FLAVOR_WATER_CONNECTION
27 FLAVOR_NUKE
28 FLAVOR_ANTIAIR
29 FLAVOR_USE_NUKE
30 FLAVOR_ESPIONAGE
31 FLAVOR_AIR_CARRIER


Examples

Used by

int Unit:FlavorValue(FlavorType flavor)



The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.