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 | 2e24e0e026739c95b5f275c40d57da1404f17c8f (patch) | |
tree | 2008bf2cb3a2bbd25a15cca70d4b62b529ab4316 /mbbsd | |
parent | 32aef93553362699206b564cbd34d367d177fdb7 (diff) | |
download | pttbbs-2e24e0e026739c95b5f275c40d57da1404f17c8f.tar pttbbs-2e24e0e026739c95b5f275c40d57da1404f17c8f.tar.gz pttbbs-2e24e0e026739c95b5f275c40d57da1404f17c8f.tar.bz2 pttbbs-2e24e0e026739c95b5f275c40d57da1404f17c8f.tar.lz pttbbs-2e24e0e026739c95b5f275c40d57da1404f17c8f.tar.xz pttbbs-2e24e0e026739c95b5f275c40d57da1404f17c8f.tar.zst pttbbs-2e24e0e026739c95b5f275c40d57da1404f17c8f.zip |
Reduce BM reward on gamble to max(0.1%, 10000p)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4417 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/gamble.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mbbsd/gamble.c b/mbbsd/gamble.c index cf7a43b2..f4f910a2 100644 --- a/mbbsd/gamble.c +++ b/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, "賭盤退錢手續費"); |