diff --git a/lucksmith.lua b/lucksmith.lua index 955a9aa..d0803bf 100644 --- a/lucksmith.lua +++ b/lucksmith.lua @@ -939,6 +939,7 @@ function TIC() if not damage_applied then -- Sequence: flash screen, flash health, adjust hearts queue_effect(function() + sfx(0, "E-4", 12, 0) -- play damage sound for flash = 8, 1, -1 do -- Tint screen red on alternating frames if flash % 4 < 2 then -- Flash on/off every 2 frames @@ -957,6 +958,7 @@ function TIC() end, 40) queue_effect(function() local flash_damage = current_damage.enemy + dmg + sfx(0, "E-4", 12, 0) -- play damage sound for flash = 8, 1, -1 do -- Flash health bar red on alternating frames if flash % 2 == 0 then @@ -966,12 +968,13 @@ function TIC() end coroutine.yield() end - current_damage.enemy = 0 + current_damage.enemy = flash_damage end, 60) queue_effect(function() local old_hp = enemy.hp for step = 1, dmg do enemy.hp = old_hp - step + sfx(0, "E-4", 12, 0) -- play damage sound for wait = 1, 30 do coroutine.yield() end @@ -1233,10 +1236,11 @@ end -- 000:00000000ffffffff00000000ffffffff -- 001:0123456789abcdeffedcba9876543210 -- 002:0123456789abcdef0123456789abcdef +-- 003:00022345555555554433222225888888 -- -- --- 000:000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000304000000000 +-- 000:03070306130523043303e302f301f301f300f30ff30ef30ef30df30cf30bf30bf300f300f300f301f303f302f302f302e302e302e301e301e301e300300000000000 -- -- @@ -1247,11 +1251,3 @@ end -- 000:1a1c2c5d275db13e53ef7d57ffcd75a7f07038b76425717929366f3b5dc941a6f673eff7f4f4f494b0c2566c86333c57 -- --- --- 000:100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 --- - --- --- 000:1a1c2c5d275db13e53ef7d57ffcd75a7f07038b76425717929366f3b5dc941a6f673eff7f4f4f494b0c2566c86333c57 --- -