With compendiums + talent management
This commit is contained in:
@@ -33,19 +33,8 @@ export class HawkmoonAutomation {
|
||||
}
|
||||
|
||||
for(let auto of relevantAutomations) {
|
||||
console.log(" Script", auto.script)
|
||||
try {
|
||||
let result = eval(auto.script)
|
||||
if (result.isValid) {
|
||||
return { isValid: result.isValid, item: duplicate(result) }
|
||||
} else {
|
||||
if (result.warningMessage) {
|
||||
ui.notifications.warn(result.warningMessage)
|
||||
}
|
||||
}
|
||||
}
|
||||
catch(error) {
|
||||
ui.notifications.error("Erreur lors du processing de l'automation : " + error)
|
||||
if ( event == "on-drop") {
|
||||
return actor.checkCompetenceLevel( auto.competence, auto.minLevel)
|
||||
}
|
||||
}
|
||||
return {isValid: false}
|
||||
|
Reference in New Issue
Block a user