From 39c403306c0fba635df602faa8cca5c2c6ed2ea5 Mon Sep 17 00:00:00 2001 From: Chris Schmalz Date: Fri, 29 Aug 2025 23:27:30 -0700 Subject: [PATCH] check for old creatures --- module/actor/actor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/actor/actor.js b/module/actor/actor.js index 0bede5a..a46a292 100644 --- a/module/actor/actor.js +++ b/module/actor/actor.js @@ -74,6 +74,10 @@ export class MothershipActor extends Actor { //set values system.netHP.value = ((Number(system.hits.max ?? 0)-Number(system.hits.value ?? 0)-1) * Number(system.health.max ?? 0)) + Number(system.health.value ?? 0); system.netHP.max = Number(system.health.max ?? 0) * Number(system.hits.max ?? 0); + //notes + //check if actor has notes + system.notes ??= ""; + } // Prepare Ship type specific data