Permalink
Browse files

attention and meditation can be set at the same time

  • Loading branch information...
1 parent 551b6e4 commit 9552ebfe6144b54fb91a463789b22098d5215ba5 @Aqua-Ye Aqua-Ye committed Mar 8, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/mind.opa
View
@@ -3,9 +3,9 @@ import mindwave
get_nb_moves() =
att = MindWave.get_attention_level()
med = MindWave.get_meditation_level()
- if att < 20 && Random.int(101) < 20 then 0
- else if med > 80 && Random.int(101) < 20 then 2
- else 1
+ slow = if att < 20 && Random.int(101) < 20 then (-1) else 0
+ if med > 80 && Random.int(101) < 20 then slow+2
+ else slow+1
mindwave_flash =
<div id="flashContent">

0 comments on commit 9552ebf

Please sign in to comment.