[GS] Civilization UA...treat desert tiles like plains

Ieke

Chieftain
Joined
Oct 27, 2015
Messages
27
I'm doing something wrong and I can't seem to find the error, I need another set of eyes please. Right now I'm just playing around but I would like to make desert tiles like plains tiles. Here is what I have so far...

Code:
--===============================================================================================================================================================================================================================================================
-- Types
--===============================================================================================================================================================================================================================================================

INSERT INTO    Types
        (Type,                                                    Kind)
VALUES    ('TRAIT_CIVILIZATION_YISHAI_ISRAEL_ABILITY',            'KIND_TRAIT');

-----------------------------------------------
-- Traits
-----------------------------------------------

INSERT INTO    Traits   
        (TraitType,                                                Name,                                                        Description)
VALUES    ('TRAIT_CIVILIZATION_YISHAI_ISRAEL_ABILITY',            'LOC_TRAIT_CIVILIZATION_YISHAI_ISRAEL_ABILITY_NAME',        'LOC_TRAIT_CIVILIZATION_YISHAI_ISRAEL_ABILITY_DESCRIPTION');

-----------------------------------------------
-- TraitModifiers
-----------------------------------------------

INSERT INTO    TraitModifiers   
        (TraitType,                                                ModifierId)
VALUES    ('TRAIT_CIVILIZATION_YISHAI_ISRAEL_ABILITY',            'TRAIT_YISHAI_DESERT_FOOD');
        
-----------------------------------------------
-- CivilizationTraits
-----------------------------------------------

INSERT INTO    CivilizationTraits
        (CivilizationType,                                        TraitType)
VALUES    ('CIVILIZATION_YISHAI_ISRAEL',                            'TRAIT_CIVILIZATION_YISHAI_ISRAEL_ABILITY');

-----------------------------------------------
-- Modifiers
-----------------------------------------------

INSERT INTO    Modifiers   
        (ModifierId,                                            ModifierType,                                SubjectRequirementSetId)
VALUES    ('TRAIT_YISHAI_DESERT_FOOD',                            'MODIFIER_PLAYER_ADJUST_PLOT_YIELD',        'PLOT_IS_DESERT_OR_PLAINS_REQUIREMENTS');



-----------------------------------------------
-- ModifierArguments
-----------------------------------------------

INSERT INTO    ModifierArguments   
        (ModifierId,                                    Name,                        Value)
VALUES    ('TRAIT_YISHAI_DESERT_FOOD',                    'YIELD_TYPE',                'YIELD_FOOD'),
        ('TRAIT_YISHAI_DESERT_FOOD',                    'AMOUNT',                    2);
 
"YIELD_TYPE" is incorrect. It needs to be "YieldType".

"AMOUNT" is also usually specified as "Amount" but it is not clear in this case whether the Uppercase/lowercase matters -- in such situations I always use as Firaxis does which is "Amount".

The SubjectRequirementSetId of 'PLOT_IS_DESERT_OR_PLAINS_REQUIREMENTS' is never defined anywhere.
 
Top Bottom