summaryrefslogtreecommitdiff
path: root/npc/028-1
diff options
context:
space:
mode:
Diffstat (limited to 'npc/028-1')
-rw-r--r--npc/028-1/Doctor4.txt1
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);