summaryrefslogtreecommitdiff
path: root/npc/028-1/Doctor4.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/028-1/Doctor4.txt')
-rw-r--r--npc/028-1/Doctor4.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/028-1/Doctor4.txt b/npc/028-1/Doctor4.txt
index 9384e734..4b63e128 100644
--- a/npc/028-1/Doctor4.txt
+++ b/npc/028-1/Doctor4.txt
@@ -263,7 +263,7 @@ L_lens_loop_check:
// Check to whether you finished here
if ((@textureID == 3 || @textureID == 2) && @tintID == 0 && @opacityID == 0 && @rounds < 3) goto L_lens_early;
if ((@textureID == 3 || @textureID == 2) && @tintID == 0 && @opacityID == 0) goto L_lens_complete;
- if (@textureID == 0 && @rounds / @dilution > 4) goto L_lens_dry_destroyed;
+ if (@textureID == 0 && (@rounds + 2) / (@dilution + 2) > 4) goto L_lens_dry_destroyed;
if ((@damage > 3 && @crystalEnergy > 80) || (@damage > 2 && @crystalEnergy > 80 && @textureID == 0)) goto L_lens_violently_destroyed;
next;
goto L_lens_loop_main;
@@ -301,7 +301,7 @@ L_lens_pc_use_pearl:
delitem "Pearl", 1;
mes "You pass the pearl to the Doctor, who awkwardly takes it with one hand, grinds it into powder with another device, all the while keeping the container firmly in place. After he finishes, you sprinkle the powder evenly over the concoction.";
if (@textureID > 1) set @textureID, @textureID - 1;
- if (rand(3 * @rounds / @dilution) > 0) set @tintID, @tintID & ~1; // Remove red
+ if (rand(3 * (@rounds + 2) / (@dilution + 2)) > 0) set @tintID, @tintID & ~1; // Remove red
if (rand(2) > 0) set @tintID, @tintID & ~2; // Remove blue
if (rand(3) > 0) set @tintID, @tintID & ~4; // Remove yellow
if (rand(@opacityID) == 0) set @opacityID, @opacityID + 1;