Skip to content

Commit

Permalink
Release 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
stanavdb authored Jan 29, 2025
2 parents 6db5808 + 1895209 commit 075d824
Show file tree
Hide file tree
Showing 32 changed files with 771 additions and 136 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
# Build
- name: Build release
run: |
npm run build:release
npm run build:release ${{ env.ZIP_NAME }}
# Create release
- name: Create release
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cosmere-rpg",
"version": "0.2.1",
"version": "0.2.2",
"private": true,
"type": "module",
"scripts": {
Expand Down
18 changes: 14 additions & 4 deletions scripts/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@ import archiver from 'archiver';
// Constants
const BUILD_DIR = 'build';

// Check for filename from input (optional)
let filename = process.argv[2];

// Get latest tag from git
const tag = child_process.execSync('git describe --tags --abbrev=0').toString().trim();
if (!filename) {
const tag = child_process.execSync('git describe --tags --abbrev=0').toString().trim();

console.log(`Creating zip for tag: ${tag}`);

// Set filename
filename = `cosmere-rpg-${tag}.zip`;
}

// Create a file to stream archive data to
const output = fs.createWriteStream(
`cosmere-rpg-${tag}.zip`
);
const output = fs.createWriteStream(filename);

// Create a new archive
const archive = archiver('zip', {
Expand All @@ -25,5 +33,7 @@ archive.pipe(output);
// Add files to the archive
archive.directory(BUILD_DIR, false);

console.log(`Writing zip file to: ${output.path}`);

// Finalize the archive
archive.finalize();
22 changes: 17 additions & 5 deletions src/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,9 @@
"Cost": "Activation Cost",
"Consume": "Resource Consumption",
"Uses": "Limited Uses",
"Recharge": "Recharge"
"Recharge": "Recharge",
"AdditionalFormula": "Roll Formula Extension",
"AdditionalFormulaDescription": "Input any extra modifiers you wish to add to this item's d20 Skill Roll. This input will be treated as a dice formula, but any die you add won't be available for advantage/disadvantage currently. Paramters you can use: @mod, @attribute & @skill.rank refer to the values of the skills selected here, but the whole list of skills and attributes can be accessed - ask on the discord for help!"
},
"Attack": {
"Title": "Attack",
Expand Down Expand Up @@ -794,6 +796,13 @@
"Unconscious": "Unconscious"
},
"Sheet": {
"Descriptions": {
"DescriptionHeader": "Description",
"ShortHeader": "Short Description",
"ChatHeader": "Chat Description",
"Collapsible": "Toggle Collapsible",
"Edit": "Edit Description"
},
"Effects": {
"Label": "Effects",
"Inactive": "Inactive Effects",
Expand Down Expand Up @@ -861,7 +870,10 @@
"ReduceFocus": "Click to reduce focus from selected token(s).",
"RollCrit": "Click to roll critical damage.",
"RollAdvantage": "Click to roll with advantage.",
"RollDisadvantage": "Click to roll with disadvantage."
"RollDisadvantage": "Click to roll with disadvantage.",
"ApplyInjury": "Click to apply injury to character.",
"UndoDamage": "Click to undo damage taken.",
"UndoHealing": "Click to undo healing."
},
"Trays": {
"Targets": "Targets"
Expand All @@ -875,8 +887,6 @@
"ApplyDamage": "{actor} takes <strong>{amount} damage</strong>.",
"ApplyHealing": "{actor} recovers <strong>{amount} health</strong>.",
"DamageCalculation": "Damage Calculation: {calculation}",
"UndoDamage": "Click to undo damage taken.",
"UndoHealing": "Click to undo healing.",
"ViewRollsDetails": "Roll Details",
"Welcome": "<h2>Welcome to the Cosmere RPG System!</h2> <p>Thank you for trying out the community-developed Cosmere Roleplaying Game system! You're currently using version <strong>{version}</strong>. As this is an early release, some bugs or missing features are to be expected, but your feedback will help us improve the system. </p> <p>For discussions, updates, and support, join us on the <a href=\"{discordLink}\">Metalworks Discord</a> server.</p> <p>If you encounter any issues or have suggestions, we'd love to hear from you! Please report them on our <a href=\"{issuesLink}\">GitHub Issues page</a> or on the <a href=\"{discordLink}\">Metalworks Discord</a>. Be sure to review the <a href=\"{contributingLink}\">contribution guidelines</a> if you'd like to get involved in development. </p> <p>We're excited to have you on board and hope you enjoy playing in the Cosmere!</p>"
},
Expand All @@ -903,7 +913,8 @@
"Apply": "Apply",
"Graze": "Graze",
"Full": "Full"
}
},
"TemporaryBonus": "Temporary Modifiers (formula)"
},
"ROLLS": {
"Recovery": "[character] rolls their recovery die.",
Expand Down Expand Up @@ -1006,6 +1017,7 @@
"GENERIC": {
"Unknown": "Unknown",
"None": "None",
"Custom": "Custom",
"Default": "Default",
"Document": "Document",
"Formula": "Formula",
Expand Down
108 changes: 108 additions & 0 deletions src/packs/tables/injury-effects.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"name": "Injury Effects",
"img": "icons/skills/wounds/bone-broken-marrow-yellow.webp",
"description": "",
"results": [
{
"type": "text",
"weight": 1,
"range": [
1,
2
],
"drawn": false,
"_id": "gpJNDSRsoaWUM0T0",
"text": "<strong>Exausted (-1)</strong> Any Injury that lowers your overall stamina.",
"img": "icons/svg/sleep.svg",
"documentId": null,
"flags": {},
"_key": "!tables.results!VZKozajxpYEmjeL5.gpJNDSRsoaWUM0T0"
},
{
"type": "text",
"weight": 1,
"range": [
3,
3
],
"drawn": false,
"_id": "hp5hWMYB10llrOtH",
"text": "<strong>Exausted (-2)</strong> Any Injury that lowers your overall stamina.",
"img": "icons/svg/sleep.svg",
"documentId": null,
"flags": {},
"_key": "!tables.results!VZKozajxpYEmjeL5.hp5hWMYB10llrOtH"
},
{
"type": "text",
"weight": 1,
"range": [
4,
5
],
"drawn": false,
"_id": "fpye65P7pqocOxCq",
"text": "<strong>Slowed</strong> Injured leg or foot, or any injury that lowers your overall speed.",
"img": "icons/svg/net.svg",
"documentId": null,
"flags": {},
"_key": "!tables.results!VZKozajxpYEmjeL5.fpye65P7pqocOxCq"
},
{
"type": "text",
"weight": 1,
"range": [
6,
6
],
"drawn": false,
"_id": "K6q4agriRKoldHkS",
"text": "<strong>Disoriented</strong> Injured head, or widespread injury that overwhelms your senses.",
"img": "icons/svg/stoned.svg",
"documentId": null,
"flags": {},
"_key": "!tables.results!VZKozajxpYEmjeL5.K6q4agriRKoldHkS"
},
{
"type": "text",
"weight": 1,
"range": [
7,
7
],
"drawn": false,
"_id": "Xsus0oW97bVGoZEW",
"text": "<strong>Surprised</strong> Overwhelmed due to the shock of an injury.",
"img": "icons/svg/terror.svg",
"documentId": null,
"flags": {},
"_key": "!tables.results!VZKozajxpYEmjeL5.Xsus0oW97bVGoZEW"
},
{
"type": "text",
"weight": 1,
"range": [
8,
8
],
"drawn": false,
"_id": "W2tWPsVNKlnoXpIo",
"text": "<strong>Can only use one hand</strong> Injured arm or hand, or any injury that lowers your overall coordination.",
"img": "icons/svg/cancel.svg",
"documentId": null,
"flags": {},
"_key": "!tables.results!VZKozajxpYEmjeL5.W2tWPsVNKlnoXpIo"
}
],
"replacement": true,
"displayRoll": true,
"folder": null,
"ownership": {
"default": 0
},
"flags": {},
"formula": "1d8",
"_id": "VZKozajxpYEmjeL5",
"sort": 0,
"_key": "!tables!VZKozajxpYEmjeL5"
}
26 changes: 25 additions & 1 deletion src/patch-notes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@
### Patch 0.2.1
### Patch 0.2.2 - Jan 2025
Welcome to 2025 everyone! To begin the year of the Cosmere RPG off right, we're releasing this small patch with a few key improvements that you've been asking for.

A quick heads-up: our plan is to do one more feature release (0.3.0) before spring which will contain some major new features and then we will be aiming for 1.0 release alongside the full RPG release. Therefore if you have a question, please check our Github repo to see what we have planned before asking questions like "Are you thinking of...".

#### What's New
- **Roll Modifiers**
- Added functionality to add global modifiers to any item with a Skill Roll Activation through the Item Details tab.
- Added functionality to set Ad-hoc modifiers to any roll in the roll configuration dialog.
- These can both make use of the @ syntax to pull through Character stats
- *Warning - the @ syntax might not be perfect for the temporary modifiers. Please let us know if you have recreatable issues!*
- Added **Scaling Damage Dice** for Unarmed Attacks!
- ⬆️**Data Update:** This change creates a new @ property (`scalar.damage.unarmed`) that can be used in item damage roll formulas, therefore existing characters using the existing item will not get updated automatically.<br />We are also releasing 0.2.2 of the playtest materials module with those items updated, but for any existing games you will need to either import the new unarmed attack from there, or manually update existing actors.
- Added **Multiple Descriptions** to Items
- Now you can insert different descriptions for an item with different levels of verbosity based on what you want to see where.
- We have Chat, Short and Standard in order of priority for which is printed to the chat card.
- **Injuries** can now be rolled and applied from the chat card

#### Fixes
- **Actor Sheets:** Fixed an issue where using or recharging an item would reset the scroll position of the equipement list screen.
- **Chat Cards:** Improved the dice breakdown to handle multiple damage die rolls.

----

### Patch 0.2.1 - Nov 2024
A small release with fixes for bugs introduced with the last release and a handful of QoL updates.

⚠️ **Important:** Release `0.2.0` of the playtest materials contains a bug causing all weapons to apply the damage modifer twice. Please update your playtest materials module to the latest version if you haven't already.
Expand Down
50 changes: 50 additions & 0 deletions src/style/sheets/item/module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,56 @@

.tab[data-tab='description'].active {
display: flex;

.header {
display:flex;
flex-direction: row;
align-items: center;
margin-top: 1rem;

.title {
flex: 1;
text-align: center
}
}

.description-list {
flex-direction: row;
width: 100%;

.edit-img {
flex-direction: column;
margin-left: auto;
margin-right: 0.5rem;
}

.collapsible {
cursor: pointer;

.collapsible-content {
display: grid;
grid-template-rows: 0fr;
transition: grid-template-rows 250ms ease;

& > .wrapper {
overflow: hidden;
}
}

.fa-chevron-down {
transform: rotate(-90deg);
transition: all 250ms ease;
}

&.expanded .fa-chevron-down {
transform: rotate(0deg);
}

&.expanded .collapsible-content {
grid-template-rows: 1fr;
}
}
}
}

.tab[data-tab='details'].active {
Expand Down
4 changes: 2 additions & 2 deletions src/system.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "cosmere-rpg",
"title": "Cosmere Roleplaying Game",
"description": "A community-developed system for playing the Cosmere Roleplaying Game, by Dragonsteel Entertainment and Brotherwise Games.",
"version": "0.2.1",
"version": "0.2.2",
"compatibility": {
"minimum": "12",
"verified": "12"
Expand Down Expand Up @@ -68,5 +68,5 @@
},
"url": "https://github.com/the-metalworks/cosmere-rpg",
"manifest": "https://raw.githubusercontent.com/the-metalworks/cosmere-rpg/main/src/system.json",
"download": "https://github.com/the-metalworks/cosmere-rpg/releases/download/release-0.2.1/cosmere-rpg-release-0.2.1.zip"
"download": "https://github.com/the-metalworks/cosmere-rpg/releases/download/release-0.2.2/cosmere-rpg-release-0.2.2.zip"
}
1 change: 1 addition & 0 deletions src/system/applications/actor/adversary-sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class AdversarySheet extends BaseActorSheet<AdversarySheetRenderContext>
'sheet-content': {
template:
'systems/cosmere-rpg/templates/actors/adversary/parts/sheet-content.hbs',
scrollable: ['.tab-body'],
},
},
);
Expand Down
1 change: 1 addition & 0 deletions src/system/applications/actor/character-sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export class CharacterSheet extends BaseActorSheet {
'sheet-content': {
template:
'systems/cosmere-rpg/templates/actors/character/parts/sheet-content.hbs',
scrollable: ['.tab-body'],
},
},
);
Expand Down
Loading

0 comments on commit 075d824

Please sign in to comment.