File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33[ Token Note Hover] ( https://foundryvtt.com/packages/token-note-hover )
44
5+ ## [ 4.0.9] ( https://github.com/jendave/token-note-hover/blob/main/CHANGELOG.md ) (2026-03-27)
6+
7+ * Updated * Group* Actor type for [ D&D 5E] ( https://foundryvtt.com/packages/dnd5e ) .
8+
59## [ 4.0.8] ( https://github.com/jendave/token-note-hover/blob/main/CHANGELOG.md ) (2026-03-23)
610
711* Added support for [ Sandbox] ( https://foundryvtt.com/packages/sandbox ) .
Original file line number Diff line number Diff line change @@ -26,8 +26,22 @@ export async function dnd5e(actor, displayImages) {
2626 return null ;
2727 }
2828 case "group" :
29- return await processNotes ( actor . system ?. description ?. full , actorIsOwner , displayImages ) ;
29+ return await getGroupNotes ( displayImages , actor , actorIsOwner ) ;
3030 default :
3131 return null ;
3232 }
3333}
34+
35+ async function getGroupNotes ( displayImages , actor , actorIsOwner ) {
36+ let groupNoteArray = "<div class=\"token-note-hover-hud-h3\">Group Members</div>" ;
37+ for ( let i = 0 ; i < actor . system . members . length ; i += 1 ) {
38+ groupNoteArray = groupNoteArray . concat ( "<p>" ) ;
39+ groupNoteArray = groupNoteArray . concat ( actor . system . members [ i ] . actor ?. name ) ;
40+ groupNoteArray = groupNoteArray . concat ( "</p>" ) ;
41+ }
42+ let publicNotes = "<div class=\"token-note-hover-hud-h3\">Group Details</div>" ;
43+ publicNotes = publicNotes . concat ( actor . system ?. description ?. summary , actor . system ?. description ?. full ) ;
44+ let notes = groupNoteArray . concat ( publicNotes ) ;
45+
46+ return await processNotes ( notes , actorIsOwner , displayImages ) ;
47+ }
You can’t perform that action at this time.
0 commit comments