Skip to content

Commit fe5fe6a

Browse files
authored
Merge pull request #45 from orffen/r10
r10 Release
2 parents a1a886b + 444f638 commit fe5fe6a

File tree

4 files changed

+29
-7
lines changed

4 files changed

+29
-7
lines changed

lang/en.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
"ITEM.TypeSpell": "Spell",
99
"ITEM.TypeFeature": "Special Ability",
1010

11+
"TYPES.Actor.character": "Character",
12+
"TYPES.Actor.monster": "Monster",
13+
14+
"TYPES.Item.item": "Equipment",
15+
"TYPES.Item.weapon": "Weapon",
16+
"TYPES.Item.armor": "Armor",
17+
"TYPES.Item.spell": "Spell",
18+
"TYPES.Item.feature": "Special Ability",
19+
1120
"BASICFANTASYRPG.CombatTab": "Combat",
1221
"BASICFANTASYRPG.DescriptionTab": "Description",
1322
"BASICFANTASYRPG.ItemsTab": "Equipment",

module/basicfantasyrpg.mjs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,20 @@ Hooks.once("ready", async function() {
8686

8787
Hooks.on("createActor", async function(actor) {
8888
if (actor.type === "character") {
89-
actor.data.token.actorLink = true;
89+
actor.updateSource({
90+
prototypeToken: {
91+
actorLink: true,
92+
disposition: CONST.TOKEN_DISPOSITIONS.FRIENDLY
93+
}
94+
});
95+
}
96+
else if (actor.type === "monster") {
97+
actor.updateSource({
98+
prototypeToken: {
99+
appendNumber: true,
100+
displayName: CONST.TOKEN_DISPLAY_MODES.OWNER
101+
}
102+
});
90103
}
91104
});
92105

system.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"id": "basicfantasyrpg",
33
"title": "Basic Fantasy RPG",
44
"description": "The Basic Fantasy RPG system for FoundryVTT!",
5-
"version": "r9",
5+
"version": "r10",
66
"compatibility": {
7-
"minimum": "10",
8-
"verified": "10",
9-
"maximum": "10"
7+
"minimum": "11",
8+
"verified": "11",
9+
"maximum": "11"
1010
},
1111
"authors": [
1212
{
@@ -32,6 +32,6 @@
3232
"secondaryTokenAttribute": null,
3333
"url": "https://github.com/orffen/basicfantasyrpg",
3434
"manifest": "https://raw.githubusercontent.com/orffen/basicfantasyrpg/main/system.json",
35-
"download": "https://github.com/orffen/basicfantasyrpg/archive/refs/tags/r9.zip",
35+
"download": "https://github.com/orffen/basicfantasyrpg/archive/refs/tags/r10.zip",
3636
"license": "LICENSE.txt"
3737
}

templates/actor/parts/actor-items.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

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

0 commit comments

Comments
 (0)