Skip to content

Commit

Permalink
Add default group option for Session Turnover macros
Browse files Browse the repository at this point in the history
  • Loading branch information
Jagusti committed Aug 1, 2022
1 parent 121ee10 commit 06b27bb
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ All notable changes to this project will be documented in this file. The format

## Unreleased
See [Issue Backlog](../../issues) and [Roadmap](../../milestones).
- *Fixed* issue where players would see permission errors during advantage updates on other users' actors.
- *Fixed* issue where players would see permission errors during advantage updates on other users' actors. [#150](https://github.com/Jagusti/fvtt-wfrp4e-gmtoolkit/issues/150)
- *Added* new option to set 'party' (player-assigned) or 'company' (player-owned) actors as default group type for Session Turnover macros. [#151](https://github.com/Jagusti/fvtt-wfrp4e-gmtoolkit/issues/151)

## [Version 0.9.4.2](https://github.com/Jagusti/fvtt-wfrp4e-gmtoolkit/releases/tag/v0.9.4.2) (2022-07-29)
- *Added* localization improvements for Condition Check and Secret Group Test macros. (Thanks @Txus5012!) [[#141](https://github.com/Jagusti/fvtt-wfrp4e-gmtoolkit/pull/141)]
Expand Down
2 changes: 2 additions & 0 deletions lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@
"GMTOOLKIT.Settings.SessionTurnover.SessionID.hint" : "Ersetzt die Variable %session% in Add XP default reason. Ganze Zahlen werden automatisch hochgezählt, wenn das Makro 'Ende der Sitzung' ausgeführt wird. Alternativ können Sie auch manuell eine aussagekräftigere Formulierung eingeben (eg, \"Episode 2.3\", \"Ritual Climax\", etc).",
"GMTOOLKIT.Settings.SessionTurnover.HoldingScene.name" : "Startszene",
"GMTOOLKIT.Settings.SessionTurnover.HoldingScene.hint" : "Name der Szene, zu der automatisch zwischen den Sitzungen gewechselt werden soll. Wird durch die Sitzungsübergabe-Routine aktiviert. Leer lassen, um Szenen nicht zu ändern. Kann für Informationsseiten und Kampagnen-Übersicht verwendet werden.",
"GMTOOLKIT.Settings.SessionTurnover.DefaultParty.name" : "Default Group Selection",
"GMTOOLKIT.Settings.SessionTurnover.DefaultParty.hint" : "Choose 'party' (default) to only include characters assigned to players, or 'company' to also include player-owned characters (such as hirelings, henchmen and familiars).",

"GMTOOLKIT.Dialog.SessionTurnover.UpdateSessionID.Title" : "Sitzungs-ID aktualisieren",
"GMTOOLKIT.Dialog.SessionTurnover.UpdateSessionID.CurrentSession" : "Die aktuelle Sitzungs-ID lautet {thisSession}.",
Expand Down
2 changes: 2 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@
"GMTOOLKIT.Settings.SessionTurnover.SessionID.hint" : "Replaces %session% variable in Add XP default reason. Whole numbers are automatically incremented when running the Session Turnover routine. Alternatively, manually set a more descriptive phrase (eg, \"Episode 2.3\", \"Ritual Climax\", etc).",
"GMTOOLKIT.Settings.SessionTurnover.HoldingScene.name" : "Holding Scene",
"GMTOOLKIT.Settings.SessionTurnover.HoldingScene.hint" : "Name of scene to automatically transition to between sessions. Activated through Session Turnover routine. Leave blank to not change scenes. Can be used for landing pages and campaign hubs.",
"GMTOOLKIT.Settings.SessionTurnover.DefaultParty.name" : "Default Group Selection",
"GMTOOLKIT.Settings.SessionTurnover.DefaultParty.hint" : "Choose 'party' (default) to only include characters assigned to players, or 'company' to also include player-owned characters (such as hirelings, henchmen and familiars).",

"GMTOOLKIT.Dialog.SessionTurnover.UpdateSessionID.Title" : "Update Session ID",
"GMTOOLKIT.Dialog.SessionTurnover.UpdateSessionID.CurrentSession" : "Current session ID is {thisSession}.",
Expand Down
2 changes: 2 additions & 0 deletions lang/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@
"GMTOOLKIT.Settings.SessionTurnover.SessionID.hint" : "Replaces %session% variable in Add XP default reason. Whole numbers are automatically incremented when running the Session Turnover routine. Alternatively, manually set a more descriptive phrase (eg, \"Episode 2.3\", \"Ritual Climax\", etc).",
"GMTOOLKIT.Settings.SessionTurnover.HoldingScene.name" : "Holding Scene",
"GMTOOLKIT.Settings.SessionTurnover.HoldingScene.hint" : "Name of scene to automatically transition to between sessions. Activated through Session Turnover routine. Leave blank to not change scenes. Can be used for landing pages and campaign hubs.",
"GMTOOLKIT.Settings.SessionTurnover.DefaultParty.name" : "Default Group Selection",
"GMTOOLKIT.Settings.SessionTurnover.DefaultParty.hint" : "Choose 'party' (default) to only include characters assigned to players, or 'company' to also include player-owned characters (such as hirelings, henchmen and familiars).",

"GMTOOLKIT.Dialog.SessionTurnover.UpdateSessionID.Title" : "Update Session ID",
"GMTOOLKIT.Dialog.SessionTurnover.UpdateSessionID.CurrentSession" : "Current session ID is {thisSession}.",
Expand Down
2 changes: 2 additions & 0 deletions lang/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@
"GMTOOLKIT.Settings.SessionTurnover.SessionID.hint" : "経験値追加時の理由を変数「%session%」で置き換える。セッションの終幕処理を実行すると、数値は自動的に増加されます。もしくは手で解り易いフレーズを入力する(例、「エピソード2.3」、「儀式のクライマックス」など)。",
"GMTOOLKIT.Settings.SessionTurnover.HoldingScene.name" : "固定シーン",
"GMTOOLKIT.Settings.SessionTurnover.HoldingScene.hint" : "セッション間で自動的に移行するシーンの名前。Session Turnover処理で起動されます。シーン変更しない場合は空白にします。ランディングページやキャンペーンのハブとして使用されます。",
"GMTOOLKIT.Settings.SessionTurnover.DefaultParty.name" : "Default Group Selection",
"GMTOOLKIT.Settings.SessionTurnover.DefaultParty.hint" : "Choose 'party' (default) to only include characters assigned to players, or 'company' to also include player-owned characters (such as hirelings, henchmen and familiars).",

"GMTOOLKIT.Dialog.SessionTurnover.UpdateSessionID.Title" : "セッションIDの更新",
"GMTOOLKIT.Dialog.SessionTurnover.UpdateSessionID.CurrentSession" : "現在のセッションIDは「{thisSession}」です。",
Expand Down
13 changes: 13 additions & 0 deletions modules/gm-toolkit-settings.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,19 @@ export class GMToolkitSettings {
type: String,
feature: "session"
});
game.settings.register(GMToolkit.MODULE_ID, "defaultPartySessionTurnover", {
name: "GMTOOLKIT.Settings.SessionTurnover.DefaultParty.name",
hint: "GMTOOLKIT.Settings.SessionTurnover.DefaultParty.hint",
scope: "world",
config: false,
default: "party",
type: String,
choices: {
party: "GMTOOLKIT.Group.Type.party",
company: "GMTOOLKIT.Group.Type.company"
},
feature: "session"
});
game.settings.register(GMToolkit.MODULE_ID, "addXPPrompt", {
name: "GMTOOLKIT.Settings.AddXP.Prompt.name",
hint: "GMTOOLKIT.Settings.AddXP.Prompt.hint",
Expand Down

0 comments on commit 06b27bb

Please sign in to comment.