diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..e74ed9f --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "trailingComma": "es5", + "tabWidth": 4, + "semi": false, + "singleQuote": true +} diff --git a/lib/build.js b/lib/build.js index eeecae3..02d4df6 100644 --- a/lib/build.js +++ b/lib/build.js @@ -88,6 +88,7 @@ module.exports = async (config) => { filePath = path.join(pagePath, file), // read page file data = fse.readFileSync(filePath, "utf-8"), + info = fse.statSync(filePath, "utf-8"), // render page { attributes, body } = frontMatter(data), { content_type: contentType, tags: originalTags = [] } = @@ -123,6 +124,7 @@ module.exports = async (config) => { page: { name, ...attributes, + date_upd: attributes?.date_pub !== info.mtime ? info.mtime : '', body: updatedBody, destPath, filePath, diff --git a/package.json b/package.json index 5d5ea47..4ad0804 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "planar-vagabond", - "version": "0.11.1", + "version": "0.11.2", "description": "", "main": "index.js", "scripts": { diff --git a/site.config.json5 b/site.config.json5 index 54aeb55..3721878 100644 --- a/site.config.json5 +++ b/site.config.json5 @@ -1,25 +1,26 @@ { - site: { - title: "The Planar Vagabond's Guide to the Multiverse", - author: { - name: "Eric Woodward", - email: "redacted@planarvagabond.com", // not used - photo: "/images/eric-8bit.gif", - site: "https://itsericwoodward.com", - }, + site: { + title: "The Planar Vagabond's Guide to the Multiverse", + author: { + name: "Eric Woodward", + email: "redacted@planarvagabond.com", // not used + photo: "/images/eric-8bit.gif", + site: "https://itsericwoodward.com", + }, - base_uri: "", - robots: "index,follow", - language: "en-us", - copyright: "Copyright 2023 Eric Woodward, licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.", - basePath: "", - uri: "https://www.planarvagabond.com", - }, - build: { - srcPath: "src", - outputPath: "out", - }, - serve: { - port: 4997, - }, + base_uri: "", + robots: "index,follow", + language: "en-us", + copyright: "Copyright 2023 Eric Woodward, licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.", + basePath: "", + uri: "https://www.planarvagabond.com", + search_uri: "www.planarvagabond.com", + }, + build: { + srcPath: "src", + outputPath: "out", + }, + serve: { + port: 4997, + }, } diff --git a/src/assets/fragments/rules/menu.md b/src/assets/fragments/rules/menu.md index 49b36f2..0e7eae6 100644 --- a/src/assets/fragments/rules/menu.md +++ b/src/assets/fragments/rules/menu.md @@ -1,11 +1,13 @@ + +
-Version 0.9.3 / 2023-05-18 +Version 0.11.2 / 2023-06-18 -- [Basics](/rules/basics.html) -- [Combat](/rules/combat.html) -- [Adventuring](/rules/adventuring.html) -- [Magic](/rules/magic.html) -- [Referees Only](/rules/referees.html) +- [Basics](/rules/basics.html) +- [Combat](/rules/combat.html) +- [Adventuring](/rules/adventuring.html) +- [Magic](/rules/magic.html) +- [Referees Only](/rules/referees.html)
diff --git a/src/assets/fragments/today.md b/src/assets/fragments/today.md new file mode 100644 index 0000000..5fded22 --- /dev/null +++ b/src/assets/fragments/today.md @@ -0,0 +1,5 @@ + + +As of last session, it is the **middle of the 2nd phase of the 1st Warday of Urtson-Nu, in year 5023 of the Common Astral Calendar**. diff --git a/src/layouts/partials/navmain.ejs b/src/layouts/partials/navmain.ejs index 05861a1..61430e0 100644 --- a/src/layouts/partials/navmain.ejs +++ b/src/layouts/partials/navmain.ejs @@ -24,7 +24,7 @@ - + diff --git a/src/layouts/partials/rulesHeader.ejs b/src/layouts/partials/rulesHeader.ejs index 870ef8f..d9323bf 100644 --- a/src/layouts/partials/rulesHeader.ejs +++ b/src/layouts/partials/rulesHeader.ejs @@ -34,7 +34,7 @@ var title = (page.title ?? '').replace('HOSR ', '');
- Version 0.11.0 / 2023-05-22 + Version 0.11.2 / 2023-06-18
@@ -178,7 +187,7 @@ A natural 1 on an attack is a fumble. Roll 1d20 on the Fumble Table to see what [Fumble Table] -[^1]: **Automatic Hits** - Roll 1d20 to check for critical, but ignore further fumbles. +[^1]: **Automatic Hits**: Roll 1d20 to check for critical, but ignore further fumbles. @@ -190,16 +199,15 @@ Spend a round fighting defensively (parrying, blocking, dodging, feinting, etc.) Most characters can move 40' in a combat round. -- **When Engaged** - Can't move away from foe without retreating. - -- **When Prone** - Use 1/2 movement to stand up. +- **When Engaged**: Can't move away from foe without retreating. +- **When Prone**: Use 1/2 movement to stand up. ### Retreating Engaged characters that wish to move away can either make a fighting retreat, or a full retreat. -- **Fighting Retreat** - Can move backwards at 1/2 their normal movement rate and take an attack or defend action, while avoiding giving enemies a free attack. -- **Full Retreat** - Turning and fleeing from combat at their full movement rate, enemies can make a free attack at +2 bonus. +- **Fighting Retreat**: Can move backwards at 1/2 their normal movement rate and take an attack or defend action, while avoiding giving enemies a free attack. +- **Full Retreat**: Turning and fleeing from combat at their full movement rate, enemies can make a free attack at +2 bonus. ### Weapons diff --git a/src/pages/rules/magic.md b/src/pages/rules/magic.md index 00cd0cb..94449c2 100644 --- a/src/pages/rules/magic.md +++ b/src/pages/rules/magic.md @@ -1,5 +1,5 @@ --- -title: "HOSR Core Rules: Magic" +title: 'HOSR Core Rules: Magic' description: date_pub: 2023-04-22T16:42:00-04:00 section: rules @@ -71,8 +71,8 @@ Arcane spell casters memorize spells from their spell books, which must be close -- **Starting Spells (SS)** - The number of starting spells in a new caster's spell book. -- **Copy Chance (CC)** - The chance to copy spells scrolls and other sources into spellbook. Roll 1d100, result under score is success, failure means can't try again until next XP level. +- **Starting Spells (SS)**: The number of starting spells in a new caster's spell book. +- **Copy Chance (CC)**: The chance to copy spells scrolls and other sources into spellbook. Roll 1d100, result under score is success, failure means can't try again until next XP level. ### Divine Magic @@ -82,9 +82,9 @@ Divine spell casters memorize spells through prayer to their gods. When praying - If they ever fall out of favor with their deity, penalties may be imposed (ex: -1 to attack, a reduction in spells, or being sent on a perilous quest). - To regain favor, they would need to perform a great deed for their deity (referee's choice - ex: donating relics or gold, building a temple, converting others to the religion, etc.). - Divine casters can cast reversed versions of spells (possibly gaining deity disfavor). - - **Lawful characters** - Only use reversed spells in dire circumstances. - - **Chaotic characters** - Usually use reversed spells, only using normal spell versions to benefit their allies. - - **Neutral characters** - Usually favor either normal or reversed spells, depending on the deity. + - **Lawful characters**: Only use reversed spells in dire circumstances. + - **Chaotic characters**: Usually use reversed spells, only using normal spell versions to benefit their allies. + - **Neutral characters**: Usually favor either normal or reversed spells, depending on the deity. - Divine casters can use divine magic items and scrolls for spells on their spell list. ### Pact Magic diff --git a/src/pages/rules/referees.md b/src/pages/rules/referees.md index fe9d3da..761fe6c 100644 --- a/src/pages/rules/referees.md +++ b/src/pages/rules/referees.md @@ -1,8 +1,7 @@ --- -title: "HOSR Core Rules: Referees Only" +title: 'HOSR Core Rules: Referees Only' description: date_pub: 2023-04-23T00:04:00-04:00 -date_upd: 2023-04-26T23:02:00-04:00 section: rules content_type: feature short_code: rhr @@ -78,42 +77,4 @@ Creatures with bonus hit points (ex: HD X+1) attack as one HD higher. -#### Reaction Rolls - -If creature / NPC reaction isn't obvious, roll 2d6 (+ CHA modifier, if someone tries to interact). - -
- -| 2d6 | Result | -| :-: | :-----: | -| 2- | Attack! | -| 3 | Hateful | -| 4 | Leery | -| 5 | Rude | -| 6 | Aloof | -| 7 | Neutral | -| 8 | Partial | -| 9 | Cordial | -| 10 | Amiable | -| 11 | Helpful | -| 12+ | Family! | - -[Reaction Table] - -
- -
- -| CHA | Mod | -| :---: | :-: | -| 3 | -2 | -| 4-8 | -1 | -| 9-12 | +0 | -| 13-17 | +1 | -| 18+ | +2 | - -[Charisma Modifier] - -
- More to come...