[FIX] Col·lisió en el peu

[FIX] Canviada dialeg.run a dialeg.show
[NEW] Afegit dialeg.add
This commit is contained in:
2026-05-10 16:11:32 +02:00
parent 275122fd40
commit fbba9a6987
9 changed files with 87 additions and 68 deletions
+10 -10
View File
@@ -256,16 +256,16 @@ function premiere.healer_update()
local hab, tx, ty = coords.world_to_tile(premiere.x, premiere.y)
if hab == 55 and tx==0 and ty==3 and premiere.health_wait==100 then
-- 55 (0,3)
local _text = "Tenne! Io t'achudo. Figo!";
table.insert(
dialeg.list,
{ actor=premiere,
text=_text,
time=200,
w = math.floor(4.6*#_text),
h = 20,
}
)
dialeg.add(premiere, "Tenne! Io t'achudo. Figo!", 200)
-- table.insert(
-- dialeg.list,
-- { actor=premiere,
-- text=_text,
-- time=200,
-- w = math.floor(4.6*#_text),
-- h = 20,
-- }
-- )
premiere.health_wait = premiere.health_wait - 1
table.insert( actors, health_potion.new(
premiere.hab,