diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-05-12 00:08:21 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-05-12 00:08:21 -0400 |
| commit | b0af6147efb90bcd17bbf4500eb1dfc44e36a5e4 (patch) | |
| tree | dfb52e6b47bedaac714f11a119541b7626cdc8d7 | |
| parent | 1d558bb9eb44f7707b5e729675330c7b23177b08 (diff) | |
should tend to keep things it likes
| -rw-r--r-- | js/ui/nopaint.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/js/ui/nopaint.js b/js/ui/nopaint.js index 18ae556..3cfc92a 100644 --- a/js/ui/nopaint.js +++ b/js/ui/nopaint.js @@ -220,14 +220,12 @@ var nopaint = (function(){ pp = 0.4 } else if (nopaint.tool.is_erase) { - if (steps < randrange(3,7)) return + if (steps < randrange(2,6)) return np = 0.3 pp = 0.4 } else { if (steps < randrange(2,4)) return - np = 0.1 - pp = 0.2 } } if (nopaint.tool.is_shader) { @@ -247,6 +245,11 @@ var nopaint = (function(){ pp = 0.1 } + if (steps > 10) { + np /= 2 + pp *= 2 + } + if (paint_prob < np) { return "paint" } |
