Skip to content

Commit

Permalink
Merge pull request #13515 from BE-Arbiter/StarWars5E_npc
Browse files Browse the repository at this point in the history
Star wars 5E : Bugfixes following PR #13282
  • Loading branch information
kfroll20 authored Nov 18, 2024
2 parents ad0cd2a + 4595ace commit e55d783
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 2 additions & 0 deletions StarWars5E/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions StarWars5E/StarWars5E_CSS.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
11 changes: 0 additions & 11 deletions StarWars5E/StarWars5E_HTML.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e55d783

Please sign in to comment.