Bug - Fixed Mood extension loses Unconditional triggers

digitrev

Member
See the example below. The unconditional triggers from the first mood are being ignored in favour of the second mood.

Code:
> mood aftercore

> mood

Always, ashq import <flavour.ash> intrinsics()
Always, closet put * bowling ball
When I run low on Antibiotic Saucesphere, cast 1 Antibiotic Saucesphere
When I run low on Disco Fever, cast 1 Disco Fever
When I run low on Empathy, cast 1 Empathy of the Newt
When I run low on Fat Leon's Phat Loot Lyric, cast 1 Fat Leon's Phat Loot Lyric
When I run low on Leash of Linguini, cast 1 Leash of Linguini
When I run low on Merry Smithsness, use 1 Flaskfull of Hollow
When I run low on Polka of Plenty, cast 1 The Polka of Plenty
When I run low on Rage of the Reindeer, cast 1 Rage of the Reindeer
When I run low on Springy Fusilli, cast 1 Springy Fusilli

> mood item

> mood

Always, ashq if ($effect[Peeled Eyeballs].have_effect() = 1 && get_property("lastDispensaryOpen") == get_property("knownAscensions")) cli_execute("use 1 Knob Goblin eyedrops")
When I run low on Fat Leon's Phat Loot Lyric, cast 1 Fat Leon's Phat Loot Lyric
When I run low on Singer's Faithful Ocelot, cast 1 Singer's Faithful Ocelot

> mood aftercore, item

> mood

Always, ashq if ($effect[Peeled Eyeballs].have_effect() = 1 && get_property("lastDispensaryOpen") == get_property("knownAscensions")) cli_execute("use 1 Knob Goblin eyedrops")
When I run low on Antibiotic Saucesphere, cast 1 Antibiotic Saucesphere
When I run low on Disco Fever, cast 1 Disco Fever
When I run low on Empathy, cast 1 Empathy of the Newt
When I run low on Fat Leon's Phat Loot Lyric, cast 1 Fat Leon's Phat Loot Lyric
When I run low on Leash of Linguini, cast 1 Leash of Linguini
When I run low on Merry Smithsness, use 1 Flaskfull of Hollow
When I run low on Polka of Plenty, cast 1 The Polka of Plenty
When I run low on Rage of the Reindeer, cast 1 Rage of the Reindeer
When I run low on Singer's Faithful Ocelot, cast 1 Singer's Faithful Ocelot
When I run low on Springy Fusilli, cast 1 Springy Fusilli

> mood item, aftercore

> mood

Always, ashq import <flavour.ash> intrinsics()
Always, closet put * bowling ball
When I run low on Antibiotic Saucesphere, cast 1 Antibiotic Saucesphere
When I run low on Disco Fever, cast 1 Disco Fever
When I run low on Empathy, cast 1 Empathy of the Newt
When I run low on Fat Leon's Phat Loot Lyric, cast 1 Fat Leon's Phat Loot Lyric
When I run low on Leash of Linguini, cast 1 Leash of Linguini
When I run low on Merry Smithsness, use 1 Flaskfull of Hollow
When I run low on Polka of Plenty, cast 1 The Polka of Plenty
When I run low on Rage of the Reindeer, cast 1 Rage of the Reindeer
When I run low on Singer's Faithful Ocelot, cast 1 Singer's Faithful Ocelot
When I run low on Springy Fusilli, cast 1 Springy Fusilli
 
This appears to be a bug in the equals() method of MoodTrigger: two triggers with the same type are deemed to be equal if the names are equal - except that unconditional triggers have no name and are all deemed to be equal. That can't be right.
 
Back
Top