Skip to content

Commit

Permalink
New Dynamic Faction Endings (#74126)
Browse files Browse the repository at this point in the history
* adds dynamic faction epilogues

* dynamic epilogues update 1

* fixed Hub-01 "neutral" ending

* Hells Raiders text update

* format fix

* added free merchant ending

* format fixes

* correct CLRF type in game.h

* Isherwood text update

* Update src/faction.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/game.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/game.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/game.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/game.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/game.h

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix integer variables

* char update

* char fix

* Update epilogue_factions.json

* updates

* fix for faction.cpp and faction.h

* Apply suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* faction.cpp fixes

* Update faction.h

* Update data/json/npcs/factions.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update data/json/npcs/factions.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update data/json/npcs/factions.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update data/json/npcs/factions.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update data/json/npcs/factions.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/faction.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/faction.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/faction.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/faction.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/faction.h

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update data/json/npcs/factions.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update data/json/npcs/factions.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/faction.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* consumes_food fix

* actual consumes_food fix

* Update src/faction.h

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* json fix

* Update src/faction.h

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* text update

* Update data/json/npcs/factions.json

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* another text update

* astyle fix

* Update src/faction.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Update src/faction.cpp

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* text update

* typo

* removed testing values

* Update src/faction.cpp

Co-authored-by: anothersimulacrum <[email protected]>

* Update src/faction.cpp

Co-authored-by: anothersimulacrum <[email protected]>

* Update src/faction.cpp

Co-authored-by: anothersimulacrum <[email protected]>

* Update src/faction.cpp

Co-authored-by: anothersimulacrum <[email protected]>

* Update src/game.cpp

Co-authored-by: anothersimulacrum <[email protected]>

* Update src/faction.h

Co-authored-by: anothersimulacrum <[email protected]>

* Update factions.json

* Apply suggestions from code review

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Maleclypse <[email protected]>
Co-authored-by: anothersimulacrum <[email protected]>
  • Loading branch information
4 people authored Jun 18, 2024
1 parent 2efe44b commit 5e4a210
Show file tree
Hide file tree
Showing 4 changed files with 309 additions and 21 deletions.
179 changes: 171 additions & 8 deletions data/json/npcs/factions.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,33 @@
}
},
"mon_faction": "player",
"epilogues": [ { "power_min": 0, "power_max": 149, "id": "epilogue_faction_your_followers_0" } ],
"epilogues": [
{ "power_min": 0, "power_max": 149, "id": "epilogue_faction_your_followers_0" },
{ "power_min": 150, "id": "epilogue_faction_your_followers_150" },
{
"power_min": 150,
"dynamic": [
{ "faction": "free_merchants", "power_min": 150 },
{ "faction": "old_guard", "power_min": 150 },
{ "faction": "tacoma_commune", "power_min": 150 }
],
"id": "epilogue_faction_your_followers_FM"
},
{
"power_min": 150,
"dynamic": [ { "faction": "free_merchants", "power_max": 150 }, { "faction": "tacoma_commune", "power_min": 150 } ],
"id": "epilogue_faction_your_followers_revolt"
},
{
"power_min": 150,
"dynamic": [
{ "faction": "old_guard", "power_min": 150 },
{ "faction": "tacoma_commune", "power_min": 150 },
{ "faction": "robofac", "power_min": 150 }
],
"id": "epilogue_faction_your_followers_OG"
}
],
"description": "The survivors who have entrusted you with their well-being. If morale drops, poor performance and mutiny may become issues."
},
{
Expand Down Expand Up @@ -82,7 +108,36 @@
},
"epilogues": [
{ "power_min": 0, "power_max": 149, "id": "epilogue_faction_robofac_0" },
{ "power_min": 150, "power_max": 299, "id": "epilogue_faction_robofac_150" }
{
"power_min": 150,
"dynamic": [ { "faction": "exodii", "power_max": 150 }, { "faction": "the_great_library", "power_max": 150 } ],
"id": "epilogue_faction_robofac_150"
},
{
"power_min": 150,
"dynamic": [ { "faction": "exodii", "power_min": 150 }, { "faction": "the_great_library", "power_max": 150 } ],
"id": "epilogue_faction_robofac_150"
},
{
"power_min": 150,
"dynamic": [ { "faction": "exodii", "power_max": 150 }, { "faction": "the_great_library", "power_min": 150 } ],
"id": "epilogue_faction_robofac_150"
},
{
"power_min": 150,
"dynamic": [ { "faction": "exodii", "power_min": 150 }, { "faction": "the_great_library", "power_min": 150 } ],
"id": "epilogue_faction_robofac_thrive"
},
{
"dynamic": [
{ "faction": "old_guard", "power_min": 150 },
{ "faction": "tacoma_commune", "power_min": 150 },
{ "faction": "robofac", "power_min": 150 },
{ "faction": "exodii", "power_min": 150 },
{ "faction": "the_great_library", "power_min": 150 }
],
"id": "epilogue_faction_robofac_thrive_OG"
}
],
"description": "The surviving staff of Hub 01, a pre-Cataclysm research lab. They rarely leave their lab, if at all, and rely on their robots and advanced technology to survive."
},
Expand Down Expand Up @@ -147,8 +202,27 @@
"hells_raiders": { "kill on sight": true }
},
"epilogues": [
{ "power_min": 0, "id": "epilogue_faction_old_guard_0" },
{ "power_min": 150, "id": "epilogue_faction_old_guard_150" }
{ "power_min": 0, "power_max": 149, "id": "epilogue_faction_old_guard_0" },
{
"power_min": 150,
"dynamic": [ { "faction": "tacoma_commune", "power_max": 150 }, { "faction": "robofac", "power_min": 150 } ],
"id": "epilogue_faction_old_guard_150"
},
{
"power_min": 150,
"dynamic": [ { "faction": "tacoma_commune", "power_min": 150 }, { "faction": "robofac", "power_max": 150 } ],
"id": "epilogue_faction_old_guard_150"
},
{
"power_min": 150,
"dynamic": [ { "faction": "tacoma_commune", "power_max": 150 }, { "faction": "robofac", "power_max": 150 } ],
"id": "epilogue_faction_old_guard_150"
},
{
"power_min": 150,
"dynamic": [ { "faction": "tacoma_commune", "power_min": 150 }, { "faction": "robofac", "power_min": 150 } ],
"id": "epilogue_faction_old_guard_thrive"
}
],
"description": "The remains of the federal government. The extent of their strength is unknown but squads of patrolling soldiers have been seen under their banner."
},
Expand Down Expand Up @@ -237,7 +311,26 @@
},
"epilogues": [
{ "power_min": 0, "power_max": 149, "id": "epilogue_faction_free_merchants_0" },
{ "power_min": 150, "id": "epilogue_faction_free_merchants_150" }
{
"power_min": 150,
"dynamic": [ { "faction": "old_guard", "power_max": 150 }, { "faction": "tacoma_commune", "power_min": 150 } ],
"id": "epilogue_faction_free_merchants_150"
},
{
"power_min": 150,
"dynamic": [ { "faction": "old_guard", "power_min": 150 }, { "faction": "tacoma_commune", "power_max": 150 } ],
"id": "epilogue_faction_free_merchants_150"
},
{
"power_min": 150,
"dynamic": [ { "faction": "old_guard", "power_max": 150 }, { "faction": "tacoma_commune", "power_max": 150 } ],
"id": "epilogue_faction_free_merchants_150"
},
{
"power_min": 150,
"dynamic": [ { "faction": "old_guard", "power_min": 150 }, { "faction": "tacoma_commune", "power_min": 150 } ],
"id": "epilogue_faction_free_merchants_thrive"
}
],
"description": "A conglomeration of entrepreneurs and businessmen that stand together to hammer-out an existence through trade and industry."
},
Expand Down Expand Up @@ -328,7 +421,33 @@
},
"epilogues": [
{ "power_min": 0, "power_max": 149, "id": "epilogue_faction_tacoma_commune_0" },
{ "power_min": 150, "id": "epilogue_faction_tacoma_commune_150" }
{
"power_min": 150,
"dynamic": [ { "faction": "tacoma_commune", "power_min": 150 }, { "faction": "free_merchants", "power_min": 150 } ],
"id": "epilogue_faction_tacoma_commune_150"
},
{
"dynamic": [
{ "faction": "old_guard", "power_min": 150 },
{ "faction": "tacoma_commune", "power_min": 150 },
{ "faction": "free_merchants", "power_min": 150 },
{ "faction": "robofac", "power_min": 150 }
],
"id": "epilogue_faction_tacoma_commune_150_OG"
},
{
"dynamic": [ { "faction": "tacoma_commune", "power_min": 150 }, { "faction": "free_merchants", "power_max": 150 } ],
"id": "epilogue_faction_tacoma_commune_revolt"
},
{
"dynamic": [
{ "faction": "old_guard", "power_min": 150 },
{ "faction": "tacoma_commune", "power_min": 150 },
{ "faction": "free_merchants", "power_max": 150 },
{ "faction": "robofac", "power_min": 150 }
],
"id": "epilogue_faction_tacoma_commune_revolt_OG"
}
],
"description": "An outpost started by the Free Merchants to provide a source of food and raw materials."
},
Expand Down Expand Up @@ -469,8 +588,32 @@
"your_followers": { "kill on sight": true }
},
"epilogues": [
{ "power_min": 0, "power_max": 149, "id": "epilogue_faction_hells_raiders_0" },
{ "power_min": 150, "id": "epilogue_faction_hells_raiders_150" }
{
"dynamic": [ { "faction": "old_guard", "power_max": 150 }, { "faction": "hells_raiders", "power_max": 150 } ],
"id": "epilogue_faction_hells_raiders_0"
},
{
"dynamic": [ { "faction": "old_guard", "power_max": 150 }, { "faction": "hells_raiders", "power_min": 150 } ],
"id": "epilogue_faction_hells_raiders_150"
},
{
"dynamic": [ { "faction": "old_guard", "power_min": 150 }, { "faction": "hells_raiders", "power_max": 150 } ],
"id": "epilogue_faction_hells_raiders_stalemate"
},
{
"dynamic": [ { "faction": "old_guard", "power_min": 150 }, { "faction": "hells_raiders", "power_min": 150 } ],
"id": "epilogue_faction_hells_raiders_stalemate"
},
{
"dynamic": [
{ "faction": "old_guard", "power_min": 150 },
{ "faction": "tacoma_commune", "power_min": 150 },
{ "faction": "robofac", "power_min": 150 },
{ "faction": "exodii", "power_min": 150 },
{ "faction": "the_great_library", "power_min": 150 }
],
"id": "epilogue_faction_hells_raiders_collapse"
}
],
"description": "The largest gang of hooligans and bandits that preys upon other survivors. Even if you have no gear, there is always a need for slaves and fresh meat."
},
Expand Down Expand Up @@ -608,6 +751,26 @@
},
"epilogues": [
{ "power_min": 0, "power_max": 149, "id": "epilogue_faction_isherwoods_0" },
{
"power_min": 150,
"dynamic": [
{ "faction": "old_guard", "power_min": 150 },
{ "faction": "tacoma_commune", "power_min": 150 },
{ "faction": "free_merchants", "power_min": 150 },
{ "faction": "robofac", "power_min": 150 }
],
"id": "epilogue_faction_isherwoods_OG_FM"
},
{
"power_min": 150,
"dynamic": [
{ "faction": "old_guard", "power_min": 150 },
{ "faction": "tacoma_commune", "power_min": 150 },
{ "faction": "free_merchants", "power_max": 150 },
{ "faction": "robofac", "power_min": 150 }
],
"id": "epilogue_faction_isherwoods_OG"
},
{ "power_min": 150, "id": "epilogue_faction_isherwoods_150" }
],
"description": "A small family surviving on their generational land."
Expand Down
Loading

0 comments on commit 5e4a210

Please sign in to comment.