File tree Expand file tree Collapse file tree 4 files changed +29
-7
lines changed
Expand file tree Collapse file tree 4 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change @@ -86,7 +86,20 @@ Hooks.once("ready", async function() {
8686
8787Hooks . 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
Original file line number Diff line number Diff line change 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 {
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}
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments