feat (#338): remove checkbox for unnatural

This commit is contained in:
Samuel Lopez
2026-02-10 15:24:33 +01:00
parent 98f45da2cd
commit ff00eaa53b
3 changed files with 10 additions and 3 deletions
+2 -1
View File
@@ -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:**
+4
View File
@@ -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;
}
+4 -2
View File
@@ -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) {