MODで新しく特殊効果を出すためにModifierを追加するには
数多くの項目を追加する必要が出てくる
INSERT INTO Types (Type, Kind) VALUES ('TRAIT_GRASS_FOOD', 'KIND_TRAIT') ; INSERT INTO Traits (TraitType, Name, Description) VALUES ('TRAIT_GRASS_FOOD', 'LOC_TRAIT_GRASS_FOOD_NAME', 'LOC_TRAIT_GRASS_FOOD_DESCRIPTION') ; INSERT INTO CivilizationTraits (CivilizationType, TraitType) VALUES ('CIVILIZATION_JAPAN', 'TRAIT_GRASS_FOOD') ; INSERT INTO Modifiers (ModifierId, ModifierType, SubjectRequirementSetId) VALUES ('TRAIT_INCREASED_GRASS_FOOD', 'MODIFIER_PLAYER_ADJUST_PLOT_YIELD', 'PLOT_HAS_GRASS_REQUIREMENTS') ; INSERT INTO ModifierArguments (ModifierId, Name, Value) VALUES ('TRAIT_INCREASED_GRASS_FOOD', 'YieldType', 'YIELD_FOOD') , ('TRAIT_INCREASED_GRASS_FOOD', 'Amount', 1) ; INSERT INTO TraitModifiers (TraitType, ModifierId) VALUES ('TRAIT_GRASS_FOOD', 'TRAIT_INCREASED_GRASS_FOOD') ; INSERT INTO RequirementSets (RequirementSetId, RequirementSetType) VALUES ('PLOT_HAS_GRASS_REQUIREMENTS', 'REQUIREMENTSET_TEST_ANY') ; INSERT INTO RequirementSetRequirements (RequirementSetId, RequirementId) VALUES ('PLOT_HAS_GRASS_REQUIREMENTS', 'REQUIRES_PLOT_HAS_GRASS') , ('PLOT_HAS_GRASS_REQUIREMENTS', 'REQUIRES_PLOT_HAS_GRASS_HILLS') ; INSERT INTO Requirements (RequirementId, RequirementType) VALUES ('REQUIRES_PLOT_HAS_GRASS', 'REQUIREMENT_PLOT_TERRAIN_TYPE_MATCHES') , ('REQUIRES_PLOT_HAS_GRASS_HILLS', 'REQUIREMENT_PLOT_TERRAIN_TYPE_MATCHES') ; INSERT INTO RequirementArguments (RequirementId, Name, Value) VALUES ('REQUIRES_PLOT_HAS_GRASS', 'TerrainType', 'TERRAIN_GRASS') , ('REQUIRES_PLOT_HAS_GRASS_HILLS', 'TerrainType', 'TERRAIN_GRASS_HILLS') ;
上記の内容をMODで追加すると
日本文明に"日本の領土内の草原もしくは草原(丘陵)タイルに食料+1"の文明特性が追加される