diff options
author | Freeyorp <Freeyorp101@hotmail.com> | 2010-04-12 16:54:35 +1200 |
---|---|---|
committer | Freeyorp <Freeyorp101@hotmail.com> | 2010-05-24 23:33:30 +1200 |
commit | 351738249bdb557e2042f80bc1be24323190e649 (patch) | |
tree | 2388e958c8d5e47daf466859c1b8061e7b3cf554 /npc/028-1 | |
parent | ca3bbfd557874c140c78aacc2100e87d4e02b9d7 (diff) | |
download | serverdata-351738249bdb557e2042f80bc1be24323190e649.tar.gz serverdata-351738249bdb557e2042f80bc1be24323190e649.tar.bz2 serverdata-351738249bdb557e2042f80bc1be24323190e649.tar.xz serverdata-351738249bdb557e2042f80bc1be24323190e649.zip |
More range checking
Diffstat (limited to 'npc/028-1')
-rw-r--r-- | npc/028-1/Doctor4.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/npc/028-1/Doctor4.txt b/npc/028-1/Doctor4.txt index 4b63e128..9402dff8 100644 --- a/npc/028-1/Doctor4.txt +++ b/npc/028-1/Doctor4.txt @@ -208,6 +208,7 @@ L_lens_loop_post_water_choice: L_lens_loop_automodify: set @rounds, @rounds + 1; + if (@crystalEnergy < 0) set @crystalEnergy, 0; set @inc, rand(rand(@MAX_LENS_CRYSTAL_ENERGY_INCREASE / (1+(@crystalEnergy >> 2))) + 1); if (!(@pcmod & 1)) set @crystalEnergy, @crystalEnergy + @MAX_LENS_CRYSTAL_ENERGY_INCREASE * @inc / (2 + @inc); set @crystalEnergy, @crystalEnergy - rand(rand(@MAX_LENS_CRYSTAL_ENERGY_INCREASE) + 1); |