Skip to content

Commit

Permalink
z
Browse files Browse the repository at this point in the history
  • Loading branch information
heyunpeng committed Aug 30, 2015
1 parent a690ebc commit c48e5c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def checkGrid (object)
localcoin += log.coin
if log.gametype == 1 and (localgrid[log.pos-1]%13 == 1 or localgrid[log.pos-1]%13 == 12 or localgrid[log.pos-1]%13 == 0)
prizetotal += log.coin * log.mulbability
elsif log.gametype == 2 and localgrid[log.pos-1]%13 == 11 and localgrid[log.pos-1]%13 == 10 and localgrid[log.pos-1]%13 == 9
elsif log.gametype == 2 and (localgrid[log.pos-1]%13 == 11 or localgrid[log.pos-1]%13 == 10 or localgrid[log.pos-1]%13 == 9)
prizetotal += log.coin * log.mulbability
end
end
Expand Down Expand Up @@ -334,7 +334,7 @@ def checkGrid (object)
prizecoin = log.coin * log.mulbability
processprize(log.userid, prizecoin)
log.update(status: 1)
elsif log.gametype == 2 and globalgrid[log.pos-1]%13 == 11 and globalgrid[log.pos-1]%13 == 10 and globalgrid[log.pos-1]%13 == 9
elsif log.gametype == 2 and (globalgrid[log.pos-1]%13 == 11 or globalgrid[log.pos-1]%13 == 10 or globalgrid[log.pos-1]%13 == 9)
prizecoin = log.coin * log.mulbability
processprize(log.userid, prizecoin)
log.update(status: 1)
Expand Down

0 comments on commit c48e5c6

Please sign in to comment.