Skip to content

Commit

Permalink
move MutuallyExclusiveGroup where it belongs (#10409)
Browse files Browse the repository at this point in the history
  • Loading branch information
azum4roll authored Oct 30, 2023
1 parent a89aa5b commit c8959ee
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1363,61 +1363,3 @@ INSERT INTO Building_YieldChanges
(BuildingType, YieldType, Yield)
VALUES
('BUILDING_CONSULATE', 'YIELD_CULTURE', 1);

----------------------------------------------------------------------------
-- Mutual Exclusive Groups
----------------------------------------------------------------------------
UPDATE Buildings
SET MutuallyExclusiveGroup = 1
WHERE Type IN (
'BUILDING_HYDRO_PLANT',
'BUILDING_SOLAR_PLANT',
'BUILDING_NUCLEAR_PLANT',
'BUILDING_WIND_PLANT',
'BUILDING_TIDAL_PLANT'
);

UPDATE Buildings
SET MutuallyExclusiveGroup = 3
WHERE Type IN (
'BUILDING_WELL',
'BUILDING_WATERMILL'
);

UPDATE Buildings
SET MutuallyExclusiveGroup = 7
WHERE Type IN (
'BUILDING_MAUSOLEUM',
'BUILDING_HEAVENLY_THRONE',
'BUILDING_GREAT_ALTAR',
'BUILDING_RELIGIOUS_LIBRARY',
'BUILDING_DIVINE_COURT',
'BUILDING_SACRED_GARDEN',
'BUILDING_HOLY_COUNCIL',
'BUILDING_GRAND_OSSUARY',
'BUILDING_APOSTOLIC_PALACE'
);

UPDATE Buildings
SET MutuallyExclusiveGroup = 10
WHERE Type IN (
'BUILDING_SEAPORT',
'BUILDING_TRAINSTATION'
);

-- Likely unnecessary with Building_ClassNeededNowhere, just for clarity on tooltip
UPDATE Buildings
SET MutuallyExclusiveGroup = 15
WHERE Type IN (
'BUILDING_AMERICA_SMITHSONIAN',
'BUILDING_AMERICA_WESTPOINT',
'BUILDING_AMERICA_SLATERMILL'
);

UPDATE Buildings
SET MutuallyExclusiveGroup = 50
WHERE Type IN (
'BUILDING_RIALTO_DISTRICT',
'BUILDING_VENETIAN_ARSENALE',
'BUILDING_MURANO_GLASSWORKS'
);
58 changes: 58 additions & 0 deletions (2) Vox Populi/Database Changes/City/Buildings/BuildingSweeps.sql
Original file line number Diff line number Diff line change
Expand Up @@ -344,3 +344,61 @@ VALUES
('BUILDING_BROADCAST_TOWER', 'YIELD_GOLD', 10),
('BUILDING_BROADWAY', 'YIELD_GOLD', 20),
('BUILDING_SYDNEY_OPERA_HOUSE', 'YIELD_CULTURE', 15);

----------------------------------------------------------------------------
-- Mutual Exclusive Groups
----------------------------------------------------------------------------
UPDATE Buildings
SET MutuallyExclusiveGroup = 1
WHERE Type IN (
'BUILDING_HYDRO_PLANT',
'BUILDING_SOLAR_PLANT',
'BUILDING_NUCLEAR_PLANT',
'BUILDING_WIND_PLANT',
'BUILDING_TIDAL_PLANT'
);

UPDATE Buildings
SET MutuallyExclusiveGroup = 3
WHERE Type IN (
'BUILDING_WELL',
'BUILDING_WATERMILL'
);

UPDATE Buildings
SET MutuallyExclusiveGroup = 7
WHERE Type IN (
'BUILDING_MAUSOLEUM',
'BUILDING_HEAVENLY_THRONE',
'BUILDING_GREAT_ALTAR',
'BUILDING_RELIGIOUS_LIBRARY',
'BUILDING_DIVINE_COURT',
'BUILDING_SACRED_GARDEN',
'BUILDING_HOLY_COUNCIL',
'BUILDING_GRAND_OSSUARY',
'BUILDING_APOSTOLIC_PALACE'
);

UPDATE Buildings
SET MutuallyExclusiveGroup = 10
WHERE Type IN (
'BUILDING_SEAPORT',
'BUILDING_TRAINSTATION'
);

-- Likely unnecessary with Building_ClassNeededNowhere, just for clarity on tooltip
UPDATE Buildings
SET MutuallyExclusiveGroup = 15
WHERE Type IN (
'BUILDING_AMERICA_SMITHSONIAN',
'BUILDING_AMERICA_WESTPOINT',
'BUILDING_AMERICA_SLATERMILL'
);

UPDATE Buildings
SET MutuallyExclusiveGroup = 50
WHERE Type IN (
'BUILDING_RIALTO_DISTRICT',
'BUILDING_VENETIAN_ARSENALE',
'BUILDING_MURANO_GLASSWORKS'
);

0 comments on commit c8959ee

Please sign in to comment.