diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-02-10 01:48:46 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-02-10 01:48:46 -0200 |
commit | 317872bbb29326bc96ca4fb1db8cb91dd498c0e5 (patch) | |
tree | 09ac4f46fbe4d80a9016ade47d92a5c37bec4b3d /npc/005-1-1 | |
parent | b76aa9a8c409754b310a464a6314d7f15abf88df (diff) | |
download | serverdata-317872bbb29326bc96ca4fb1db8cb91dd498c0e5.tar.gz serverdata-317872bbb29326bc96ca4fb1db8cb91dd498c0e5.tar.bz2 serverdata-317872bbb29326bc96ca4fb1db8cb91dd498c0e5.tar.xz serverdata-317872bbb29326bc96ca4fb1db8cb91dd498c0e5.zip |
[skip ci] several bugfixes based on debug
Diffstat (limited to 'npc/005-1-1')
-rw-r--r-- | npc/005-1-1/main.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/npc/005-1-1/main.txt b/npc/005-1-1/main.txt index 43fa5f2cc..99b17a51f 100644 --- a/npc/005-1-1/main.txt +++ b/npc/005-1-1/main.txt @@ -133,7 +133,7 @@ OnInteract: if (array_find(@DESTROYED, .@cropId$) == -1) { array_push(@DESTROYED, .@cropId$); debugmes("[LOGIC] -------------------------- crop destroyed"); - hideonnpc instance_npcname("#Marggo"+.@cropId$); + hideonnpc instance_npcname("#Marggo"+.@cropId$, MARGGO_ID); } // Tell the Maggot to walk to a random coordinate @@ -187,6 +187,7 @@ OnFinish: deltimer("Nylo#Marggo::OnInteract"); deltimer("Nylo#Marggo::OnSpawn"); deltimer("Nylo#Marggo::OnFinish"); + MARGGO_ID=0; .@trueratio=100*getarraysize(@DESTROYED)/169; .@ratio=100-.@trueratio; debugmes("Player lost %d crops", getarraysize(@DESTROYED)); |