Skip to content

Commit

Permalink
z1
Browse files Browse the repository at this point in the history
  • Loading branch information
heyunpeng committed Aug 31, 2015
1 parent c48e5c6 commit a45979b
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 @@ -233,9 +233,9 @@ def checkGrid (object)
#card class
Tracelog.where("gameid = ? and maintype = 4", grid.gameid).each do |log|
localcoin += log.coin
if log.gametype == 1 and localgrid[log.pos-1] <= 13
if log.gametype == 2 and localgrid[log.pos-1] <= 13
prizetotal += log.coin * log.mulbability
elsif log.gametype == 2 and localgrid[log.pos-1] > 13 and localgrid[log.pos-1] <= 26
elsif log.gametype == 1 and localgrid[log.pos-1] > 13 and localgrid[log.pos-1] <= 26
prizetotal += log.coin * log.mulbability
elsif log.gametype == 3 and localgrid[log.pos-1] > 26 and localgrid[log.pos-1] <= 39
prizetotal += log.coin * log.mulbability
Expand Down

0 comments on commit a45979b

Please sign in to comment.