diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-03 16:16:45 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-03 16:16:45 -0300 |
commit | 45ca4be7791975f0e008a8fb60aeadabec2a21c7 (patch) | |
tree | 87cbc26c00ea19a955cddd27580df3f9756d4f83 /npc/015-8-1/puzzle.txt | |
parent | bfafc9f6b0d9cf8b02088a914a1e3680cea92957 (diff) | |
download | serverdata-45ca4be7791975f0e008a8fb60aeadabec2a21c7.tar.gz serverdata-45ca4be7791975f0e008a8fb60aeadabec2a21c7.tar.bz2 serverdata-45ca4be7791975f0e008a8fb60aeadabec2a21c7.tar.xz serverdata-45ca4be7791975f0e008a8fb60aeadabec2a21c7.zip |
Make traps more flexible, bugfix
Diffstat (limited to 'npc/015-8-1/puzzle.txt')
-rw-r--r-- | npc/015-8-1/puzzle.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/npc/015-8-1/puzzle.txt b/npc/015-8-1/puzzle.txt index 2cd158e10..f0827c2cf 100644 --- a/npc/015-8-1/puzzle.txt +++ b/npc/015-8-1/puzzle.txt @@ -32,7 +32,10 @@ OnTouch: OnTouchNPC: OnTouch: // instance_id() - SteelTrap(rand2(10, 40), 5, any(0,0,0,1)); + if (instance_id() >= 0) + SteelTrap(rand2(10, 40), 5, any(0,0,0,1), instance_npcname(.name$)); + else + SteelTrap(rand2(10, 40), 5, any(0,0,0,1)); end; OnTimer10000: |