From 0c5eaf02fd15de6ba49cb0d4cc44a3e4245f69e5 Mon Sep 17 00:00:00 2001 From: Sophie Kirschner Date: Sat, 27 May 2017 10:13:07 -0400 Subject: [PATCH] Renamed pineapple.playcivs to pineapple.playcivs.controllable Intention is to also add scripts in this namespace for adding missing buildings, reactions, positions, etc to make the civs actually viable in fortress mode --- docs/scripts.md | 10 ++++++++++ scripts/pineapple/pydwarf.playcivs.py | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/scripts.md b/docs/scripts.md index a6d22e5..c9fd276 100644 --- a/docs/scripts.md +++ b/docs/scripts.md @@ -514,6 +514,16 @@ Animal Men Playable in Adventure Mode. Created by Sophie Kirschner. Makes all animal men playable in adventure mode by adding a [OUTSIDER_CONTROLLABLE] token to each. +## pineapple.playcivs.controllable + +Civilizations Playable in Fortress Mode. Created by Sophie Kirschner. + +Makes civilizations playable in fortress mode by adding [SITE_CONTROLLABLE] tokens to them. Defaults to making all civilizations controllable in this way, but the script accepts an entities argument that can be used to set which entities should receive the token. Any entities which possess the token at the time of running the script but aren't in the entities list will have the token removed! Note that if this isn't used in conjunction with other mods, it may not be practical to play as non-dwarf civilizations due to missing items, professions, reactions, etc. + +#### Arguments: + +* **entities:** The entities to which [SITE_CONTROLLABLE] tokens should belong. Defaults to "\*", meaning all entities should be controllable. + ## pineapple.sanitize.nonexistentids Created by Sophie Kirschner. diff --git a/scripts/pineapple/pydwarf.playcivs.py b/scripts/pineapple/pydwarf.playcivs.py index f7c8bd7..1e16a15 100644 --- a/scripts/pineapple/pydwarf.playcivs.py +++ b/scripts/pineapple/pydwarf.playcivs.py @@ -1,7 +1,9 @@ import pydwarf + + @pydwarf.urist( - name = 'pineapple.playcivs', + name = 'pineapple.playcivs.controllable', title = 'Civilizations Playable in Fortress Mode', version = '1.0.0', author = 'Sophie Kirschner', @@ -19,7 +21,7 @@ belong. Defaults to "*", meaning all entities should be controllable.''' } ) -def playanimalmen(df, entities='*'): +def controllable(df, entities='*'): controllable = set() if entities == '*': # Enable all entities