diff --git a/init.lua b/init.lua index 393d6ff..29ec579 100644 --- a/init.lua +++ b/init.lua @@ -1838,14 +1838,18 @@ local function get_ctn_content(fs, data, player, xoffset, yoffset, ctn_len, awar local hp = damage_enabled and (data.hp or player:get_hp()) or 20 local half = ceil((hp / 2) % 1) local hearts = (hp / 2) + half + local heart_size = 0.35 + local heart_hgt = yoffset + 0.7 for i = 1, 10 do - fs(fmt("image", xoffset + ((i - 1) * 0.4), yoffset + 0.7, 0.4, 0.4, PNG.heart_grey)) + fs(fmt("image", xoffset + ((i - 1) * (heart_size + 0.1)), heart_hgt, + heart_size, heart_size, PNG.heart_grey)) end if damage_enabled then for i = 1, hearts do - fs(fmt("image", xoffset + ((i - 1) * 0.4), yoffset + 0.7, 0.4, 0.4, + fs(fmt("image", xoffset + ((i - 1) * (heart_size + 0.1)), heart_hgt, + heart_size, heart_size, (half == 1 and i == floor(hearts)) and PNG.heart_half or PNG.heart)) end end diff --git a/textures/i3_heart.png b/textures/i3_heart.png index 4412cab..8d88fc8 100644 Binary files a/textures/i3_heart.png and b/textures/i3_heart.png differ diff --git a/textures/i3_heart_grey.png b/textures/i3_heart_grey.png index c2e8720..518fd03 100644 Binary files a/textures/i3_heart_grey.png and b/textures/i3_heart_grey.png differ diff --git a/textures/i3_heart_half.png b/textures/i3_heart_half.png index bced801..7132b20 100644 Binary files a/textures/i3_heart_half.png and b/textures/i3_heart_half.png differ