RynthSuite as of 2026-11-17 (internal d924ac04): release 2026.11.17.1
This commit is contained in:
parent
04add6c51b
commit
88f0aac49a
72 changed files with 7910 additions and 172 deletions
15
Tools/RynthLua.CompatTests/Scripts/deathline.lua
Normal file
15
Tools/RynthLua.CompatTests/Scripts/deathline.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
-- DreamWeave's death line ("... (Killing blow: N damage. You had H/M health.)") fires OnDeath
|
||||
-- (2026-11-15: a script missed one, the health read having skipped the 0 too).
|
||||
local death
|
||||
game.Character.OnDeath.Add(function(e) death = e end)
|
||||
sleep(700)
|
||||
|
||||
harness.chat("You are fatally punctured by Zefir Knotbinder! (Killing blow: 130 damage. You had 21/346 health.)", ChatMessageType.System)
|
||||
local t = 0
|
||||
while not death and t < 3000 do sleep(20); t = t + 20 end
|
||||
check(death ~= nil, "OnDeath on DreamWeave's killing-blow line")
|
||||
if death then
|
||||
check(death.Text:find("Killing blow", 1, true) ~= nil, "OnDeath.Text is the line")
|
||||
end
|
||||
|
||||
done()
|
||||
Loading…
Reference in a new issue