diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-12-11 20:14:18 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-12-11 20:14:18 -0300 |
commit | 6a72b599cadfd207af38a59641bada185f890bc4 (patch) | |
tree | c91cf055b34c7d873b08863b21306d79758ea8ea /npc/annuals | |
parent | 1f512de5ac072ab84e289ed0d977795aa18d0565 (diff) | |
download | serverdata-6a72b599cadfd207af38a59641bada185f890bc4.tar.gz serverdata-6a72b599cadfd207af38a59641bada185f890bc4.tar.bz2 serverdata-6a72b599cadfd207af38a59641bada185f890bc4.tar.xz serverdata-6a72b599cadfd207af38a59641bada185f890bc4.zip |
Hack together a way to ensure instance is set on the seeds puzzle.
Diffstat (limited to 'npc/annuals')
-rw-r--r-- | npc/annuals/xmas/2021.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/npc/annuals/xmas/2021.txt b/npc/annuals/xmas/2021.txt index a21b31c5..aca3a4da 100644 --- a/npc/annuals/xmas/2021.txt +++ b/npc/annuals/xmas/2021.txt @@ -349,7 +349,12 @@ function script X21_SEEDS { return; if (.@y < 159 || .@y > 177) return; - addtimer 10, instance_npcname("#X21SeedFlag", @inst)+"::OnPlant"; + // Instance bugfix + if (@inst <= 0) { + getitem XmasSeeds, 1; + return; + } + addtimer 10, instance_npcname("#X21SeedFlag", @inst-1)+"::OnPlant"; return; } |