Skip to content

Commit

Permalink
Add WorkWithWillingness & WorkAgainstWillingness
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Dec 5, 2024
1 parent 5a6ee3a commit 4c5b30e
Show file tree
Hide file tree
Showing 9 changed files with 367 additions and 199 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-- Sets default WorkWithWillingness and WorkAgainstWillingness values for all base game leaders
-- These are unused base game columns that are being repurposed
UPDATE Leaders SET WorkWithWillingness = DoFWillingness;
UPDATE Leaders SET WorkAgainstWillingness = DenounceWillingness;

-- Sets default victory pursuits for all base game leaders
CREATE TEMP TABLE Leader_VictoryPursuits (
TempLeaderType text,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
----------------------------------

-- 3 new columns: Personality, PrimaryVictoryPursuit, SecondaryVictoryPursuit
-- Default diplomacy flavors are now 5 (except Chattiness and unused columns)
-- Default diplomacy flavors are now 5 (except Chattiness)
CREATE TABLE Leaders_NEW (
ID integer PRIMARY KEY,
Type text NOT NULL UNIQUE,
Expand All @@ -22,13 +22,13 @@ CREATE TABLE Leaders_NEW (
WarmongerHate integer DEFAULT 5,
DoFWillingness integer DEFAULT 5,
DenounceWillingness integer DEFAULT 5,
WorkWithWillingness integer DEFAULT 5,
WorkAgainstWillingness integer DEFAULT 5,
Loyalty integer DEFAULT 5,
Forgiveness integer DEFAULT 5,
Neediness integer DEFAULT 5,
Meanness integer DEFAULT 5,
Chattiness integer DEFAULT 4,
WorkWithWillingness integer DEFAULT 0, -- unused
WorkAgainstWillingness integer DEFAULT 0, -- unused
PortraitIndex integer DEFAULT -1,
IconAtlas text REFERENCES IconTextureAtlases (Atlas),
PackageID text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,14 @@ VALUES
('OPINION_WEIGHT_DENOUNCED_MOST_VALUED_ALLY', 10), -- denounced the AI's most valued DP (if they have a DoF with them)

-- We have Denounced the same leaders!
-- NOTE: This bonus scales based on the AI's DenounceWillingness flavor.
-- NOTE: This bonus scales based on the AI's WorkAgainstWillingness flavor.
('OPINION_WEIGHT_DENOUNCED_ENEMY', -20),
('OPINION_WEIGHT_DENOUNCED_ENEMY_SUBSEQUENT', -8), -- any after the first
('OPINION_WEIGHT_DENOUNCED_BIGGEST_COMPETITOR', -20), -- mutual denouncement against AI's biggest competitor
('OPINION_WEIGHT_DENOUNCED_BIGGEST_LEAGUE_RIVAL', -20), -- mutual denouncement against AI's biggest World Congress rival

-- Other civs that they like more than you have denounced you!
-- NOTE: This penalty scales inversely (negatively) based on the AI's DiploBalance flavor.
-- NOTE: This penalty scales based on the AI's WorkAgainstWillingness flavor.
('OPINION_WEIGHT_DENOUNCED_BY_THEIR_FRIEND', 15),
('OPINION_WEIGHT_DENOUNCED_BY_THEIR_FRIEND_SUBSEQUENT', 5), -- any after the first
('OPINION_WEIGHT_DENOUNCED_BY_THEIR_KEY_FRIEND', 15), -- additional penalty if the denouncement comes from a teammate or their most valued friend/ally
Expand Down Expand Up @@ -402,7 +402,7 @@ VALUES
('OPINION_WEIGHT_DOF_TYPE_BATTLE_BROTHERS', -30), -- bonus for 3+ consecutive DoFs ""

-- We have made Declarations of Friendship with the same leaders!
-- NOTE: This bonus scales based on the AI's DoFWillingness flavor.
-- NOTE: This bonus scales based on the AI's WorkWithWillingness flavor.
('OPINION_WEIGHT_DOF_WITH_FRIEND', -20),
('OPINION_WEIGHT_DOF_WITH_FRIEND_SUBSEQUENT', -8), -- any after the first
('OPINION_WEIGHT_DOF_WITH_MOST_VALUED_FRIEND', -20), -- made a DoF with AI's most valued friend
Expand Down Expand Up @@ -462,7 +462,7 @@ VALUES
('OPINION_WEIGHT_BETRAYED_OUR_FRIEND_MULTIPLIER', 200), -- multiplier to all traitor opinion penalties wherein the player betrayed or was betrayed by AI's friends or allies

-- Your friends found reason to denounce you!
-- NOTE: This penalty scales based on the AI's DenounceWillingness flavor.
-- NOTE: This penalty scales based on the AI's WorkAgainstWillingness flavor.
('OPINION_WEIGHT_DENOUNCED_BY_FRIEND_EACH', 20), -- if they like the denouncer more than you
('OPINION_WEIGHT_DENOUNCED_BY_FRIEND_DONT_LIKE', 10), -- if they like you more than the denouncer

Expand Down Expand Up @@ -721,12 +721,12 @@ VALUES
('OPINION_WEIGHT_ATTACKED_PROTECTED_MINOR_NUM_TURNS_UNTIL_FORGIVEN', 30), -- scales with Protective approach bias towards City-States
('OPINION_WEIGHT_BULLIED_PROTECTED_MINOR_NUM_TURNS_UNTIL_FORGIVEN', 30),
('OPINION_WEIGHT_SIDED_WITH_THEIR_MINOR_NUM_TURNS_UNTIL_FORGIVEN', 10),
('OPINION_WEIGHT_WE_LIKED_THEIR_PROPOSAL_NUM_TURNS', 50), -- scales with DoFWillingness
('OPINION_WEIGHT_WE_DISLIKED_THEIR_PROPOSAL_NUM_TURNS', 50), -- scales with DenounceWillingness
('OPINION_WEIGHT_THEY_SUPPORTED_OUR_PROPOSAL_NUM_TURNS', 50), -- scales with DoFWillingness and sometimes Neediness
('OPINION_WEIGHT_THEY_FOILED_OUR_PROPOSAL_NUM_TURNS', 50), -- scales with DenounceWillingness and sometimes Forgiveness
('OPINION_WEIGHT_THEY_SUPPORTED_OUR_HOSTING_NUM_TURNS', 50), -- scales with DoFWillingness
('SANCTIONED_US_TURNS_UNTIL_FORGIVEN', 50), -- scales with Meanness if the attempt succeeded, DenounceWillingness otherwise
('UNSANCTIONED_US_TURNS_UNTIL_FORGOTTEN', 50), -- scales with Loyalty if the attempt succeeded, DoFWillingness otherwise
('OPINION_WEIGHT_WE_LIKED_THEIR_PROPOSAL_NUM_TURNS', 50), -- scales with WorkWithWillingness
('OPINION_WEIGHT_WE_DISLIKED_THEIR_PROPOSAL_NUM_TURNS', 50), -- scales with WorkAgainstWillingness
('OPINION_WEIGHT_THEY_SUPPORTED_OUR_PROPOSAL_NUM_TURNS', 50), -- scales with WorkWithWillingness and sometimes Neediness
('OPINION_WEIGHT_THEY_FOILED_OUR_PROPOSAL_NUM_TURNS', 50), -- scales with WorkAgainstWillingness and sometimes Forgiveness
('OPINION_WEIGHT_THEY_SUPPORTED_OUR_HOSTING_NUM_TURNS', 50), -- scales with WorkWithWillingness
('SANCTIONED_US_TURNS_UNTIL_FORGIVEN', 50), -- scales with Meanness if the attempt succeeded, WorkAgainstWillingness otherwise
('UNSANCTIONED_US_TURNS_UNTIL_FORGOTTEN', 50), -- scales with Loyalty if the attempt succeeded, WorkWithWillingness otherwise
('OPINION_WEIGHT_VASSALAGE_PEACEFULLY_REVOKED_NUM_TURNS_UNTIL_FORGOTTEN', 100), -- How many turns the "gave independence when asked" bonus remains for
('OPINION_WEIGHT_VASSALAGE_FORCIBLY_REVOKED_NUM_TURNS_UNTIL_FORGIVEN', 100); -- How many turns the "refused to give independence" when asked penalty remains for
('OPINION_WEIGHT_VASSALAGE_FORCIBLY_REVOKED_NUM_TURNS_UNTIL_FORGIVEN', 100); -- How many turns the "refused to give independence" when asked penalty remains for
Loading

0 comments on commit 4c5b30e

Please sign in to comment.