Add everybodyhappy
Some checks failed
CI / Build (macos-latest) (push) Has been cancelled
CI / Build (Steam Linux Runtime Sniper) (push) Has been cancelled
CI / Build (windows-latest) (push) Has been cancelled

Works the same as `everybodysad`, but changes tile to 0 instead.
This commit is contained in:
stupid cat 2025-11-20 19:19:12 -07:00 committed by Ethan Lee
parent 9256100cb9
commit 33f275a62e

View file

@ -2044,6 +2044,16 @@ void scriptclass::run(void)
}
}
}
else if (words[0] == "everybodyhappy")
{
for (i = 0; i < (int) obj.entities.size(); i++)
{
if (obj.entities[i].rule == 6 || obj.entities[i].rule == 0)
{
obj.entities[i].tile = 0;
}
}
}
else if (words[0] == "startintermission2")
{
map.finalmode = true; //Enable final level mode