From 6a454665079605d231dd72f722eba648c0e01bbc Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 15 Jun 2021 19:53:33 -0300 Subject: Fix casts to mobcount() functions --- npc/017-1/flowerpentagram1.txt | 3 +-- npc/017-1/flowerpentagram5.txt | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'npc/017-1') diff --git a/npc/017-1/flowerpentagram1.txt b/npc/017-1/flowerpentagram1.txt index 8d2d7118..c16c20c1 100644 --- a/npc/017-1/flowerpentagram1.txt +++ b/npc/017-1/flowerpentagram1.txt @@ -24,8 +24,7 @@ L_Next: L_Place: set @localMonsterCount, mobcount("017-1", "#FlowerPentagram1::OnSquirrelDeath") + - mobcount("017-1", "#FlowerPentagram1::OnScorpionDeath") + - 2; // the mobcount function has an offset of -1, so we add 2 to have the actual amount of monsters + mobcount("017-1", "#FlowerPentagram1::OnScorpionDeath"); if (@localMonsterCount > 2) goto L_MonstersAlive; diff --git a/npc/017-1/flowerpentagram5.txt b/npc/017-1/flowerpentagram5.txt index c9f6d5af..22395d06 100644 --- a/npc/017-1/flowerpentagram5.txt +++ b/npc/017-1/flowerpentagram5.txt @@ -29,8 +29,7 @@ L_Place: mobcount("013-1", "#FlowerPentagram5::OnScorpionDeath") + mobcount("013-1", "#FlowerPentagram5::OnRScorpionDeath") + mobcount("013-1", "#FlowerPentagram5::OnAScorpionDeath") + - mobcount("013-1", "#FlowerPentagram5::OnBScorpionDeath") + - 8; // the mobcount function has an offset of -1, so we add 8 to have the actual amount of monsters + mobcount("013-1", "#FlowerPentagram5::OnBScorpionDeath"); if (@localMonsterCount > 4) goto L_MonstersAlive; -- cgit v1.2.3-60-g2f50