diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-11-14 19:14:45 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-11-14 19:14:45 +0800 |
commit | 993e33e94d29f57a3aedb497650992a35455d7fc (patch) | |
tree | ed0b0381579952124a535443152752803815ca09 | |
parent | 70fd9227d8e17f668475e21a9db18aab9ba692bf (diff) | |
download | pttbbs-993e33e94d29f57a3aedb497650992a35455d7fc.tar pttbbs-993e33e94d29f57a3aedb497650992a35455d7fc.tar.gz pttbbs-993e33e94d29f57a3aedb497650992a35455d7fc.tar.bz2 pttbbs-993e33e94d29f57a3aedb497650992a35455d7fc.tar.lz pttbbs-993e33e94d29f57a3aedb497650992a35455d7fc.tar.xz pttbbs-993e33e94d29f57a3aedb497650992a35455d7fc.tar.zst pttbbs-993e33e94d29f57a3aedb497650992a35455d7fc.zip |
Reduce BM reward on gamble to max(0.1%, 10000p)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4417 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/gamble.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/gamble.c b/pttbbs/mbbsd/gamble.c index cf7a43b2..f4f910a2 100644 --- a/pttbbs/mbbsd/gamble.c +++ b/pttbbs/mbbsd/gamble.c @@ -309,6 +309,7 @@ openticket(int bid) bet--; /* 轉成矩陣的index */ + /* 取消賭盤由 bet == 99 變成 bet == 98 */ total = load_ticket_record(path, ticket); setbfile(buf, bh->brdname, FN_TICKET_LOCK); @@ -319,7 +320,8 @@ openticket(int bid) if (bet != 98) { money = total * price; demoney(money * 0.02); - mail_redenvelop("[賭場抽頭]", cuser.userid, money * 0.02, NULL); + mail_redenvelop("[賭場抽頭]", cuser.userid, + money < 1000000 ? money * 0.001 : 10000, NULL); money = ticket[bet] ? money * 0.95 / ticket[bet] : 9999999; } else { vice(price * 10, "賭盤退錢手續費"); |