From ef8f6310745a434317ba0f17875e1cb7db59e5a9 Mon Sep 17 00:00:00 2001 From: Skipper Date: Thu, 13 Feb 2025 22:14:31 +0000 Subject: Updated Aircraft.py Updated to do the prev_life/life swap in the aircraft add_state function. --- plugins/smoke_on_damage/Plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/smoke_on_damage/Plugin.py b/plugins/smoke_on_damage/Plugin.py index b3b4ccd..e6c57e2 100644 --- a/plugins/smoke_on_damage/Plugin.py +++ b/plugins/smoke_on_damage/Plugin.py @@ -1,5 +1,6 @@ """TThis plugin will cause the aircraft to emit smoke if it's health is below a certain threshold. -It is also an example of a plugin as a folder/module.""" +It is also an example of a plugin as a folder/module. +This can be used as a basis for more complex plugins that may need multiple files.""" from lib.PacketManager.packets import FSNETCMD_AIRCMD, FSNETCMD_AIRPLANESTATE, FSNETCMD_TEXTMESSAGE from logging import debug from config import SMOKE_LIFE, SMOKE_PLANE -- cgit v1.2.3