Skip to content

Commit

Permalink
Merge pull request #45 from orffen/r10
Browse files Browse the repository at this point in the history
r10 Release
  • Loading branch information
orffen committed Jun 4, 2023
2 parents a1a886b + 444f638 commit fe5fe6a
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
9 changes: 9 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
"ITEM.TypeSpell": "Spell",
"ITEM.TypeFeature": "Special Ability",

"TYPES.Actor.character": "Character",
"TYPES.Actor.monster": "Monster",

"TYPES.Item.item": "Equipment",
"TYPES.Item.weapon": "Weapon",
"TYPES.Item.armor": "Armor",
"TYPES.Item.spell": "Spell",
"TYPES.Item.feature": "Special Ability",

"BASICFANTASYRPG.CombatTab": "Combat",
"BASICFANTASYRPG.DescriptionTab": "Description",
"BASICFANTASYRPG.ItemsTab": "Equipment",
Expand Down
15 changes: 14 additions & 1 deletion module/basicfantasyrpg.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,20 @@ Hooks.once("ready", async function() {

Hooks.on("createActor", async function(actor) {
if (actor.type === "character") {
actor.data.token.actorLink = true;
actor.updateSource({
prototypeToken: {
actorLink: true,
disposition: CONST.TOKEN_DISPOSITIONS.FRIENDLY
}
});
}
else if (actor.type === "monster") {
actor.updateSource({
prototypeToken: {
appendNumber: true,
displayName: CONST.TOKEN_DISPLAY_MODES.OWNER
}
});
}
});

Expand Down
10 changes: 5 additions & 5 deletions system.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"id": "basicfantasyrpg",
"title": "Basic Fantasy RPG",
"description": "The Basic Fantasy RPG system for FoundryVTT!",
"version": "r9",
"version": "r10",
"compatibility": {
"minimum": "10",
"verified": "10",
"maximum": "10"
"minimum": "11",
"verified": "11",
"maximum": "11"
},
"authors": [
{
Expand All @@ -32,6 +32,6 @@
"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/r9.zip",
"download": "https://github.com/orffen/basicfantasyrpg/archive/refs/tags/r10.zip",
"license": "LICENSE.txt"
}
2 changes: 1 addition & 1 deletion templates/actor/parts/actor-items.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<ol class="items-list">
<li class="item flexrow items-header">
<div class="item-name">{{localize 'ITEM.TypeItem'}}</div>
<div class="item-name">{{localize 'TYPES.Item.item'}}</div>
<div class="item-detail">{{localize 'BASICFANTASYRPG.CarriedWeight'}}: {{carriedWeight}} lbs.</div>
<div class="item-controls">
<a class="item-control item-create" title="Create item" data-type="item"><i class="fas fa-plus"></i> {{localize 'BASICFANTASYRPG.Add'}}</a>
Expand Down

0 comments on commit fe5fe6a

Please sign in to comment.