Skip to content

Commit

Permalink
Merge pull request #47 from orffen/4e
Browse files Browse the repository at this point in the history
4e updates
  • Loading branch information
orffen committed Jul 20, 2023
2 parents fe5fe6a + 8882f0d commit 84cbafe
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,10 @@ The monster sheet has a "special abilities" field. This field should be 0, 1, or

All software components are licensed under the MIT license - see *LICENSE.txt* for details.

All Basic Fantasy Role-Playing Game content is licensed under the [Open Game License and Basic Fantasy Role-Playing Game Product Identity License](https://www.basicfantasy.org/srd/#open_game_license).
Basic Fantasy Role-Playing Game content is distributed under the terms of the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/).

### Copyright Notices

- Open Game License v 1.0 Copyright 2000, Wizards of the Coast, Inc.
- System Reference Document Copyright 2000-2003, Wizards of the Coast, Inc.; Authors Jonathan Tweet, Monte Cook, Skip Williams, Rich Baker, Andy Collins, David Noonan, Rich Redman, Bruce R. Cordell, John D. Rateliff, Thomas Reid, James Wyatt, based on original material by E. Gary Gygax and Dave Arneson.
- Castles & Crusades: Players Handbook, Copyright 2004, Troll Lord Games; Authors Davis Chenault and Mac Golden.
- Castles & Crusades: Monsters Product Support, Copyright 2005, Troll Lord Games.
- The Basic Fantasy Field Guide Copyright © 2010 Chris Gonnerman and Contributors.
- Basic Fantasy Role-Playing Game Copyright © 2006-2015 Chris Gonnerman.
- Basic Fantasy Role-Playing Game Copyright © 2006-2023 Chris Gonnerman.
- Boilerplate System Copyright © 2020 Asacolips Projects / Foundry Mods.
- Basic Fantasy RPG for FoundryVTT © 2022 Steve Simenic.
13 changes: 8 additions & 5 deletions module/sheets/actor-sheet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ export class BasicFantasyRPGActorSheet extends ActorSheet {
if (!quantity || quantity == '' || Number.isNaN(quantity) || quantity < 0) {
return; // check we have a valid quantity, and do nothing if we do not
}
let q = Math.floor(quantity / 10);
let q = Math.floor(quantity / 20);
if (!Number.isNaN(parseFloat(moreWeight))) {
this.value += parseFloat(moreWeight) * quantity;
} else if (moreWeight === '*' && q > 0) {
} else if (moreWeight === '*' && q > 0) { // '*' is gold pieces
this.value += q;
}
}
Expand Down Expand Up @@ -158,9 +158,12 @@ export class BasicFantasyRPGActorSheet extends ActorSheet {

// Iterate through money, add to carried weight
if (context.data.money) {
for (let [k, v] of Object.entries(context.data.money)) {
carriedWeight._addWeight('*', v.value);
}
let gp = Number(context.data.money.gp.value);
gp += context.data.money.pp.value * 5;
gp += context.data.money.ep.value / 5;
gp += context.data.money.sp.value / 10;
gp += context.data.money.cp.value / 100;
carriedWeight._addWeight('*', gp); // '*' will calculate GP weight
}

// Assign and return
Expand Down
11 changes: 5 additions & 6 deletions system.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@
"id": "basicfantasyrpg",
"title": "Basic Fantasy RPG",
"description": "The Basic Fantasy RPG system for FoundryVTT!",
"version": "r10",
"version": "r11",
"compatibility": {
"minimum": "11",
"verified": "11",
"maximum": "11"
"verified": "11"
},
"authors": [
{
"name": "Orffen",
"email": "orffen@orffenspace.com",
"discord": "Orffen#4571"
"discord": "Orffen"
}
],
"esmodules": ["module/basicfantasyrpg.mjs"],
Expand All @@ -31,7 +30,7 @@
"primaryTokenAttribute": "hitPoints",
"secondaryTokenAttribute": null,
"url": "https://github.com/orffen/basicfantasyrpg",
"manifest": "https://raw.githubusercontent.com/orffen/basicfantasyrpg/main/system.json",
"download": "https://github.com/orffen/basicfantasyrpg/archive/refs/tags/r10.zip",
"manifest": "https://raw.githubusercontent.com/orffen/basicfantasyrpg/r11/system.json",
"download": "https://github.com/orffen/basicfantasyrpg/archive/refs/tags/r11.zip",
"license": "LICENSE.txt"
}

0 comments on commit 84cbafe

Please sign in to comment.