Skip to content

Commit

Permalink
Renamed pineapple.playcivs to pineapple.playcivs.controllable
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pineapplemachine committed May 27, 2017
1 parent cd02e05 commit 0c5eaf0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
10 changes: 10 additions & 0 deletions docs/scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 4 additions & 2 deletions scripts/pineapple/pydwarf.playcivs.py
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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
Expand Down

0 comments on commit 0c5eaf0

Please sign in to comment.