diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-11-09 17:25:24 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-11-09 17:25:24 -0300 |
commit | 8770fd59266f4b5f921e2d4456bf842c42e6497a (patch) | |
tree | 8d1e082d0c0da7b1cefed6546d80126ef7f4ad72 | |
parent | a4adabbd2642e223acc64c6839af8ddda1d99015 (diff) | |
download | serverdata-8770fd59266f4b5f921e2d4456bf842c42e6497a.tar.gz serverdata-8770fd59266f4b5f921e2d4456bf842c42e6497a.tar.bz2 serverdata-8770fd59266f4b5f921e2d4456bf842c42e6497a.tar.xz serverdata-8770fd59266f4b5f921e2d4456bf842c42e6497a.zip |
Add a bit of pseudo-randomness on Bracco's mass melting
-rw-r--r-- | npc/020-5/bracco.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/npc/020-5/bracco.txt b/npc/020-5/bracco.txt index 1c9ed9bd0..c9cb31941 100644 --- a/npc/020-5/bracco.txt +++ b/npc/020-5/bracco.txt @@ -82,9 +82,10 @@ mesc l("@@ melt down your @@...", .name$, getitemlink(.@x)); for (.@i=2;.@i < getargcount(); .@i++) { - if (getarg(.@i+1)) {// It may be zero - getitem getarg(.@i), getarg(.@i+1); - mesc l("* Acquired @@ @@!", getarg(.@i+1), getitemlink(getarg(.@i))); + .@v=getarg(.@i+1)+any(-1, 0, 0, 0, 1); + if (.@v > 0) {// It may be zero + getitem getarg(.@i), .@v; + mesc l("* Acquired @@ @@!", .@v, getitemlink(getarg(.@i))); } .@i++; } |