Add icons and background

This commit is contained in:
2022-11-09 23:39:55 +01:00
parent 3718749519
commit 4f04a3c97b
18 changed files with 25 additions and 8 deletions

View File

@@ -31,13 +31,22 @@ export class HawkmoonAutomation {
if ( !relevantAutomations || relevantAutomations.length == 0) {
return {isValid: true}
}
let validTab = []
for(let auto of relevantAutomations) {
if ( event == "on-drop") {
return actor.checkCompetenceLevel( auto.competence, auto.minLevel)
if ( event == "on-drop") {
validTab.push( actor.checkAttributOrCompetenceLevel( auto.competence, auto.minLevel) )
}
}
return {isValid: false}
// Post process validation array
for (let ret of validTab) {
if ( !ret.isValid) {
return ret
}
}
return {isValid: true}
}
}