feat (#338): remove checkbox for unnatural
This commit is contained in:
+2
-1
@@ -7,7 +7,8 @@
|
||||
### **Features:**
|
||||
|
||||
- [#312](https://github.com/deltagreen-foundryvtt/delta-green-foundry-vtt-system/issues/312) - Add tooltip to Breaking point.
|
||||
- [#328](https://github.com/deltagreen-foundryvtt/delta-green-foundry-vtt-system/issues/328) - Exclude Unnatural from Marked Failed Checks
|
||||
- [#328](https://github.com/deltagreen-foundryvtt/delta-green-foundry-vtt-system/issues/328) - Exclude Unnatural from Marked Failed Checks.
|
||||
- [#338](https://github.com/deltagreen-foundryvtt/delta-green-foundry-vtt-system/issues/338) - Remove checkbox for unnatural skill.
|
||||
|
||||
### **Bug Fixes:**
|
||||
|
||||
|
||||
@@ -543,6 +543,10 @@ input.checkbox-skill-input {
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
input.checkbox-skill-input:disabled {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.deltagreen .sheet-header .header-top {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
@@ -115,9 +115,11 @@ export default class DGAgentSheet extends DGActorSheet {
|
||||
static async _processSkillImprovements() {
|
||||
const { skills, typedSkills } = this.actor.system;
|
||||
|
||||
const failedSkills = Object.values(skills).filter((skill) => skill.failure);
|
||||
const failedSkills = Object.values(skills).filter(
|
||||
(skill) => skill.failure && !skill.cannotBeImprovedByFailure,
|
||||
);
|
||||
const failedTypedSkills = Object.values(typedSkills).filter(
|
||||
(skill) => skill.failure,
|
||||
(skill) => skill.failure && !skill.cannotBeImprovedByFailure,
|
||||
);
|
||||
|
||||
if (failedSkills.length + failedTypedSkills.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user