Sid Meier's Civilization VI

Sid Meier's Civilization VI

RwF: Dark Age Policies
nut9931 13. jan. 2020 kl. 1:04
Chattel slavery police bug fix
There is a bug in the current version that does not apply builder capture of Chattel slavery police. The causes and solutions were as follows.

Modifiers
'MODIFIER_UNIT_ADJUST_COMBAT_CAPTURE' -> 'MODIFIER_UNIT_ADJUST_COMBAT_UNIT_CAPTURE'

ModifierArguments
'UNIT_WORKER' -> 'UNIT_BUILDER'

--------------------------------------------------------------------------------------------------------------------------
-- Modifiers
--------------------------------------------------------------------------------------------------------------------------
INSERT INTO Modifiers
(ModifierId, ModifierType, Permanent, SubjectRequirementSetId)
VALUES ('JFD_CHATTEL_SLAVERY_CAPTURE_UNITS_AS_WORKERS', 'MODIFIER_UNIT_ADJUST_COMBAT_CAPTURE', 0, null),
('JFD_COUNTER_REFORMATION_RELIGIOUS_COMBAT_FAITH', 'MODIFIER_UNIT_ADJUST_POST_COMBAT_YIELD', 0, null),
('JFD_COUNTER_REFORMATION_RELIGIOUS_COMBAT_STRENGTH', 'MODIFIER_UNIT_ADJUST_COMBAT_STRENGTH', 0, null),
('JFD_END_OF_HISTORY_ROCK_BAND_FREE_PROMOTION', 'MODIFIER_PLAYER_UNIT_ADJUST_GRANT_EXPERIENCE', 0, null);
--------------------------------------------------------------------------------------------------------------------------
-- ModifierArguments
--------------------------------------------------------------------------------------------------------------------------
INSERT INTO ModifierArguments
(ModifierId, Name, Value)
VALUES ('JFD_CHATTEL_SLAVERY_CAPTURE_UNITS_AS_WORKERS', 'UnitType', 'UNIT_WORKER'),
('JFD_CHATTEL_SLAVERY_CAPTURE_UNITS_AS_WORKERS', 'CanCapture', 1),
('JFD_COUNTER_REFORMATION_RELIGIOUS_COMBAT_FAITH', 'YieldType', 'YIELD_FAITH'),
('JFD_COUNTER_REFORMATION_RELIGIOUS_COMBAT_FAITH', 'PercentDefeatedStrength', 25),
('JFD_COUNTER_REFORMATION_RELIGIOUS_COMBAT_STRENGTH', 'Amount', 10),
('JFD_END_OF_HISTORY_ROCK_BAND_FREE_PROMOTION', 'Amount', -1);





--------------------------------------------------------------------------------------------------------------------------
-- Modifiers
--------------------------------------------------------------------------------------------------------------------------
INSERT INTO Modifiers
(ModifierId, ModifierType, Permanent, SubjectRequirementSetId)
VALUES ('JFD_CHATTEL_SLAVERY_CAPTURE_UNITS_AS_WORKERS', 'MODIFIER_UNIT_ADJUST_COMBAT_UNIT_CAPTURE', 0, null),
('JFD_COUNTER_REFORMATION_RELIGIOUS_COMBAT_FAITH', 'MODIFIER_UNIT_ADJUST_POST_COMBAT_YIELD', 0, null),
('JFD_COUNTER_REFORMATION_RELIGIOUS_COMBAT_STRENGTH', 'MODIFIER_UNIT_ADJUST_COMBAT_STRENGTH', 0, null),
('JFD_END_OF_HISTORY_ROCK_BAND_FREE_PROMOTION', 'MODIFIER_PLAYER_UNIT_ADJUST_GRANT_EXPERIENCE', 0, null);
--------------------------------------------------------------------------------------------------------------------------
-- ModifierArguments
--------------------------------------------------------------------------------------------------------------------------
INSERT INTO ModifierArguments
(ModifierId, Name, Value)
VALUES ('JFD_CHATTEL_SLAVERY_CAPTURE_UNITS_AS_WORKERS', 'UnitType', 'UNIT_BUILDER'),
('JFD_CHATTEL_SLAVERY_CAPTURE_UNITS_AS_WORKERS', 'CanCapture', 'true'),
('JFD_COUNTER_REFORMATION_RELIGIOUS_COMBAT_FAITH', 'YieldType', 'YIELD_FAITH'),
('JFD_COUNTER_REFORMATION_RELIGIOUS_COMBAT_FAITH', 'PercentDefeatedStrength', 25),
('JFD_COUNTER_REFORMATION_RELIGIOUS_COMBAT_STRENGTH', 'Amount', 10),
('JFD_END_OF_HISTORY_ROCK_BAND_FREE_PROMOTION', 'Amount', -1);
--------------------------------------------------------------------------------------------------------------------------


Enter this link to receive the DAPolicies_Policies.sql file, which fixes the builder capture bug.
https://drive.google.com/open?id=1qk7Sj0Ra3Eqry1R8dpTxIlLysMJSp29G

C:\Program Files (x86)\Steam\steamapps\workshop\content\289070\1796764862\Core

Instead, every time the builder captures a Chattel slavery police, the age score is reduced by one. This problem was not solved because the lua code was untouchable.
< >
Viser 1-1 af 1 kommentarer
Nim 19. feb. 2020 kl. 3:52 
@nut9931, You are the hero we deserve.
< >
Viser 1-1 af 1 kommentarer
Per side: 1530 50