Skip to content

Commit f501053

Browse files
committed
fix: Update name of Fantasy Statblocks in settings
1 parent 37f3387 commit f501053

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

src/settings/settings.ts

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ export default class InitiativeTrackerSettings extends PluginSettingTab {
331331
this.display();
332332
});
333333
});
334-
new Setting(additionalContainer)
334+
new Setting(additionalContainer)
335335
.setName("Resolve Initiative Ties")
336336
.setDesc(
337337
"Define what happens if two creatures have the same initiative."
@@ -340,7 +340,9 @@ export default class InitiativeTrackerSettings extends PluginSettingTab {
340340
d.addOption(RESOLVE_TIES.playerFirst, "Player first");
341341
d.addOption(RESOLVE_TIES.npcFirst, "NPC first");
342342
d.addOption(RESOLVE_TIES.random, "Random");
343-
d.setValue(this.plugin.data.resolveTies ?? RESOLVE_TIES.playerFirst);
343+
d.setValue(
344+
this.plugin.data.resolveTies ?? RESOLVE_TIES.playerFirst
345+
);
344346
d.onChange(async (v) => {
345347
this.plugin.data.resolveTies = v;
346348
this.plugin.saveSettings();
@@ -952,11 +954,11 @@ export default class InitiativeTrackerSettings extends PluginSettingTab {
952954
await this.plugin.saveSettings();
953955
}
954956
new Setting(containerEl)
955-
.setName("Sync Monsters from TTRPG Statblocks")
957+
.setName("Sync Monsters from Fantasy Statblocks")
956958
.setDesc(
957959
createFragment((e) => {
958960
e.createSpan({
959-
text: "Homebrew creatures saved to the TTRPG Statblocks plugin will be available to use."
961+
text: "Homebrew creatures saved to the Fantasy Statblocks plugin will be available to use."
960962
});
961963
if (!this.plugin.canUseStatBlocks) {
962964
e.createEl("br");
@@ -965,7 +967,7 @@ export default class InitiativeTrackerSettings extends PluginSettingTab {
965967
text: "Install and enable the "
966968
});
967969
e.createEl("a", {
968-
text: "TTRPG Statblocks",
970+
text: "Fantasy Statblocks",
969971
href: "obsidian://show-plugin?id=obsidian-5e-statblocks"
970972
});
971973
e.createSpan({
@@ -1089,8 +1091,14 @@ class NewPlayerModal extends Modal {
10891091
this.player.name = name ?? this.player.name;
10901092
this.player.ac = parseInt(ac ?? this.player.ac, 10);
10911093
this.player.hp = parseInt(hp ?? this.player.hp, 10);
1092-
this.player.level = parseInt(level ?? this.player.level, 10);
1093-
this.player.modifier = parseInt(modifier ?? this.player.modifier, 10);
1094+
this.player.level = parseInt(
1095+
level ?? this.player.level,
1096+
10
1097+
);
1098+
this.player.modifier = parseInt(
1099+
modifier ?? this.player.modifier,
1100+
10
1101+
);
10941102
this.player["statblock-link"] =
10951103
metaData.frontmatter["statblock-link"];
10961104
this.display();

0 commit comments

Comments
 (0)