diff --git a/StarWars5E/README.md b/StarWars5E/README.md index 1ba7c62865bb..986264d76eea 100644 --- a/StarWars5E/README.md +++ b/StarWars5E/README.md @@ -8,6 +8,8 @@ More Information - [Star Wars 5e Discord](https://discord.gg/zYcPYTu) # Changelog +## 2024-11-16 +* correction following problem in PR 13282 : Npc traits visibility & Sheet Refresh problem ## 2024-07-06 * Changed the npc Layout * Added the possibility to switch "edit/view" of npc traits diff --git a/StarWars5E/StarWars5E_CSS.css b/StarWars5E/StarWars5E_CSS.css index bce39ff2c400..d1f0159d049e 100644 --- a/StarWars5E/StarWars5E_CSS.css +++ b/StarWars5E/StarWars5E_CSS.css @@ -1347,6 +1347,9 @@ button[type=roll] * { .sheet-npc_display_row .sheet-actions_container{ width : 50%; } +.sheet-npc_display_row .sheet-traits .sheet-display{ + width : 100%; +} .sheet-attack .sheet-options, .sheet-power .sheet-options, diff --git a/StarWars5E/StarWars5E_HTML.html b/StarWars5E/StarWars5E_HTML.html index 83a9175e6b9a..2c5639168686 100644 --- a/StarWars5E/StarWars5E_HTML.html +++ b/StarWars5E/StarWars5E_HTML.html @@ -8128,14 +8128,6 @@ update_npc_skills(); }); - on("change:repeating_npctrait:attr_name cange:repeating_npctrait:attr_desc"){ - if(eventinfo.sourceType === "sheetworker") { - return; - } - var traitid = eventinfo.sourceAttribute.substring(20, 40); - update_npc_trait(traitid) - } - on("change:repeating_npcaction:attack_flag change:repeating_npcaction:attack_type change:repeating_npcaction:attack_range change:repeating_npcaction:attack_target change:repeating_npcaction:attack_tohit change:repeating_npcaction:attack_damage change:repeating_npcaction:attack_damagetype change:repeating_npcaction:attack_damage2 change:repeating_npcaction:attack_damagetype2 change:repeating_npcaction-l:attack_flag change:repeating_npcaction-l:attack_type change:repeating_npcaction-l:attack_range change:repeating_npcaction-l:attack_target change:repeating_npcaction-l:attack_tohit change:repeating_npcaction-l:attack_damage change:repeating_npcaction-l:attack_damagetype change:repeating_npcaction-l:attack_damage2 change:repeating_npcaction-l:attack_damagetype2 change:repeating_npcaction:show_desc change:repeating_npcaction-l:show_desc change:repeating_npcaction:description change:repeating_npcaction-l:description", function(eventinfo) { var actionid = eventinfo.sourceAttribute.substring(20, 40); var legendary = eventinfo.sourceAttribute.indexOf("npcaction-l") > -1 ? true : false; @@ -12589,9 +12581,6 @@ }); }; - var update_npc_trait(trait_id){ - } - var update_npc_action = function(update_id, legendary) { if(update_id.substring(0,1) === "-" && update_id.length === 20) { do_update_npc_action([update_id], legendary);