From 5eb2eb9d6986bdd30c5f0cf65f7f08f96ce40d09 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 13 Mar 2025 14:04:56 +0800 Subject: feat: pokob show different appearances in each health state --- objects/Enemy.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'objects') diff --git a/objects/Enemy.lua b/objects/Enemy.lua index 6bb3fce..5ee8793 100644 --- a/objects/Enemy.lua +++ b/objects/Enemy.lua @@ -20,6 +20,7 @@ function Enemy:new(name, location) zoom = data.zoom or 1, speed = data.speed or nil, health = data.health or nil, + maxHealth = data.health or nil, stunned = false, frameTimer = FrameTimer:new(config.frameRate, (data.sprite and data.sprite.totalFrames) or 1), -- cgit v1.2.3