From 2b0320be5fe068fb79895a014c1d7f4482b3c8c0 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Tue, 27 Sep 2022 13:29:11 +0200 Subject: [PATCH] Fix #50 --- modules/pegasus-actor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/pegasus-actor.js b/modules/pegasus-actor.js index b02d2cd..bb9b115 100644 --- a/modules/pegasus-actor.js +++ b/modules/pegasus-actor.js @@ -2005,6 +2005,10 @@ export class PegasusActor extends Actor { ui.notifications.warn("Warning! No more space available in cargo !!") } + // Destroyed + if ( this.system.statistics.hr.currentlevel == 0) { + ChatMessage.create({ content: `The vehicle ${this.name} has been destroyed !`} ) + } } }