summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-05-12 00:08:21 -0400
committerJules Laplace <jules@okfoc.us>2016-05-12 00:08:21 -0400
commitb0af6147efb90bcd17bbf4500eb1dfc44e36a5e4 (patch)
treedfb52e6b47bedaac714f11a119541b7626cdc8d7 /js
parent1d558bb9eb44f7707b5e729675330c7b23177b08 (diff)
should tend to keep things it likes
Diffstat (limited to 'js')
-rw-r--r--js/ui/nopaint.js9
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"
}