diff options
Diffstat (limited to 'npc')
-rw-r--r-- | npc/craft/options.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/npc/craft/options.txt b/npc/craft/options.txt index 8bd1126dc..f77600a8b 100644 --- a/npc/craft/options.txt +++ b/npc/craft/options.txt @@ -534,7 +534,7 @@ function script csys_BonusCalc { .@base=rand2(1, .@avg+1); } } else { - .@base=rand2(.@avg*9/10+1, .@avg+1); + .@base=rand2(max(1, .@avg*9/10), .@avg+1); } //////////////////////////////////// |